[Cmpl] Convert GMPL to CMPL

Schroeder, Rob Rob.Schroeder at graphicpkg.com
Fri Jun 10 14:32:26 EDT 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cmpl/attachments/20160610/bfc8652e/attachment.html>


More information about the Cmpl mailing list