Hello,<br> I have to port on Ipopt (using the C++ API) an economic model written in GAMS, where e.g. in the objective function I have variables like demand for each p products and each r region, price for each product and region, exports for each p and r, and so on...<br>
My guess is that I need to "explode" the gams code (where it currently uses the concept of sets) concatenating all the {p*r*economic variables} in a single x[] array.<br>However this is prone to errors, so I wander if there is a better strategy.<br>
<br>Any suggestion, or tutorial that show how (possibly) simple gams/AMPL code dealing with sets has been ported in C++/IPOPT ?<br><br>Thanks,<br clear="all"> Antonello<br><br>-- <br>Antonello Lobianco<br>INRA, Laboratoire d'Economie Forestière<br>
14 Rue Girardet - 54000 Nancy, France<br>Tel: +33.652392310<br>Email: <a href="mailto:antonello.lobianco@nancy-engref.inra.fr" target="_blank">antonello.lobianco@nancy-engref.inra.fr</a><br><a href="http://antonello.lobianco.org/" target="_blank">http://antonello.lobianco.org</a><br>