|
Max , Min |
Top Previous Next |
|
Expressions can contain a function that calculates the maximum or minimum of a set of expressions or terms. (function.gms)
X=max(y+2,t,tt); Eq3.. z=e=max(yy,t); X=min(y+2,t,tt); Eq4.. z=e= min (yy,t);
These functions are not continuous and are not smooth. They can be used on data during GAMS calculation or in models. It's use in .. equations in terms that involve variables requires the model type be DNLP, CNS, MCP or some other form that accepts nonsmooth functions. |