IterationLimitError

(class from pyomo.common.errors)

class pyomo.common.errors.IterationLimitError[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, **kwargs)

Member Documentation

add_note()

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

with_traceback()

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