how to set the optimization target to a constant
Answeredi want to find a feasible solution for a complex problem(just to find a feasible solution,not optimal),then terminate the solution process.So I want to set the objective to a constant(e.g.the integer 1).How can I achieve this(or other method to obtain a feasible solution then terminate the solution process)
0
-
Official comment
This post is more than two 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. -
You could set the parameter SolutionLimit to 1. Then Gurobi will stop as soon as a feasible solution is found.
0
Post is closed for comments.
Comments
2 comments