Model()

Model ( name='''', env=None )

Model constructor.

Arguments:

name: Name of new model.

env: Compute Server client environment in which to create the model. This argument should only be used when you have explicitly created a Compute Server client environment (using the Env constructor).

Return value:

New model object. Model initially contains no variables or constraints.

Example usage:

  m = Model("NewModel")
  x0 = m.addVar()