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
-
You could set the parameter SolutionLimit to 1. Then Gurobi will stop as soon as a feasible solution is found.
0
Please sign in to leave a comment.
Comments
1 comment