GRBfixedmodel

Filter Content By
Version
Languages

GRBfixedmodel

 GRBmodel * GRBfixedmodel ( GRBmodel *model )

Create the fixed model associated with a MIP model. The MIP model must have a solution loaded (e.g., after a call to GRBoptimize). In the fixed model, each integer variable is fixed to the value that variable takes in the MIP solution.

Return value:

This routine returns the computed model. If there is a problem, the routine returns NULL.

Arguments:

model: The MIP model (with a solution loaded).

Example usage:

  GRBmodel *fixed = GRBfixedmodel(model);