<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Look at Clp/examples/dualCuts.cpp - you
should be able to adapt it.<br>
<br>
John Forrest<br>
<br>
On 31/08/16 17:10, usa usa wrote:<br>
</div>
<blockquote
cite="mid:CANzaY59AmkWQWzMM3zObhy6H0OvZQPM-QMSo+e9Ot26KCB3qFA@mail.gmail.com"
type="cite">
<meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
<div dir="ltr">
<p>Hi, </p>
<p> </p>
<p>I need to build a
large scale LP model and solve it by CLP.</p>
<p> </p>
<p>In the model, there
is a kind of constraint like: </p>
<p><span> </span></p>
<p>Max: sum of
(constantValueP_i<span> </span>* decVarX_i) from i=1
to<span> </span>N</p>
<p>s.t. </p>
<p><span> </span>decVarT + sum of (decVarK_i ) from i=1 to
I = N<span> </span><=<span> </span>[sum of
(constantValueP_i<span> </span>* decVarX_i)<span>
</span>from i=1 to<span> </span>N ] * constantQ</p>
<p><span><br>
</span></p>
<p><span> </span>[sum of (constantValueE_i<span> </span>*
decVarX_i)<span>
</span>from i=1 to<span> </span>N ] <= [sum of
(constantValueE_i )<span> </span>from i=1 to<span> </span>N
] * constantD</p>
<p><span><br>
</span></p>
<p><span> </span>decVarK_1 >= sum of
(constantValue_1_i<span> </span>* decVarX_i) from i=1
to<span> </span>N - <br>
</p>
<p>decVarT</p>
<p><span><br>
</span></p>
<p><span> </span>decVarK_2 >= sum of
(constantValue_2_i<span> </span>* decVarX_i) from i=1
to<span> </span>N - decVarT</p>
<p><span><br>
</span></p>
<p><span> </span>…</p>
<p><span><br>
</span></p>
<p><span> </span>decVarK_L >= sum of
(constantValue_j_i<span> </span>* decVarX_i) from i=1
to<span> </span>N - decVarT</p>
<p> </p>
<p>Decision variables: </p>
<p>decVarT
, 0 <= decVarX_i <= 1, decVarK_i >= 0</p>
<p> </p>
<p>The problem is that
the number of constraints of<span> </span>decVarK_i
for i=1 to L and L can be very large, e.g. 100,0000. </p>
<p> </p>
<p>It means that it
will have 100,000 constraints in the LP, which I want to
avoid. </p>
<p> </p>
<p>How to combine them
so that I can reduce the size of the LP model meanwhile
keeping all constraints
satisfied ? </p>
<p> </p>
<p>thanks</p>
</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="https://urldefense.proofpoint.com/v2/url?u=http-3A__list.coin-2Dor.org_mailman_listinfo_clp&d=CwICAg&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=js2M0T-3OIMIVDvokcKjokJbk0F8QOCd0mT4FsVFE88&m=S3UeV4Wu5yHELjmWBTDl-eRIeWOSeDtcdfAfTnhn-HU&s=tU_XGRYlmWymVflxTZzAzfVHknXPfwEvd-Sv1KZv2rc&e=">https://urldefense.proofpoint.com/v2/url?u=http-3A__list.coin-2Dor.org_mailman_listinfo_clp&d=CwICAg&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=js2M0T-3OIMIVDvokcKjokJbk0F8QOCd0mT4FsVFE88&m=S3UeV4Wu5yHELjmWBTDl-eRIeWOSeDtcdfAfTnhn-HU&s=tU_XGRYlmWymVflxTZzAzfVHknXPfwEvd-Sv1KZv2rc&e=</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>