ostk.astrodynamics.solver.TemporalConditionSolver¶
- class TemporalConditionSolver(
- self: ostk.astrodynamics.solver.TemporalConditionSolver,
- time_step: ostk.physics.time.Duration,
- tolerance: ostk.physics.time.Duration,
- maximum_iteration_count: int = 500,
- time_step: ostk.physics.time.Duration,
Bases:
pybind11_object
Given a set of conditions and a time interval, the solver computes all sub-intervals over which conditions are met.
Constructor.
- Parameters:
time_step (Duration) -- The time step.
tolerance (Duration) -- The tolerance of the solver.
maximum_iteration_count (int) -- The maximum number of iterations allowed.
Methods
Get the maximum number of iterations allowed.
Get the time step.
Get the tolerance.
Overloaded function.
- get_maximum_iteration_count( ) int ¶
Get the maximum number of iterations allowed.
- Returns:
The maximum number of iterations allowed.
- Return type:
- get_time_step( ) ostk.physics.time.Duration ¶
Get the time step.
- Returns:
The time step.
- Return type:
Duration
- get_tolerance( ) ostk.physics.time.Duration ¶
Get the tolerance.
- Returns:
The tolerance.
- Return type:
Duration
- solve(*args, **kwargs)¶
Overloaded function.
solve(self: ostk.astrodynamics.solver.TemporalConditionSolver, condition: Callable[[ostk.physics.time.Instant], bool], interval: ostk.physics.time.Interval) -> list[ostk.physics.time.Interval]
Solve a temporal condition.
- Args:
condition (function): The condition to solve. interval (Interval): The interval to solve the condition over.
- Returns:
Duration: The time at which the condition is satisfied.
solve(self: ostk.astrodynamics.solver.TemporalConditionSolver, conditions: list[Callable[[ostk.physics.time.Instant], bool]], interval: ostk.physics.time.Interval) -> list[ostk.physics.time.Interval]
Solve an array of temporal conditions.
- Args:
conditions (list): The conditions to solve. interval (Interval): The interval to solve the conditions over.
- Returns:
list: The times at which the conditions are satisfied.