I want to write a minimum function in OPL.
forall(p in P) sum(n in N)Q6[n][p]==(Max_Rema[p]*Dem[p])
forall(n in N)sum(p in P)Q6[n][p]<=sum(m in M)Q4[m][n];
I want that Q6
should be equal to minimum ofMax_Rema[p]*Dem[p]
and sum(m in M)Q4[m][n]
, where Max_Rema
and Dem[p]
are parameters.
How to write this?