Working with multiple models

The Gurobi shell allows you to work with multiple models simultaneously. For example...

gurobi> a = read('c:/gurobi952/win64/examples/data/p0033')
Read MPS format model from filec:/gurobi952/win64/examples/data/p0033.mps
Reading time = 0.00 seconds
P0033: 16 Rows, 33 Columns, 98 NonZeros.
gurobi> b = read('c:/gurobi952/win64/examples/data/stein9')
Read MPS format model from filec:/gurobi952/win64/examples/data/stein9.mps
Reading time = 0.00 seconds
STEIN9: 13 Rows, 9 Columns, 45 NonZeros.

Themodels()命令提供一个列表的所有活动模型。

gurobi> models() Currently loaded models: a :  b : 

Note that parameters can be set for a particular model with theModel.setParam()method or theModel.Paramsclass, or they can be changed for all models in the Gurobi shell by using the globalsetParam()method.