Skip to content

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

Open
@dalvescb

Description

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?

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