i would like to find best soultion with lower of 2 factor z and te
how should the code in GAMS after the following?
SOLVE uc USING minlp MINIMIZING z;
SOLVE uc USING minlp MINIMIZING te;
local break-even point from mimized solutions
-
- User
- Posts: 108
- Joined: 7 years ago
Re: local break-even point from mimized solutions
You will need to store the value of any variable that you want to know later between solves..
parameter teVal,zVal,finalVal;
SOLVE uc USING minlp MINIMIZING z;
zVal=z.l;
SOLVE uc USING minlp MINIMIZING te;
teVal=te.l;
finalVal=min(zVal,teVal);
parameter teVal,zVal,finalVal;
SOLVE uc USING minlp MINIMIZING z;
zVal=z.l;
SOLVE uc USING minlp MINIMIZING te;
teVal=te.l;
finalVal=min(zVal,teVal);