int GRBfreemodel ( GRBmodel *model )

Free a model and release the associated memory.

Return value:

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


model: The model to be freed.

Example usage:

  error = GRBfreemodel(model);