[Clp] Formulate a large scale linear programing model by reducing the number of similar constraints and keeping them all satisfied

John Forrest john.forrest at fastercoin.com
Wed Aug 31 13:29:43 EDT 2016


Look at Clp/examples/dualCuts.cpp - you should be able to adapt it.

John Forrest

On 31/08/16 17:10, usa usa wrote:
>
> Hi,
>
> I need to build a large scale LP model and solve it by CLP.
>
> In the model, there is a kind of constraint like:
>
> Max: sum of (constantValueP_i* decVarX_i) from i=1 toN
>
> s.t.
>
> decVarT + sum of (decVarK_i ) from i=1 to I = N<=[sum of 
> (constantValueP_i* decVarX_i)from i=1 toN ] * constantQ
>
>
> [sum of (constantValueE_i* decVarX_i)from i=1 toN ] <= [sum of 
> (constantValueE_i )from i=1 toN ] * constantD
>
>
> decVarK_1 >= sum of (constantValue_1_i* decVarX_i) from i=1 toN -
>
> decVarT
>
>
> decVarK_2 >= sum of (constantValue_2_i* decVarX_i) from i=1 toN - decVarT
>
>
>>
>
> decVarK_L >= sum of (constantValue_j_i* decVarX_i) from i=1 toN - decVarT
>
> Decision variables:
>
> decVarT , 0 <= decVarX_i <= 1, decVarK_i >= 0
>
> The problem is that the number of constraints ofdecVarK_i for i=1 to L 
> and L can be very large, e.g. 100,0000.
>
> It means that it will have 100,000 constraints in the LP, which I want 
> to avoid.
>
> How to combine them so that I can reduce the size of the LP model 
> meanwhile keeping all constraints satisfied ?
>
> thanks
>
>
>
> _______________________________________________
> Clp mailing list
> Clp at list.coin-or.org
> 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=


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/clp/attachments/20160831/11d7e443/attachment.html>


More information about the Clp mailing list