如何在Drake中使用Gurobi的回调功能
我正在使用Drake和Gurobi求解器解决混合控制问题。我想获得最终的根本放松溶液(Presolve和自动切割生成后)。我尝试编写日志文件,但是日志文件并没有打印出所有迭代,并且在Presolve和cut生成后无法获得最佳的放松目标。
获取根节点放松解决方案 这篇文章显示了如何检索我想要的值,但是我不确定如何更改代码以在Drake中使用它。
提前致谢。
I am solving hybrid control problems using Drake with Gurobi solver. I want to get the final root relaxed solution (after presolve and auto cut generation). I tried writing log files, but the log file doesn't print out every iteration and I couldn't get the best relaxed objective bound after presolve and cut generation.
Get root node relaxation solution
This post shows how to retrieve the value I want, but I am not sure how to change the code to use it in Drake.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在GuroBisolver中,我们为混合智能程序提供了添加回调功能,您可以检查 addmipnodecallback 或
In GurobiSolver, we provide adding callback functions for mixed-integer program, you can check AddMipNodeCallback or AddMipSolCallback