Solver.status in C#

140 views
Skip to first unread message

Pritam Bhat

unread,
Apr 30, 2019, 9:26:54 PM4/30/19
to or-tools-discuss
Hello All, 
I am not able to find Solver.status method like below in C# to get the status. I am using stable version. Any idea ?

Thanks
Pritam

Search status

You can return the status of a search using the routing model's status method. Here's the Python code to print the status of a search:

print("Solver status: ", solver.status())

This prints an integer with the following meanings:

ValueDescription
0ROUTING_NOT_SOLVED: Problem not solved yet.
1ROUTING_SUCCESS: Problem solved successfully.
2ROUTING_FAIL: No solution found to the problem.
3ROUTING_FAIL_TIMEOUT: Time limit reached before finding a solution.
4ROUTING_INVALID: Model, model parameters, or flags are not valid.

Laurent Perron

unread,
May 1, 2019, 1:15:48 AM5/1/19
to or-tools-discuss
It is renamed GetStatus() because of a name clash.

--
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/4bc3ea49-4a92-4445-a52d-ea27b839e298%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages