pub struct GlobalOptimizationConfig {
pub gap_tol: f64,
pub max_depth: usize,
pub max_nodes: usize,
pub branching: BranchingStrategy,
pub use_alpha_bb: bool,
pub use_mccormick: bool,
}Expand description
Spatial Branch-and-Bound config for global QP optimisation.
Set SolverOptions::global_optimization and call solve_qp_global
explicitly. solve_qp_with does not dispatch to this path (prevents
accidental wall-time blow-up for existing users).
Rules:
gap_tol > 0: relative gap = |UB − LB| / max(1, |UB|)max_depth >= 1,max_nodes >= 1
Fields§
§gap_tol: f64§max_depth: usize§max_nodes: usize§branching: BranchingStrategy§use_alpha_bb: bool§use_mccormick: boolTrait Implementations§
Source§impl Clone for GlobalOptimizationConfig
impl Clone for GlobalOptimizationConfig
Source§fn clone(&self) -> GlobalOptimizationConfig
fn clone(&self) -> GlobalOptimizationConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GlobalOptimizationConfig
impl Debug for GlobalOptimizationConfig
Auto Trait Implementations§
impl Freeze for GlobalOptimizationConfig
impl RefUnwindSafe for GlobalOptimizationConfig
impl Send for GlobalOptimizationConfig
impl Sync for GlobalOptimizationConfig
impl Unpin for GlobalOptimizationConfig
impl UnsafeUnpin for GlobalOptimizationConfig
impl UnwindSafe for GlobalOptimizationConfig
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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>
Converts
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>
Converts
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