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
NOTICE: developerWorks Community will be offline May 2930, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
2 replies
Latest Post
 20121209T10:37:48Z by SystemAdmin
ACCEPTED ANSWER
Pinned topic Simple question  How to get the minimum of two variables?
20121208T18:35:36Z

Answered question
This question has been answered.
Unanswered question
This question has not been answered yet.
Updated on 20121209T10:37:48Z at 20121209T10:37:48Z by SystemAdmin

ACCEPTED ANSWER
Re: Simple question  How to get the minimum of two variables?
20121209T08:54:55Z in response to SystemAdminTry minl
Regards,
Zahar 
ACCEPTED ANSWER
Re: Simple question  How to get the minimum of two variables?
20121209T10:37:48Z in response to SystemAdminThanks a lot!