Try our new documentation site (beta).
GRBBatch::writeJSONSolution()
This method returns the stored solution of a completed batch request from a Cluster Manager. The solution is returned in a gzip-compressed JSON file. The file name you provide must end with a .json.gz extension. The JSON format is described in the JSON solution format section. Note that for this call to succeed, the status of the batch request must be COMPLETED. Note further that the result file stored Cluster Manager side must be gzip-compressed and exactly one result file should be associated with this batch; for batches submitted programmatically through the API both will be the case. Please refer to the Batch Status Codes section for further details.
void | writeJSONSolution ( | string& | filename ) |
Arguments:
filename: Name of file where the solution should be stored (in JSON format).
Example usage:
// Write the full JSON solution string to a file batch->writeJSONSolution("batch-sol.json.gz");