Overview of status codes per solver

3,715 views
Skip to first unread message

Marianne Hoogeveen

unread,
Jan 9, 2019, 11:38:20 AM1/9/19
to or-tools-discuss
I'm trying to report solver status codes and looking for an overview of status and meanings. I found one for the SAT solver, but now I'd like to find it for the linear solver as well.

This is what I have so far:
pywraplp.Solver.FEASIBLE = 1
pywraplp.Solver.INFEASIBLE = 2
pywraplp.Solver.UNBOUNDED = 3
pywraplp.Solver.ABNORMAL = 4
pywraplp.Solver.NOT_SOLVED = 6

So my questions are the following:
Which am I missing? (is there a number 5?)

Which scenarios are typical for the status to be abnormal or not solved?

Marianne Hoogeveen

unread,
Jan 9, 2019, 1:29:25 PM1/9/19
to or-tools-discuss
Oops, forgot pywraplp.Solver.OPTIMAL = 0

marianne....@gmail.com

unread,
Jan 31, 2022, 12:03:14 PM1/31/22
to or-tools-discuss
I now encountered a case where the pywraplp solver returns status code 5. No idea what this status means. Anyone?

Sagar Pingale

unread,
Jun 28, 2022, 1:10:12 AM6/28/22
to or-tools-discuss
I'm too facing the same problem, did you get any solution regarding this?

Laurent Perron

unread,
Jun 28, 2022, 1:15:14 AM6/28/22
to or-tools-discuss

--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/50024df7-b2da-47e2-9471-bb08c5d84cedn%40googlegroups.com.

Marianne Hoogeveen

unread,
Jun 28, 2022, 9:13:46 AM6/28/22
to or-tools...@googlegroups.com
@Sagar as Laurent's link seems to suggest, error code 5 means "model invalid". However, if I try pywraplp.Solver.MODEL_INVALID I get the following error:

AttributeError: type object 'Solver' has no attribute 'MODEL_INVALID'


For now, I just map solver status 5 to "model invalid" myself


You received this message because you are subscribed to a topic in the Google Groups "or-tools-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/or-tools-discuss/YUdm1C_xHg4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/CABcmEeYi7Qzf%3DHPY2Tm4vtgAGz8oQhsxpo1km%2BWjZbg8zf0oww%40mail.gmail.com.

Laurent Perron

unread,
Jun 28, 2022, 9:41:49 AM6/28/22
to or-tools-discuss
Yes. I suppose the python swig wrapping is not complete.

Laurent Perron | Operations Research | lpe...@google.com | (33) 1 42 68 53 00


Corentin "Mizux" Le Molgat

unread,
Jun 29, 2022, 7:22:11 AM6/29/22
to or-tools-discuss
Reply all
Reply to author
Forward
0 new messages