Once you are logged in to a Cluster Manager, you can use grbcluster to create a batch. This will submit a non-interactive job. The typical process involves the following three steps:
> grbcluster batch solve glass4.mps ResultFile=solution.sol info : Batch ada0a345-aa9e-4d6b-a7f0-05caf345d4e2 created info : Uploading glass4.mps... info : Batch ada0a345-aa9e-4d6b-a7f0-05caf345d4e2 submitted with job 66d4783b...
> grbcluster batch status 2e05810c-911f-47ee-b695-27e1244fefd0 --wait info : Batch 2e05810c-911f-47ee-b695-27e1244fefd0 status is SUBMITTED info : Batch 2e05810c-911f-47ee-b695-27e1244fefd0 status is SUBMITTED info : Batch 2e05810c-911f-47ee-b695-27e1244fefd0 status is SUBMITTED info : Batch 2e05810c-911f-47ee-b695-27e1244fefd0 status is SUBMITTED info : Batch 2e05810c-911f-47ee-b695-27e1244fefd0 status is COMPLETED
grbcluster batch download 2e05810c-911f-47ee-b695-27e1244fefd0 info : Results will be stored in directory 2e05810c-911f-47ee-b695-27e1244fefd0 info : Downloading solution.sol... info : Downloading gurobi.log... info : Discarding batch data
You can actually use grbcluster
to perform all three steps in a
single command:
> grbcluster batch solve ResultFile=solution.sol misc07.mps --download info : Batch 5d0ea600-5068-4a0b-bee0-efa26c18f35b created info : Uploading misc07.mps... info : Batch 5d0ea600-5068-4a0b-bee0-efa26c18f35b submitted with job a9700b72... info : Batch 5d0ea600-5068-4a0b-bee0-efa26c18f35b status is COMPLETED info : Results will be stored in directory 5d0ea600-5068-4a0b-bee0-efa26c18f35b info : Downloading solution.sol... info : Downloading gurobi.log... info : Discarding batch data