Skip to content

.nl file writer does not eliminate constant constraints #612

Open
@dilr

Description

@dilr

I have written two examples in which BARON chokes on a constant constraint passed through the ASL interface. In both cases, the .nl writer simplifies the constraint to 0 == 0, but writes it anyways.

This has a constraint which is constant (with respect to the solver) because both variables in it are "fixed" in the Pyomo model.
kmn_model.py.txt

This has a constraint which is constant because the constraint is of the form Constant == Parameter
kmnc_model.py.txt

Note that the line number on the syntax error refers to the .bar file which baron generates from the .nl file, not the .nl file itself.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions