IterationLimitError

(class from pyomo.common.errors)

class pyomo.common.errors.IterationLimitError(*args)[source]

Bases: PyomoException, RuntimeError

A subclass of RuntimeError, raised by an iterative method when the iteration limit is reached.

TODO: solvers currently do not raise this exception, but probably should (at least when non-normal termination conditions are mapped to exceptions)

__init__(*args)

Member Documentation

add_note(object, /)

Exception.add_note(note) – add a note to the exception

with_traceback(object, /)

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.