Repository navigation
Reuse existing data structures on re-solve - #516
Conversation
Codecov Reportâ
All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #516 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 5 5
Lines 1154 1164 +10
=========================================
+ Hits 1154 1164 +10 â View full report in Codecov by Sentry. ð New features to boost your workflow:
|
|
Before after Code |
|
Damn that was fast! Did you sleep, like, sometimes ? XP Good job, seems to solve the "useless" |
I live in New Zealand. Quiet Friday for me |
| if !has_nlp_constraints && !has_quadratic_constraints | ||
| Ipopt.AddIpoptStrOption(model.inner, "jac_c_constant", "yes") | ||
| Ipopt.AddIpoptStrOption(model.inner, "jac_d_constant", "yes") | ||
| if model.is_linear |
There was a problem hiding this comment.
The Jacobian can be constant, even if the objective is nonlinear ;)
There was a problem hiding this comment.
But can we detect these cases easily ? The linear case is just an obvious case, so no additional code except maybe a Bool test. That would not be the case with nonlinear constraints.
There was a problem hiding this comment.
is_linear referred only to the constraints. I renamed to has_only_linear_constraints

Closes #515