PIStepControlConfig

class cubie.integrators.step_control.adaptive_PI_controller.PIStepControlConfig(precision: type[float16] | type[float32] | type[float64] | dtype[float16] | dtype[float32] | dtype[float64], n: int = 1, timestep_memory_location: str = 'local', dt_min: float = 1e-06, dt_max: float | None = 1.0, atol: float | Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes] = array([1.e-06]), rtol: float | Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes] = array([1.e-06]), algorithm_order: int = 1, min_gain: float = 0.3, max_gain: float = 2.0, safety: float = 0.9, deadband_min: float = 1.0, deadband_max: float = 1.2, kp: float = 0.05555555555555555, ki: float = 0.1111111111111111)[source]

Bases: AdaptiveStepControlConfig

Configuration for proportional–integral adaptive controllers.

Notes

The simplified PI gain formulation offers faster response for non-stiff systems than a pure integral controller.

property ki: float

Return the integral gain.

property kp: float

Return the proportional gain.