[Cmpl] Convert GMPL to CMPL

Mike Steglich mike.steglich at th-wildau.de
Sat Jun 11 05:14:34 EDT 2016


Hi Rob,

Thank you for beeing interested in Cmpl.

I would create a parameter vector Rp defined over the set Products which contains sets of rolls (sub sets of Rolls) that can be used for the product p.

{ p in Products :  Rp[p]:= set { r in Rolls, pWidth[p] <= rWidth[r]: r} ; }

I could not test it because I'm off and writing this on my pad.

Thanks,

Mike

> Am 10.06.2016 um 20:32 schrieb Schroeder, Rob <Rob.Schroeder at graphicpkg.com>:
> 
> Hi,
> I am trying to port a small roll assortment problem from GMPL to CMPL.  I am modelling it as an assignment problem for now.
>  
> I have a set of PRODUCTS with widths as defined in the parameter pWidth, and a set of parent ROLLS with width rWidth.  My set Rp is an indexed set of parent rolls that can be used to produce product p.
>  
> Here’s what I use in GMPL:
>  
> set Rp{p in PRODUCTS} := {r in ROLLS : pWidth[p] <= rWidth[r]};
>  
> so Rp[p] will contain all the parent rolls that are wider than the width of product p.
>  
> I am trying to figure out how to replicate this in CMPL.
>  
> Any pointers will be apprecaited.
>  
> Regards,
> Rob
> _______________________________________________
> Cmpl mailing list
> Cmpl at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cmpl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cmpl/attachments/20160611/8ed7e535/attachment.html>


More information about the Cmpl mailing list