<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">There is modifyCoefficient which can
add elements - that may be too fine-grained.<br>
<br>
Modifying rows one at a time can be expensive - see a discussion
on adding rows a few days ago.<br>
<br>
If you just want to do one at a time, it would be trivial to write
a replaceRow/Column (one exist - but just for replacing existing
elements). I would suggest writing your own replaceRow (using
modifyCoefficient). If you are prepared to do that much work,
then I am prepared to do a proper replaceRow :-)<br>
<br>
John Forrest<br>
<br>
On 19/06/15 08:16, Emerson wrote:<br>
</div>
<blockquote
cite="mid:CACbXE905X52z5EoxKVZDM1S0dsji6sLbtdbmh9bdrQdxjpcwCw@mail.gmail.com"
type="cite">
<meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi,
<div>I'm wondering if Clp has a method that can update existing
row/column elements? Like glp_set_mat_row()? Thanks.</div>
<div>I can only find setRow() in cuts but not simplex method.
It's unusual that Clp doesn't provide a replace method for
existing row/col. </div>
<div>I know I can use "addRow", build from scratch. But what if
I resize(numOfRows,numOfCols) to initialize the constraint
matrix, and then modify some of them, can I ?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Emer</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Clp mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Clp@list.coin-or.org">Clp@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/clp">http://list.coin-or.org/mailman/listinfo/clp</a>
</pre>
</blockquote>
<br>
</body>
</html>