Documentation

gurobi_relax()

gurobi_relax ( model )
gurobi_relax ( model, env )

Create the relaxation of a MIP model. Transforms integer variables into continuous variables, and removes SOS and general constraints.

Arguments:

model: The model struct must contain a valid Gurobi model. See the model argument section for more information.

env: The env struct, when provided, allows you to use Gurobi Compute Server or Gurobi Instant Cloud. See the env argument section for more information.

Return value:

A model struct variable, as described in the model parameter section.

Example usage:
model = gurobi_read('stein9.mps');
relaxed = gurobi_relax(model);