Filter Content By
Version
Text Search
${sidebar_list_label} - Back
Filter by Language
Creating the model
The first step in our example is to create a model. A Gurobi model
holds a single optimization problem. It consists of a set of
variables, a set of constraints, and the associated attributes
(variable bounds, objective coefficients, variable integrality types,
constraint senses, constraint right-hand side values, etc.). We start
this example with an empty model object:
# Create a new model m = gp.Model("mip1")
This function takes the desired model name as its argument.