Page 1 of 1

Model and Solve Statements

Posted: Tue Oct 09, 2018 1:11 am
by haithamkanakri
how to specify the variables to be maximized in the GAMS model and solve it over a defined sets?
For example, I would like to code the CVAR equation as the following:
Capture.JPG
1- Does GAMS coding requires to include the highlighted variables in the model/solver command to maximize the highlighted variables over the specified sets?
2- Or no need to do that since that would be implicitly specified by the objective and model constraints?


My code is:

ObjEq9.. obj=e= Zeta - (1/(1-alpha))*sum(w,PiW(w)*Uw(w));

MODEL Aggregator /ALL/;

SOLVE Aggregator USING NLP MAXIMIZING obj;

Re: Model and Solve Statements

Posted: Tue Oct 09, 2018 10:07 am
by Renger
Hi
If the non-used variables and sets are in your constraints, you are on the right track.
Cheers
Renger