Documentation


MVar()

MVar ( vars )

MVar constructor. Create an MVar object from a list of Var objects. Note that MVar objects are typically created using Model.addMVar.

Arguments:

vars: List of Gurobi Var objects.

Return value:

The new MVar object.

Example usage:

  x = MVar(model.getVars())