GRBenv * GRBgetenv ( GRBmodel *model )

Retrieve the environment associated with a model.

Note that this environment is a model environment, not the original environment on which the model was created. See Algorithmic parameters for more information.

Return value:

The environment associated with the model. A NULL return value indicates that there was a problem retrieving the environment.


model: The model from which the environment should be retrieved.

Example usage:

  GRBenv *env = GRBgetenv(model);