local break-even point from mimized solutions

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;

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);