How to use callback to save the objvalue output of each iteration of gurobi to an array or txt file When it gets a new feasible solutio in the integer programming
回答済みHello sir, I am a scientific researcher. I have designed a warm_up algorithm for a certain type of problem. I want to get the value and time of each iteration of gurobi. I know that I can output them to the console or log file. But there is too much redundant information, can we just save the objective function value and iteration time of each iteration directly?
0
-
Hi Bin,
Please see my solution to your other post.
If you only need these values when Gurobi finds a feasible solution, then you only have to query the attributes at the MIPSOL where value. (See Callback Codes for more information.)
Best regards,
Elisabeth
1 -
Thanks!!!
0
サインインしてコメントを残してください。
コメント
2件のコメント