controls
Step-size control algorithms.
T = TypeVar('T')
module-attribute
¤
A type-variable to indicate the controller's state.
Controller
¤
Bases: Generic[T]
Control algorithm.
Source code in probdiffeq/controls.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
apply: Callable[[T, float, float], T]
instance-attribute
¤
Propose a time-step \(\Delta t\).
clip: Callable[[T, float, float], T]
instance-attribute
¤
(Optionally) clip the current step to not exceed t1.
extract: Callable[[T], float]
instance-attribute
¤
Extract the time-step from the controller state.
init: Callable[[float], T]
instance-attribute
¤
Initialise the controller state.
integral(**options) -> Controller[float]
¤
Construct an integral-controller.
Source code in probdiffeq/controls.py
93 94 95 96 97 98 |
|
integral_clipped(**options) -> Controller[float]
¤
Construct an integral-controller with time-clipping.
Source code in probdiffeq/controls.py
101 102 103 104 105 106 |
|
proportional_integral(**options) -> Controller[tuple[float, float]]
¤
Construct a proportional-integral-controller.
Source code in probdiffeq/controls.py
28 29 30 31 32 33 |
|
proportional_integral_clipped(**options) -> Controller[tuple[float, float]]
¤
Construct a proportional-integral-controller with time-clipping.
Source code in probdiffeq/controls.py
36 37 38 39 40 41 42 |
|