Search found 2 matches

by Eduardo
2 years ago
Forum: Modeling
Topic: Define restriction in a variable
Replies: 2
Views: 1273

Re: Define restriction in a variable

Thank you very much Cladelpino.
Your advice was very useful. But I couldn't get a good solution with COUNNEE solvers. I had to use SCIP solver although this only compile 1000 seconds (less than I need).
by Eduardo
2 years ago
Forum: Modeling
Topic: Define restriction in a variable
Replies: 2
Views: 1273

Define restriction in a variable

Hello, Could i put a restriction in a variable, depending the valor of the same variable? I try to put: Binary Variable: x(i,k) R(i,k).. x(i,k)$(x(i,k) eq 1) =g= x(i,k+1); But this code doesn't work. How can i do something like before? I want that if x(1,1)=1 =>x(1,2)=1 or 0 but if x(1,1)=0=> x(1,2)...