[Cmpl] Convert GMPL to CMPL
Schroeder, Rob
Rob.Schroeder at graphicpkg.com
Sun Jun 12 09:57:34 EDT 2016
Hi Mike,
That seems to works great – thank you. Now… on to the rest of my model ☺
I appreciate all the effort you have put into this project. I think it will be quite useful.
Regards,
Rob
From: Mike Steglich [mailto:mike.steglich at th-wildau.de]
Sent: Saturday, June 11, 2016 5:15 AM
To: Schroeder, Rob
Cc: cmpl at list.coin-or.org
Subject: Re: [Cmpl] Convert GMPL to CMPL
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<mailto: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<mailto: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/20160612/b8648e70/attachment.html>
More information about the Cmpl
mailing list