Issue with calling Knitro

21 views
Skip to first unread message

John zhang

unread,
Jun 8, 2024, 10:06:51 AM (12 days ago) Jun 8
to Artelys Knitro forum
Dear expert,

I use pyomo to formulate my problem and then use ampl to call knitro to solve my problem, as show in code below.
self.solver_pyo = pyo.SolverFactory(modules.find(“Knitro”), solve_io = “nl”)

And my program contains 3 processes to solve three different problem simultaneously, with two successfully returns local optimal solution, the third one reports error with message below:
ERROR: Solver (asl) returned non-zero return code (-11)
ERROR: See the solver log above for diagnostic information.

WechatIMG228

I have checked the document of Knitro, it didn’t explain return code (-11).

WX20240606-122317@2x

So I wonder if anyone could explain it why it didn’t work ?

Appreciate your answer !

Richard Waltz

unread,
Jun 10, 2024, 12:16:42 AM (11 days ago) Jun 10
to kni...@googlegroups.com
Hi,

I am not familiar with these error messages.  The error messages you report do not come from Knitro itself.  Rather they likely come from the Ampl Solver Library (asl) or from Pyomo.  I would suggest contacting the AMPL or Pyomo teams to see if they have some information here.  Note that the Pyomo interface is not maintained by Artelys.

Regards,
-Richard




From: kni...@googlegroups.com <kni...@googlegroups.com> on behalf of John zhang <z6249...@gmail.com>
Sent: Friday, June 7, 2024 9:10 PM
To: Artelys Knitro forum <kni...@googlegroups.com>
Subject: [Knitro] Issue with calling Knitro
 
--
You received this message because you are subscribed to the Artelys "Knitro Nonlinear Optimization Solver" google group.
To post to this group, send email to kni...@googlegroups.com
To unsubscribe from this group, send email to knitro-un...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/knitro?hl=en
Thank You,
Artelys
http://www.artelys.com/en/optimization-tools/knitro
---
You received this message because you are subscribed to the Google Groups "Artelys Knitro forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to knitro+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/knitro/766b925c-81b3-4216-8815-b52894388d1bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages