After a call to optimize, this method returns the resulting solution and related model attributes as a JSON string. Please refer to the JSON solution format section for details.
A non-zero return value indicates that there was a problem generating the JSON solution string. Refer to the Error Code table for a list of possible return values.
model: Model from which to query its current JSON solution string.
buffP: The location in which the pointer to the newly created JSON string should be placed.
On Windows, the string returned in
buffP is allocated in a
different heap from the calling program. You must call
to free it.