如何在Drake中使用Gurobi的回调功能

发布于 2025-02-12 00:52:24 字数 277 浏览 3 评论 0原文

我正在使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤檠 2025-02-19 00:52:24

在GuroBisolver中,我们为混合智能程序提供了添加回调功能,您可以检查 addmipnodecallback 或

In GurobiSolver, we provide adding callback functions for mixed-integer program, you can check AddMipNodeCallback or AddMipSolCallback

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文