Hello Gurobi developers and users
I want to implement if else-conditional constraints on following variables :
d[i,t] = a continuous non-negative variable
Y[i,t] = A binary variable
Logic I need to implement :
- if d[t] == 1 then Y[t] becomes 1
- elif 1< d[t] > 1, then Y[t] becomes 0.
"t" represents just the index of the variable.
I have been looking at several posts for conditional constraints on this form and also tried big M method, but for this particular constraint involving > and < sign, it is somehow not working.
Any help would be highly appreciated.
Please sign in to leave a comment.