Skip to content
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

support subexpression sharing for Ipopt template #4

Open
CSchank opened this issue Jun 2, 2020 · 2 comments
Open

support subexpression sharing for Ipopt template #4

CSchank opened this issue Jun 2, 2020 · 2 comments
Assignees

Comments

@CSchank
Copy link
Contributor

CSchank commented Jun 2, 2020

We generate a method of doing combined computation, but we don't actually use it to help make Ipopt more efficient.

@dalvescb, to this end, we might be able to take advantage the new_x Boolean value provided by Ipopt to the eval_f, eval_grad_f, eval_g, eval_jac_g and eval_h functions, documented here as "false if any evaluation method (eval_*) was previously called with the same values in x, true otherwise. This can be helpful when users have efficient implementations that calculate multiple outputs at once. Ipopt internally caches results from the TNLP and generally, this flag can be ignored."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@dalvescb @CSchank and others