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

Change template to reuse computed value in objective / partial derivatives #2

Open
dalvescb opened this issue Jun 2, 2020 · 0 comments

Comments

@dalvescb
Copy link
Contributor

dalvescb commented Jun 2, 2020

Right now it appears templates like ipopt.c don't use evaluate_partial_derivates_and_objective, meaning that shared sub-expressions get recomputed inbetween calculating the objective / partials. Solution: pass evaluate_partial_derivatives_and_objective for both and use a global flag to check if it's already been computed per iteration?

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

1 participant