Can I get value from a variable and use it on a specific index of a different variable?
AnsweredThis is a peculiar question but I have two variables s_ik (INTEGER) and y_it (BINARY) what I want is such a relationship
If suppose s_ik = 8, then y_i8 = 1
Basically, if s_ik takes a particular value then y_it where t = s_ik should be 1, otherwise y_it should be 0. Is this thing possible?
0
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try Gurobot? -
Using an integer variable as an index of another variable is discussed in use a decision variable as an index.
0
Post is closed for comments.
Comments
2 comments