I tried<br><br>bool OPT_COIN::chgCoef( int row, int col, double newcoef )<br>{<br> bool ret = true;<br> CbcModel *model = getModel();<br> CoinPackedMatrix *matrix = model->getMutableMatrixByCol();<br> matrix->modifyCoefficient(col, row, newcoef);<br>
return ret;<br>}<br clear="all"><br><br>and add<br><br> /// Get pointer to mutable column-wise copy of matrix<br> inline CoinPackedMatrix * getMutableMatrixByCol() const {<br> return solver_->getMutableMatrixByCol();<br>
}<br><br>in CbcModel.hpp.<br><br><br>Att.<br>-- <br><table cellpadding="2" cellspacing="2" width="591" border="0"><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" height="150" width="19" border="0"></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>