pub struct ReachSet2OptionsBuilder {
pub lp_feas_tol: f64,
pub a_cmp_abs_tol: f64,
pub a_cmp_rel_tol: f64,
pub verbosity: Verbosity,
}Expand description
Builder for ReachSet2Options.
Fields§
§lp_feas_tol: f64Feasibility tolerance used by LP subproblems in reachable-set computation.
a_cmp_abs_tol: f64Absolute tolerance for comparing interval bounds a_max and a_min.
a_cmp_rel_tol: f64Relative tolerance for comparing interval bounds a_max and a_min.
verbosity: VerbosityVerbosity level for diagnostics during reachability analysis.
Implementations§
Source§impl ReachSet2OptionsBuilder
impl ReachSet2OptionsBuilder
Sourcepub fn lp_feas_tol(self, tol: f64) -> Self
pub fn lp_feas_tol(self, tol: f64) -> Self
Set the tolerance for checking the feasibility of the linear program.
The default value is 1E-8.
Sourcepub fn a_cmp_abs_tol(self, tol: f64) -> Self
pub fn a_cmp_abs_tol(self, tol: f64) -> Self
Set the absolute tolerance for comparing a_max and a_min to determine whether the reachable set is empty (a_max < a_min) or degenerated (a_max == a_min).
Let tol = max(a_cmp_abs_tol, a_cmp_rel_tol * max(|a_max|, |a_min|)).
- If
a_max < a_min - tol, then the reachable set is empty. - If
a_max > a_min + tol, then the reachable set is non-degenerated. - Otherwise, the reachable set is degenerated into a single point.
The default value is 1E-8.
Sourcepub fn a_cmp_rel_tol(self, tol: f64) -> Self
pub fn a_cmp_rel_tol(self, tol: f64) -> Self
Set the relative tolerance for comparing a_max and a_min. More details refer to a_cmp_abs_tol.
The default value is 1E-8.
Sourcepub fn verbosity(self, verbosity: Verbosity) -> Self
pub fn verbosity(self, verbosity: Verbosity) -> Self
Set the verbosity level for logging. More details refer to Verbosity.
The default value is Verbosity::Silent.
Sourcepub fn build(self) -> Result<ReachSet2Options, CoppError>
pub fn build(self) -> Result<ReachSet2Options, CoppError>
Build the ReachSet2Options from the builder where the validity of the options is checked.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReachSet2OptionsBuilder
impl RefUnwindSafe for ReachSet2OptionsBuilder
impl Send for ReachSet2OptionsBuilder
impl Sync for ReachSet2OptionsBuilder
impl Unpin for ReachSet2OptionsBuilder
impl UnwindSafe for ReachSet2OptionsBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.