Documentation


GRBgetbatch

int GRBgetbatch ( GRBenv *env,
    const char *BatchID,
    GRBbatch **batchP )

Given a BatchID, as returned by GRBoptimizebatch, and a Gurobi environment that can connect to the appropriate Cluster Manager (i.e., one where parameters CSManager, UserName, and ServerPassword have been set appropriately), this function returns a GRBbatch structure. With it, you can query the current status of the associated batch request and, once the batch request has been processed, you can query its solution. Please refer to the Batch Optimization section for details and examples.

Return value:

A non-zero return value indicates that a problem occurred while creating a GRBbatch structure. Refer to the Error Code table for a list of possible return values. Details on the error can be obtained by calling GRBgeterrormsg.

Arguments:

env: The environment in which the new batch structure should be created.

BatchID: ID of the batch you want to access.

batchP: The location in which the pointer to the batch structure should be placed.

Example usage:

  /* create batch-object */
  error = GRBgetbatch(env, BatchID, &batch);
  if (error) goto QUIT;