SolverParams#
- class dynode.config.params.SolverParams(*, solver_method: ~diffrax._solver.base.AbstractSolver = <factory>, ode_solver_rel_tolerance: ~typing.Annotated[float, ~annotated_types.Gt(gt=0)] = 1e-05, ode_solver_abs_tolerance: ~typing.Annotated[float, ~annotated_types.Gt(gt=0)] = 1e-06, max_steps: ~typing.Annotated[int, ~annotated_types.Gt(gt=0)] = 1000000, constant_step_size: ~typing.Annotated[float, ~annotated_types.Ge(ge=0)] = 0, discontinuity_points: list[float] = <factory>)#
Bases:
BaseModel
Parameters used by the ODE solver.
- __init__(**data: Any) None #
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Methods
Attributes
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- solver_method: AbstractSolver#
- ode_solver_rel_tolerance: Annotated[float, Gt(gt=0)]#
- ode_solver_abs_tolerance: Annotated[float, Gt(gt=0)]#
- max_steps: Annotated[int, Gt(gt=0)]#
- constant_step_size: Annotated[float, Ge(ge=0)]#
- discontinuity_points: list[float]#
- _abc_impl = <_abc._abc_data object>#