Dual bound change event type?

时光怂恿深爱的人放手 提交于 2019-12-11 18:05:59

问题


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).

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.

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?

Thanks!


回答1:


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.



来源:https://stackoverflow.com/questions/56779342/dual-bound-change-event-type

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!