|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgurobi.GRBBatch
public class GRBBatch
Gurobi batch object. Batch optimization is a feature available with the Gurobi Cluster Manager. It allows a client program to build an optimization model, submit it to a Compute Server cluster (through a Cluster Manager), and later check on the status of the model and retrieve its solution. For more information, please refer to the Batch Optimization section.
Commonly used methods on the batch object include @link GRBBatch#update update (refresh attributes from the Cluster Manager),
Constructor Summary | |
---|---|
GRBBatch(GRBEnv env,
java.lang.String batchID)
|
Method Summary | |
---|---|
void |
abort()
This method instructs the Cluster Manager to abort the processing of this batch request, changing its status to ABORTED. |
void |
discard()
This method instructs the Cluster Manager to remove all information related to the batch request in question, including the stored solution if available. |
void |
dispose()
Free all resources associated with this Batch object. |
protected void |
finalize()
|
int |
get(GRB.IntAttr attr)
Query the value of an int-valued batch attribute. |
java.lang.String |
get(GRB.StringAttr attr)
Query the value of a string-valued batch attribute. |
java.lang.String |
getJSONSolution()
|
void |
retry()
This method instructs the Cluster Manager to retry optimization of a failed or aborted batch request, changing its status to SUBMITTED. |
void |
update()
All Batch attribute values are cached locally, so queries return the value received during the last communication with the Cluster Manager. |
void |
writeJSONSolution(java.lang.String filename)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GRBBatch(GRBEnv env, java.lang.String batchID) throws GRBException
env
- The environment in which the new batch object should be created.batchID
- ID of the batch request for which you want to access status and other
information.
GRBException
Method Detail |
---|
public void writeJSONSolution(java.lang.String filename) throws GRBException
filename
- Name of file where the solution should be stored (in JSON format).
GRBException
public java.lang.String getJSONSolution() throws GRBException
GRBException
public void update() throws GRBException
GRBException
public void abort() throws GRBException
GRBException
public void retry() throws GRBException
GRBException
public void discard() throws GRBException
GRBException
public void dispose()
protected void finalize()
finalize
in class java.lang.Object
public int get(GRB.IntAttr attr) throws GRBException
attr
- The attribute being queried.
GRBException
public java.lang.String get(GRB.StringAttr attr) throws GRBException
attr
- The attribute being queried.
GRBException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |