pub struct DefaultSolver { /* private fields */ }Expand description
Default public solver.
When the clarabel feature is enabled, this solver delegates supported
problems to the Clarabel backend. Otherwise, it returns NotImplemented.
Implementations§
Source§impl DefaultSolver
impl DefaultSolver
pub fn new() -> Self
pub fn with_options(self, options: SolveOptions) -> Self
pub fn options(&self) -> &SolveOptions
Trait Implementations§
Source§impl Clone for DefaultSolver
impl Clone for DefaultSolver
Source§fn clone(&self) -> DefaultSolver
fn clone(&self) -> DefaultSolver
Returns a duplicate of the value. Read more
1.0.0 · 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 DefaultSolver
impl Debug for DefaultSolver
Source§impl Default for DefaultSolver
impl Default for DefaultSolver
Source§impl PartialEq for DefaultSolver
impl PartialEq for DefaultSolver
Source§impl Solver for DefaultSolver
impl Solver for DefaultSolver
fn solve( &self, problem: &ConstrainedResidualProblem, ) -> Result<SolveResult, Error>
impl StructuralPartialEq for DefaultSolver
Auto Trait Implementations§
impl Freeze for DefaultSolver
impl RefUnwindSafe for DefaultSolver
impl Send for DefaultSolver
impl Sync for DefaultSolver
impl Unpin for DefaultSolver
impl UnsafeUnpin for DefaultSolver
impl UnwindSafe for DefaultSolver
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> 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