双向更改事件类型? [英] Dual bound change event type?
问题描述
我正在尝试编写一个简单的事件处理程序,以便在最佳原始或双重边界发生变化时执行某些操作(请告诉我是否在这里重新发明轮子,并且已经有一种方法可以执行此操作).
I'm trying to code a simple event handler that does certain things whenever the best primal or dual bounds change (please let me know if I'm reinventing the wheel here and there is already a way of doing this).
对于原始边界,我可以捕获SCIP_EVENTTYPE_BESTSOLFOUND
事件,但是对于双重边界,我似乎找不到合适的事件类型(在type_event.h
中).我看到的所有与绑定相关的事件似乎都是针对可变范围的.
For the primal bound I can catch the SCIP_EVENTTYPE_BESTSOLFOUND
event, but for dual bound I can't seem to find an appropiate event type (in type_event.h
). All the bound-related events I see seem to be for variable bounds.
我错过了什么吗?还是应该只使用SCIP_EVENTTYPE_NODESOLVED
事件之类的东西,然后手动检查全局边界上的更改?
Am I missing something? Or should I just use something like the SCIP_EVENTTYPE_NODESOLVED
event and then manually check for changes on the global bound?
谢谢!
推荐答案
是的,没有事件可以捕捉到对偶界限的变化.在SCIP_EVENTTYPE_NODESOLVED
事件之后检查对偶听起来是合理的.
Yes, there is no event that you can catch for a change in the dual bound. Checking the dual bound after the SCIP_EVENTTYPE_NODESOLVED
event sounds reasonable.
这篇关于双向更改事件类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!