Skip to content

TargetDuration

TargetDuration

Bases: ABC

Base class specifying how long a solver step should run.

Use the factory methods seconds, minutes, hours for wall-clock durations, or iterations for a fixed iteration count.

value abstractmethod

value() -> float

numerical value (without unit) of the target duration