Assigning the minimum value of variables
Posted: Sun Jun 30, 2019 5:54 pm
Hello,
I'm currently working on a model, and have a problem.
In my model a decision variable is calculated as follows:
Binary variable x;
Positive variable nd;
Positive variable ds;
C2(i,j).. ds(i,j) =e= x(i)*d(i,j);
Then I need to find the minimum of ds(i,j) for each j and assign it as nd(j). I wrote the following equation, but it is not working. It returns zero instead of the minimum value.
C3(i,j).. ds(i,j)=g= nd(j) ;
Can anyone help me?
Thanks in advance.
I'm currently working on a model, and have a problem.
In my model a decision variable is calculated as follows:
Binary variable x;
Positive variable nd;
Positive variable ds;
C2(i,j).. ds(i,j) =e= x(i)*d(i,j);
Then I need to find the minimum of ds(i,j) for each j and assign it as nd(j). I wrote the following equation, but it is not working. It returns zero instead of the minimum value.
C3(i,j).. ds(i,j)=g= nd(j) ;
Can anyone help me?
Thanks in advance.