it is not possible to get current objective bounds between solutions #4202
-
What language and solver does this apply to? Describe the problem you are trying to solve. Describe the solution you'd like Add relative gap in a log for #bound event, especially for large domains it can be more helpful then numbers: Describe alternatives you've considered |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 1 reply
-
Why was the issue #4201 moved to discussions ? It is quite easy to be informed about new bounds of objective function.
Adding of relative gap in a log is especially important for setting of relative_gap_limit. Otherwise a user needs to parse log file or manually calculate gap on every bound event to know when a solver found that a solution is in given distance from optimal solution. The change is trivial, again in the method UpdateInnerObjectiveBounds. |
Beta Was this translation helpful? Give feedback.
-
I move all feature requests to discussions/feature requests. I still use the issue template as I have not yet looked at discussions templates, not do I know if I can create a discussion from an issue template. |
Beta Was this translation helpful? Give feedback.
-
and to answer your question, it is not a zero cost effort.
|
Beta Was this translation helpful? Give feedback.
-
for the gap printing, there is a solution log callback code where you can append the mip gap for each solution. |
Beta Was this translation helpful? Give feedback.
-
not trivial.
SolutionCallback is a non C++ stub.
In C++, there are no wrapping classes, just lambdas.
Laurent Perron | Operations Research | ***@***.*** | (33) 1 42 68 53
00
Le lun. 29 avr. 2024 à 13:39, gregy4 ***@***.***> a écrit :
… I understand that.
Maybe light version with update of SolutionCallback::BestObjectiveBound()
would be enough so current value can be checked externally. In this case 1.
is not needed. Update can be explicitly enabled by solver parameter to not
affect models mentioned in 2.
—
Reply to this email directly, view it on GitHub
<#4202 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUPL3NP5ECF3ZFMRR74N2TY7YWORAVCNFSM6AAAAABG6BMHXWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TENRRGY4TQ>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I just pushed the code. |
Beta Was this translation helpful? Give feedback.
I just pushed the code.