-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AMPL bug when reading file s365mod.nl #2
Comments
The ampl generator of .nl files may change the variable order : it is then a little complicated |
Good to know! |
Hello, If we put the bounds outside the model, it will be problematic. Because some bounds are given in the modeling like constraints, and they are interpreted by AMPL as bounds. To investigate ... from where the reopening of the bug ... |
extract from .nl if the following option are activate in Ampl original file: "option ibexopt_auxfiles rc;"
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
The text was updated successfully, but these errors were encountered: