Skip to content

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

Description

@dalvescb

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions