Skip to content

What is ReOptimizeTNLP() function in IPOPT C++ interface and how to use it? #499

Answered by svigerske
yanhaoy asked this question in Q&A
Discussion options

You must be logged in to vote

The docu of ReOptimizeTNLP says a bit more, though I don't think that the structure must be the same. ReOptimizeTNLP still does a lot of initialization, which would deal with changes in problem structure.
Option warm_start_same_structure needs to be set additionally if more initializations should be skipped.

So, you can use ReOptimizeTNLP whenever you solve with the same TNLP object that you used for solving before. This will skip reconstruction of the TNLPAdapter that translates between the TNLP and the NLP representation that Ipopt uses internally. It will also skip reconstruction of the IpoptAlgorithm object, so if you change Ipopt options that would switch components of the Ipopt algo…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@yanhaoy
Comment options

@svigerske
Comment options

Answer selected by yanhaoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants