-
Notifications
You must be signed in to change notification settings - Fork 15
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
Reuse existing MadNLPSolver
#213
Comments
Can't this be achieved with the current |
Maybe, I haven't fully understood everything that's going on yet 😃 The problem I'm having is that I'm not sure how to update the constraint bounds, the Also, shouldn't the counters cnt = MadNLPCounters(start_time=time()) be reset in |
ah, I see your point. Currently, in MadNLP we don't support updating For the counter, it might be necessary to separately keep the cumulate solution time and the last solution time cc: @frapac |
I think supporting reusing the MadNLP solver would be a net improvement (even compared to Ipopt). It should not be difficult to implement, but we have to do that with care. One issue I am seeing is that we are duplicating the info between the
They did some work recently in JuMP that may be related: |
The construction of an
MadNLPSolver
allocates a lot of memory, and repeatedly solving similar optimization problems by defining a newMadNLPSolver
for each problem is thus associated with a lot of overhead.Would it be possible to come up with either
MadNLPSolver
that takes an existingMadNLPSolver
to re-use the allocated memoryMy motivation is solving MPC problems where each consecutive differs from the last only in numerical values of bounds, the structure remains the same.
The text was updated successfully, but these errors were encountered: