Model and optimization status and solveStatus codes
AnsweredI am writing a microservice to check the status of models on a compute server by calling the GET /cluster/jobs/{id} api endpoint.
I'm a little confused by the status codes I see when this request comes back during and after the solve process.
I am running a MILP model. During the solve process I see both status: 2 and solveStatus: 2. Only after the solve process has completed do I see the optimizationStatus: {status: 2} response, at which point the status changes to 5 and solveStatus changes to 3. The optimizationStatus: status: 2 response makes sense as it lines up with the status codes defined here: https://www.gurobi.com/documentation/9.1/refman/optimization_status_codes.html#sec:StatusCodes
Can you point me to documentation regarding the status and solveStatus code mapping?
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hi Andrew,
I opened a support ticket for this in our Zendesk system and we will get back to you through the ticket.
Thanks for your patience!
Best regards,
Maliheh
0 -
Hello Hosford, Andrew L Maliheh Aramon,
I am having the same issue. Can you post your findings here ?
Thanks, Benjamin
0 -
Hi Benjamin,
You might find the documentation of the Cluster REST API useful. If you are using the Gurobi Cluster Manager, the complete documentation on REST API can be accessed at Help -> REST API. If you search for "JobStatus" and "JobSolveStatus", you will find the following descriptions for each:
JobStatus number Job status 0=UNKNOWN, 1=QUEUED, 2=RUNNING, 3=ABORTED, 4=FAILED, 5=COMPLETED, 6=REJECTED, 7=DISCONNECTED, 8=IDLETIMEOUTJobSolveStatus number Job status 0=UNKNOWN, 1=INIT, 2=OPTIMIZING, 3=COMPLETEDThe same information can be seen if you search for "Job" where each key and its corresponding values in the job description dictionary are explained. The status 5 and the solveStatus 3 in the example above mean that the job is completed.
I guess your company has a commercial license with us. Feel free to submit a ticket via the Gurobi Help Center if you need further information.
Best regards,
Maliheh1
Post is closed for comments.
Comments
4 comments