Skip to content
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

ERROR: Solver (asl) returned non-zero return code (3221226505) #48

Open
d568-ubi opened this issue Sep 9, 2020 · 6 comments
Open

ERROR: Solver (asl) returned non-zero return code (3221226505) #48

d568-ubi opened this issue Sep 9, 2020 · 6 comments

Comments

@d568-ubi
Copy link

d568-ubi commented Sep 9, 2020

Hello

I will appreciate if someone can help with the meaning of this code:
ERROR: Solver (asl) returned non-zero return code (3221226505)

best regards
MCoimbra

@merraksh
Copy link
Member

merraksh commented Sep 9, 2020 via email

@d568-ubi
Copy link
Author

d568-ubi commented Sep 9, 2020

Hello. It would help to see how this happened; for example, which modeling language, what model you used, preceding output, etc. From the information you gave it seems that the ASL interface, which takes care of computing objective function, constraint violation, Hessian, etc., of the nonlinear problem has failed. This does not seem connected to Couenne but rather to ASL, which is one of the libraries used by Couenne.   Hope this helps.   Regards, Pietro   Sent: Wednesday, September 09, 2020 at 6:56 PM From: "d568-ubi" notifications@github.com To: "coin-or/Couenne" Couenne@noreply.github.com Cc: "Subscribed" subscribed@noreply.github.com Subject: [coin-or/Couenne] ERROR: Solver (asl) returned non-zero return code (3221226505) (#48)   Hello I will appreciate if someone can help with the meaning of this code: ERROR: Solver (asl) returned non-zero return code (3221226505) best regards MCoimbra — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Hi Pietro

Thank you so much for the answer.

I'm modeling with pyomo and using couenne as a solver for power system analysis. The problem is a MINLP. Couenne is solving 5 bus system but not 118 bus system. Ipopt solver is solving both problems (5 and 118 bus) but it can not handle binary variables as it is for NLP problems. So, I thought the problem could be with couenne as the objective and constraints seems to be right, perhaps.

There is a troubleshooting table that defines the code meaning?

Regards
MCoimbra

@merraksh
Copy link
Member

merraksh commented Sep 9, 2020 via email

@d568-ubi
Copy link
Author

d568-ubi commented Sep 9, 2020

Ok, thank you again Pietro.

I appreciate your quick response and advice.

best regards
MCoimbra

@kbensafta
Copy link

Hi,

In case this could be useful to anyone: I am getting the same error using pyomo and octeract (using ipopt under the hood) to solve a NLP problem. This error arises whenever I let an uncompleted line in the octeract option file.

e.g. :
having in the option file:
MAX_SOLVER_TIME =
instead of
MAX_SOLVER_TIME = 20
will return the error in question.

@defencedog
Copy link

defencedog commented Nov 15, 2022

I am having similar issue on ARM64 Android
Example from https://github.com/SolverMax/Collated/blob/main/Non-linear-functions/Non-convex-MINLP-with-Couenne/Non-convex-MINLP.ipynb

In [18]: import pyomo.environ as pyo
    ...:
    ...: def ObjRule(m):
    ...:     return 3*m.x1**4-4*m.x1**3-12*m.x1**2 + 3*m.x2**4-4*m.x2**3-12*m.x2**2
    ...:
    ...: model = pyo.ConcreteModel(name="Nonconvex MINLP sample")
    ...:
    ...: model.x1 = pyo.Var(domain=pyo.Integers, bounds=(-5, 5), initialize=-1)
    ...: model.x2 = pyo.Var(domain=pyo.Integers, bounds=(-5, 5), initialize=-1)
    ...:
    ...: model.OBJ = pyo.Objective(rule = ObjRule, sense = pyo.minimize)
    ...:
    ...: opt = pyo.SolverFactory('couenne')
    ...: res = opt.solve(model, tee=False)
    ...:
    ...: print(f"\nObjective:{model.OBJ()}")
    ...: print(f"x1: {model.x1()}")
    ...: print(f"x2: {model.x2()}")
ERROR: Solver (asl) returned non-zero return code (-6)
ERROR: Solver log: Couenne devel -- an Open-Source solver for Mixed Integer
    Nonlinear Optimization Mailing list: couenne@list.coin-or.org
    Instructions: http://www.coin-or.org/Couenne couenne: ANALYSIS TEST:
    Couenne: new cutoff value -1.0000000000e+01 (0.019385 seconds) terminating
    with uncaught exception of type Bonmin::TNLPSolver::UnsolvedError*
---------------------------------------------------------------------------
ApplicationError                          Traceback (most recent call last)
<ipython-input-18-b13c923328e4> in <cell line: 14>()
     12
     13 opt = pyo.SolverFactory('couenne')
---> 14 res = opt.solve(model, tee=False)
     15
     16 print(f"\nObjective:{model.OBJ()}")

/data/data/com.termux/files/usr/lib/python3.9/site-packages/pyomo/opt/base/solvers.py in solve(self, *args, **kwds)
    594                 elif hasattr(_status, 'log') and _status.log:
    595                     logger.error("Solver log:\n" + str(_status.log))
--> 596                 raise ApplicationError(
    597                     "Solver (%s) did not exit normally" % self.name)
    598             solve_completion_time = time.time()

ApplicationError: Solver (asl) did not exit normally

ASL build / compile logs attached
ASL_Config_Build.log.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants