I would like to express the following in GAMS using its MAX(x1,x2,...,xn) function.
max {B(i,j)¦i in Ij} for all valid combinations of (i,j) where i={i1,i2,...,in}, j={j1,j2,...,jk).
So, the GAMS-determined result could be something like this
MAX(B(i1,j1), B(i2,j1), B(i5,j1)) =l= ...
MAX(B(i1,j2), B(i3,j2), B(i4,j2), B(i6,j2)) =l=...
MAX(B(i3,j3), B(i5,j3)) =l=...
...
Is there a way to do this in GAMS?
How to write MAX(...) expression
Re: How to write MAX(...) expression
Look at smax (https://www.gams.com/latest/docs/UG_Par ... ns_22_smax). -Michael
Re: How to write MAX(...) expression
This is exactly what I needed.
Thank you very much!
Thank you very much!