Skip to main content

MaxIterations

Module: opytimizer.core.stopping

Stops after n iterations of the optimization loop.

Constructor​

MaxIterations(n: int) -> None

Parameters​

ParameterTypeDefaultDescription
nint—

Methods​

init_pbar​

init_pbar(self, position: int) -> None

Progress Bar initialization.

Parameters​

ParameterTypeDefaultDescription
positionint—

should_stop​

should_stop(self, opt) -> bool

Return True when the criterio was satisfied

Parameters​

ParameterTypeDefaultDescription
opt—

update_pbar​

update_pbar(self, opt) -> None

Update the Progress Bar to the current optimization state.

Parameters​

ParameterTypeDefaultDescription
opt—