-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for MOI.BarrierIterations #389
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #389 +/- ##
==========================================
+ Coverage 94.02% 94.06% +0.04%
==========================================
Files 4 4
Lines 920 927 +7
==========================================
+ Hits 865 872 +7
Misses 55 55
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this. Thought I'd comment. Hope it's useful.
model.barrier_iterations = 0 | ||
function _moi_callback(args...) | ||
# iter_count is args[2] | ||
model.barrier_iterations = args[2] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs say that this method is called exactly once per iteration during convergence, so I guess it is save to do this:
https://coin-or.github.io/Ipopt/classIpopt_1_1TNLP.html#a2f962a4c43464adb7928771af84503d6
Closes #388