有什么方法可以返回PYOMO中解决模型的主动约束?
使用成功解决的具体模型。有什么方法可以检索主动约束吗?
Using a concrete model that successfully solves. Is there any way to retrieve the ACTIVE constraints?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“ Active”有点棘手,因为从技术上讲,这是求解器的内部状态(大多数求解器都不报告)。您可以通过该方法获得合理的主动约束近似值:
...或查看该方法在做什么(仅是40行代码),并实现对您的用例的特定内容。
"Active" is a bit tricky, as that is technically an internal state of the solver (that most solvers don't report). You can get a reasonable approximation of active constraints with the method:
...or look at what that method is doing (it's only 40 lines of code) and implement something specific to your use case.