[Cbc] change matrix coefficient at coin-cbc.

Ivan Meireles Costa ivan.costa at gapso.com.br
Thu Sep 6 13:49:05 EDT 2012


Hi guys,

I'm working on my first project with coin-or cbc and have one problem to
change a coefficient in the matrix in my OsiCbcSolverInterface.
I've tried:

bool OPT_COIN::chgCoef( int row, int col, double newcoef )
{
    bool ret = true;
    CoinPackedMatrix *matrix = lp->getMutableMatrixByRow();



    if(matrix == NULL)
    {
        printf("\n\n\nNULL\n\n\n");
    }
    matrix->modifyCoefficient(row, col, newcoef);


    return ret;
}

but the method "getMutableMatrixByRow()" is not yet implemented, it return
NULL.

thanks




-- 
*Ivan Meireles Costa*
*Estágiario em otimização*
 *Telefone:* 31 3508-1323
 *Celular:* 31 9869-6987
   A Gapso é a escolha das empresas que buscam se diferenciar pela gestão
da complexidade.
Desenvolvemos sistemas analíticos de planejamento, que auxiliam a definir
estratégias,
planejar operações, reduzir riscos e lidar melhor com as incertezas do
futuro.
www.gapso.com.br
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20120906/0f9ff61b/attachment.html>


More information about the Cbc mailing list