Model.reset()


Model.reset()

reset ( clearall=0 )

Reset the model to an unsolved state, discarding any previously computed solution information.

Arguments:

clearall (int, optional): A value of 1 discards additional information that affects the solution process but not the actual model (currently MIP starts, variable hints, branching priorities, lazy flags, and partition information). The default value just discards the solution.

Example usage:

  model.reset(0)