Skip to content

AMPL bug when reading file s365mod.nl #2

@bneveu

Description

@bneveu

The variables x(2]nd x(3) are exchanged when reading the file s365mod.nl (in the coconut series2 benchmark)
The created system in ibexopt does not correspond to the input file
in particular the objective becomes
goal: (x(1)*x(2))
instead of (x(1)*x(3))
and the constraints
constraints:
(((x(5)-x(7))^2+(x(4)-x(6))^2)-4)>=0
((((x(2)*x(4))-(x(3)*x(5)))/(x(2)^2+sqrt(x(3)^2)))-1)>=0
((((x(2)*x(6))-(x(3)*x(7)))/(x(2)^2+sqrt(x(3)^2)))-1)>=0
((((((x(3)-x(1))*x(5))+(x(1)*x(2)))-(x(2)*x(4)))/((x(3)-x(1))^2+sqrt(x(2)^2)))-1)>=0
((((((x(3)-x(1))*x(7))+(x(1)*x(2)))-(x(2)*x(6)))/((x(3)-x(1))^2+sqrt(x(2)^2)))-1)>=0

instead of
constraints:
(((x(4)-x(6))^2+(x(5)-x(7)^2)-4)>=0
((((x(3)*x(4))-(x(2)*x(5)))/(sqrt(x(2)^2)+x(3)^2))-1)>=0
((((x(3)*x(6))-(x(2)*x(7)))/(sqrt(x(2)^2)+x(3)^2))-1)>=0
(((((x(1)*x(3))+((x(2)-x(1))*x(5)))-(x(3)*x(4)))/(sqrt(x(3)^2)+(x(2)-x(1))^2))-1)>=0
(((((x(1)*x(3))+((x(2)-x(1))*x(7)))-(x(3)*x(6)))/(sqrt(x(3)^2)+(x(2)-x(1))^2))-1)>=0

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