Dear friends,
How can I transform the “complement” function of AMPL to GAMS. Following are the two examples.
c2{k in K}: 12 >= 2x[1,k] + 3x[2,k] complements y[2,k] >= 0;
KKT2{k in K}: w[2,k]*exp( x[2,k] ) - y[1,k]*3 + y[2,k]*3
complements 0 <= x[2,k] <= 2;
Thanks a lot,
Ozdalga
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Ozdalga,
Complementarity in GAMS is indicated by a “dotted pair” in the model statement, e.g.
model m / f.x, g.y /;
There are lots of MCP models in the GAMS model library, and the PATH solver manual covers the basics.
-Steve
On Thu, Apr 24, 2014 at 3:36 PM, jozdalga wrote:
Dear friends,
How can I transform the “complement” function of AMPL to GAMS. Following are the two examples.
c2{k in K}: 12 >= 2x[1,k] + 3x[2,k] complements y[2,k] >= 0;
KKT2{k in K}: w[2,k]*exp( x[2,k] ) - y[1,k]*3 + y[2,k]*3
complements 0 <= x[2,k] <= 2;
Thanks a lot,
Ozdalga
Steven Dirkse, Ph.D.
GAMS Development Corp., Washington DC
Voice: (202)342-0180 Fax: (202)342-0181
sdirkse@gams.com
http://www.gams.com