<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Kevin,<br>
<br>
Why to <i>build</i> a model do you need to <i>modify</i>
coefficients ? Would it be faster to remove a group of constraints
(the ones with modified coefficients) and then add a new group of
constraints ?<br>
<br>
One nice way to quickly add a group of constraints/variables in the
model is the use of a CoinBuild object: calls are made first to
this object and then this object is passed as a parameter in
OsiSolverInterface.<br>
<br>
Cheers,<br>
<br>
Haroldo<br>
<br>
<div class="moz-cite-prefix">On 22-06-2015 12:07, Kevin van Blokland
wrote:<br>
</div>
<blockquote
cite="mid:OF936DC559.9A50A1CC-ONC1257E6C.00530FA3-C1257E6C.00530FA4@cqm.nl"
type="cite"><font face="Default Sans
Serif,Verdana,Arial,Helvetica,sans-serif" size="2">Dear CBC
community,
<div><br>
</div>
<div>We experience a very slow model creation. We are using
the OsiClpSolverInterface in combination
with modifyCoefficient to construct our models.</div>
<div>The construction of the model takes more than 10 minutes,
while the solve time is less than a minute.</div>
<div>Probably we are doing something wrong and we would like to
know what is the best way to add variables and constraints and
set their coefficients from scratch.</div>
<div>Could we reserve the dimensions in the packedmatrix?</div>
<div><br>
</div>
<div>Best regards,</div>
<div><br>
</div>
<div>Kevin van Blokland</div>
<div><b>
____________________________________________________________________________________</b><br>
<p class="MsoNormal"
style="line-height:12.0pt;mso-layout-grid-align:none;<br
/>text-autospace:none">DISCLAIMER<br>
<span style="font-size:8.0pt; font-family:Helv">De
informatie verzonden in dit e-mail bericht is
vertrouwelijk en uitsluitend bestemd voor de
geadresseerde. Indien de informatie bij vergissing bij u
terecht is gekomen dan verzoeken wij u vriendelijk de
afzender hiervan op de hoogte te stellen en de informatie
te verwijderen. Openbaarmaking, vermenigvuldiging,
verspreiding en/of verstrekking van deze informatie aan
derden zonder expliciete toestemming van de afzender is
niet toegestaan. Aan de verstrekte informatie kunnen geen
rechten worden ontleend, tenzij expliciet anders is
aangegeven in het e-mail bericht. Wij staan niet in voor
de juiste en volledige overbrenging, noch voor de tijdige
ontvangst van dit e-mail bericht.<br>
<br>
This message and its attachments are confidential and may
be privileged or otherwise protected from disclosure. If
you are not the intended recipient, please notify the
sender by reply mail and delete this message and its
attachments from your system and refrain from using or
copying its contents or disclosing its contents in any
manner to third parties. We cannot assume any
responsibility for the accuracy or reliability of the
information contained in these message (including
attachments), nor shall the information be construed as
constituting any obligation on the part of CQM.<br>
DISCLAIMER</span></p>
<b>
_____________________________________________________________________________________</b><br>
<br>
</div>
</font>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Cbc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
==================================================
Haroldo Gambini Santos
D.Sc, Computer Science
Universidade Federal de Ouro Preto
<a class="moz-txt-link-freetext" href="http://www.decom.ufop.br/haroldo/">http://www.decom.ufop.br/haroldo/</a></pre>
</body>
</html>