Batch Status Codes

All batches have a current status, which is queried through the BatchStatus attribute on a Batch object. The attribute takes an integer value, but we recommend that you use one of the predefined status constants to check the status in your program. Each code has a name, and each language requires a prefix on this name to obtain the appropriate constant. You would access status code COMPLETED in the following ways from the available Gurobi interfaces:

Language Status Code
C GRB_BATCH_COMPLETED
C++ GRB_BATCH_COMPLETED
Java GRB.BatchStatus.COMPLETED
.NET GRB.BatchStatus.COMPLETED
Python GRB.BATCH_COMPLETED

In MATLAB and R, batch status codes are returned as strings (e.g. 'BATCH_COMPLETED').

Possible batch status codes are as follows:

Status code Value Description
CREATED 1 Batch was created, but is not ready to be scheduled.
SUBMITTED 2
 The batch has been completely specified, and is waiting for a job to finish  
 processing the request.  
ABORTED 3 Batch processing was aborted by the user.
FAILED 4 Batch processing failed.
COMPLETED 5 A Batch Job successfully processed the Batch request.

See the Batch Optimization section for more details.

Try Gurobi for Free

Choose the evaluation license that fits you best, and start working with our Expert Team for technical guidance and support.

Evaluation License
Get a free, full-featured license of the Gurobi Optimizer to experience the performance, support, benchmarking and tuning services we provide as part of our product offering.
Academic License
Gurobi supports the teaching and use of optimization within academic institutions. We offer free, full-featured copies of Gurobi for use in class, and for research.
Cloud Trial

Request free trial hours, so you can see how quickly and easily a model can be solved on the cloud.

Search