pub struct Clarabel;Expand description
Clarabel solver handle.
Clarabel is a pure-Rust interior-point solver for convex conic programs: linear programs, convex quadratic objectives, and second-order cone constraints.
Trait Implementations§
impl Copy for Clarabel
Source§impl PersistentSolver for Clarabel
impl PersistentSolver for Clarabel
Source§type Handle = ClarabelPersistent
type Handle = ClarabelPersistent
The stateful, resident handle. Solving the same (or a structurally identical)
model on it repeatedly reuses the build.
Source§fn persistent(&self) -> ClarabelPersistent
fn persistent(&self) -> ClarabelPersistent
Create a fresh resident handle with no model loaded yet.
The first
solve builds it.Source§impl Solver for Clarabel
impl Solver for Clarabel
Source§type Options = ClarabelOptions
type Options = ClarabelOptions
Backend-specific options struct. Use
() for solvers without any
tunables.fn name(&self) -> &str
fn supports(&self, kind: ModelKind) -> bool
Source§fn solve(
&mut self,
model: &Model,
opts: &ClarabelOptions,
) -> Result<SolverResult, SolverError>
fn solve( &mut self, model: &Model, opts: &ClarabelOptions, ) -> Result<SolverResult, SolverError>
Solves the given
Model using this solver. Read moreAuto Trait Implementations§
impl Freeze for Clarabel
impl RefUnwindSafe for Clarabel
impl Send for Clarabel
impl Sync for Clarabel
impl Unpin for Clarabel
impl UnsafeUnpin for Clarabel
impl UnwindSafe for Clarabel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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