How can I restrict a variable that can only take value in a list with Gurobi matlab?
Answeredlist1=[1,2,3,4];
i want a variable that can only take value in that list, and creat it by martix that can use in Gurobi matlab model
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 try Gurobot, our chatbot interface offering instant, expert-level support.
Post is closed for comments.
Comments
2 comments