Hi guys,<br><br>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.<br>I've tried:<br><br>bool OPT_COIN::chgCoef( int row, int col, double newcoef )<br>
{<br> bool ret = true;<br> CoinPackedMatrix *matrix = lp->getMutableMatrixByRow();<br> <br> <br><br> if(matrix == NULL)<br> {<br> printf("\n\n\nNULL\n\n\n");<br> }<br> matrix->modifyCoefficient(row, col, newcoef);<br>
<br> <br> return ret;<br>}<br><br>but the method "getMutableMatrixByRow()" is not yet implemented, it return NULL.<br><br>thanks<br><br><br><br clear="all"><br>-- <br><table border="0" cellpadding="2" cellspacing="2" width="591">
<tbody><tr><td style="font-family:Arial,Helvetica,sans-serif;font-size:11px;color:rgb(102,102,102)" rowspan="2" valign="middle" width="150"><b>Ivan Meireles Costa</b><br>
<b>Estágiario em otimização</b><br> <b>Telefone:</b> 31 3508-1323<br> <b>Celular:</b> 31 9869-6987<br>
</td>
<td rowspan="2" width="19"><img src="http://www.gapso.com.br/wp-content/uploads/2011/03/pontilhado.jpg" border="0" height="150" width="19"></td>
<td height="57" width="372"><img src="http://www.gapso.com.br/wp-content/uploads/2011/03/logo_gapso_sig.jpg" height="57" width="372"></td>
</tr>
<tr>
<td style="font-family:Arial,Helvetica,sans-serif;font-size:9px;color:rgb(102,102,102)" valign="top" width="372">
A Gapso é a escolha das empresas que buscam se diferenciar pela gestão da complexidade.<br>
Desenvolvemos sistemas analíticos de planejamento, que auxiliam a definir estratégias,<br>
         planejar operações, reduzir riscos e lidar melhor com as incertezas do futuro. <br>
<a href="http://www.gapso.com.br/" target="_blank">www.gapso.com.br</a></td></tr></tbody></table><br>