Documentation


Model.copy()

copy ( )

Copy a model. Note that due to the lazy update approach in Gurobi, you have to call update before copying it.

Return value:

Copy of model.

Example usage:

  model.update() # If you have unstaged changes in the model
  copy = model.copy()