Solver (asl) did not exit normally

737 views
Skip to first unread message

David Landry

unread,
Apr 23, 2016, 12:21:47 PM4/23/16
to Pyomo Forum
Hi guys,

I'm having trouble running a non-linear model through solver Couenne. In one of my models I get this error when I insert non-linear constraints

ERROR: "[base]/site-packages/pyomo/opt/base/solvers.py", 568, solve
Solver (asl) returned non-zero return code (-11)
ERROR: "[base]/site-packages/pyomo/opt/base/solvers.py", 571, solve
See the solver log above for diagnostic information.
Traceback (most recent call last):
  File "./optimize_pose_main.py", line 51, in <module>
    results = solve_instance(instance)
  File "./optimize_pose_main.py", line 36, in solve_instance
    results = solver.solve(instance, tee=True)
  File "/home/david/.local/lib/python2.7/site-packages/pyomo/opt/base/solvers.py", line 575, in solve
    "Solver (%s) did not exit normally" % self.name)
pyutilib.common._exceptions.ApplicationError: Solver (asl) did not exit normally


The thing is, one of my other models runs just fine with the same kind of constraint. I don't know why one of the models works and the other doesn't. I run the models through the BOOTSRAP.py script.

I think it might be a bug with couenne underneath. Do you guys know how I could save the model the is sent to the solver, so that I could debug couenne directly?

Thanks! I'll gladly provide any precision you need.


David Landry
WORKS.py
DONTWORK.py
BOOTSTRAP.py

Gabriel Hackebeil

unread,
Apr 23, 2016, 8:29:57 PM4/23/16
to pyomo...@googlegroups.com
If you add “keepfiles=True” when you call the solve method it will print the name of the temporary NL file that is written and prevent it from being deleted. You should be able to use that to manually debug things with Couenne.

Gabe

--
You received this message because you are subscribed to the Google Groups "Pyomo Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyomo-forum...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<WORKS.py><DONTWORK.py><BOOTSTRAP.py>

Reply all
Reply to author
Forward
0 new messages