Skip to content

Specialized error for hess_coord and hess_structure with FeasibilityResidual #32

@tmigot

Description

@tmigot

I was trying to find a feasible point of an NLPModel by transforming it into a FeasibilityResidual and then using ipopt, which returns an error because hess_coord and hess_structure are not implemented for FeasibilityResidual.

I know this has been discussed for LLSModel already in #273. If I understand correctly, the fix is to call ipopt(FeasbilityFormNLS(FeasibilityResidual(nlp))).

If this fix is "well-accepted", we should probably return a specialized error for hess_coord and hess_structure that document the use of FeasbilityFormNLS instead of the NotImplementedError. What do you think?

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