Model and Solve Statements

Problems with modeling
Post Reply
haithamkanakri
User
User
Posts: 2
Joined: 5 years ago

Model and Solve Statements

Post 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;
Attachments
Capture.JPG
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: Model and Solve Statements

Post by Renger »

Hi
If the non-used variables and sets are in your constraints, you are on the right track.
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Post Reply