You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve efficiency of set_normalized_rhs! with exact Hessians #377
Similarly to jump-dev/Ipopt.jl#515, calling set_normalized_rhs! to update the constant vector of linear constraints before re-solving is not efficient, since it invalidates the inner model thus requiring an expensive initialize calls.
Here's a minimum reproducible example with ModelPredictiveControl.jl:
The initialize portion would completely disappear of the flame graph if the model was not invalidated. A solution similar to jump-dev/Ipopt.jl#516 could be re-implemented here.
Activity
odow commentedon Nov 11, 2025
Looks like we just need to call
KN_set_con_xxbndagain:KNITRO.jl/ext/KNITROMathOptInterfaceExt.jl
Lines 725 to 741 in f9ed941
This is easier than Ipopt.
odow commentedon Nov 12, 2025
Thanks! Feel free to keep opening issues. Benchmarks and reproducible examples are always helpful.