Hi all,

I'm new to linear programming&Cplex, so bare with me. At the moment, I can't figure out how to set a parameter (R[i][k] in this case) the minimum of two other terms (parameter B[i] and (T[i]*(sum ( j in Items )r[i][j]*z[j][k])).

The corresponding constraint in my model:

//Constraints

subject to {

forall (i in Customers , k in Products )

constraint5:

R[i][k]==min((T[i]*(sum ( j in Items )r[i][j]*z[j][k])),B[i]);

where min() is not working.

Any help would be greatly appreciated!

Topic