oh, sry.<br><br>the lp declaration is:<br><br>OsiCbcSolverInterface *lp;<br><br><div class="gmail_quote">On Thu, Sep 6, 2012 at 2:49 PM, Ivan Meireles Costa <span dir="ltr"><<a href="mailto:ivan.costa@gapso.com.br" target="_blank">ivan.costa@gapso.com.br</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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<span class="HOEnZb"><font color="#888888"><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> <a href="tel:31%203508-1323" value="+13135081323" target="_blank">31 3508-1323</a><br> <b>Celular:</b> <a href="tel:31%209869-6987" value="+13198696987" target="_blank">31 9869-6987</a><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>
</font></span></blockquote></div><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>