pub struct ConstrainedQuadratic<M, V> {
pub c: V,
pub a: M,
pub b: V,
}Available on crate feature
problems only.Expand description
Linearly-constrained quadratic min Σ (xᵢ − cᵢ)² s.t. A x ≤ b. Holds the
objective center c, constraint matrix A, and right-hand side b; M
is the (dense) matrix backend and V the matching vector backend.
Fields§
§c: VCenter c of the quadratic; the unconstrained minimizer.
a: MConstraint matrix A (m × n, dense).
b: VRight-hand side b ∈ ℝᵐ.
Implementations§
Source§impl<M, V> ConstrainedQuadratic<M, V>
impl<M, V> ConstrainedQuadratic<M, V>
Trait Implementations§
Source§impl CostFunction for ConstrainedQuadratic<Array2<f64>, Array1<f64>>
Available on crate feature ndarray only.
impl CostFunction for ConstrainedQuadratic<Array2<f64>, Array1<f64>>
Available on crate feature
ndarray only.Source§impl CostFunction for ConstrainedQuadratic<DenseMatrix, Vec<f64>>
impl CostFunction for ConstrainedQuadratic<DenseMatrix, Vec<f64>>
Source§impl CostFunction for ConstrainedQuadratic<Mat<f64>, Col<f64>>
Available on crate feature faer only.
impl CostFunction for ConstrainedQuadratic<Mat<f64>, Col<f64>>
Available on crate feature
faer only.Source§impl CostFunction for ConstrainedQuadratic<DMatrix<f64>, DVector<f64>>
Available on crate feature nalgebra only.
impl CostFunction for ConstrainedQuadratic<DMatrix<f64>, DVector<f64>>
Available on crate feature
nalgebra only.Source§impl Gradient for ConstrainedQuadratic<Array2<f64>, Array1<f64>>
Available on crate feature ndarray only.
impl Gradient for ConstrainedQuadratic<Array2<f64>, Array1<f64>>
Available on crate feature
ndarray only.Source§impl Gradient for ConstrainedQuadratic<DenseMatrix, Vec<f64>>
impl Gradient for ConstrainedQuadratic<DenseMatrix, Vec<f64>>
Source§impl Gradient for ConstrainedQuadratic<Mat<f64>, Col<f64>>
Available on crate feature faer only.
impl Gradient for ConstrainedQuadratic<Mat<f64>, Col<f64>>
Available on crate feature
faer only.Source§impl Gradient for ConstrainedQuadratic<DMatrix<f64>, DVector<f64>>
Available on crate feature nalgebra only.
impl Gradient for ConstrainedQuadratic<DMatrix<f64>, DVector<f64>>
Available on crate feature
nalgebra only.Source§impl<M, V> HasSpec for ConstrainedQuadratic<M, V>
impl<M, V> HasSpec for ConstrainedQuadratic<M, V>
Source§const SPEC: &'static ProblemSpec
const SPEC: &'static ProblemSpec
The catalogue entry for this problem type.
Source§impl LinearInequalityConstraints for ConstrainedQuadratic<Array2<f64>, Array1<f64>>
Available on crate feature ndarray only.
impl LinearInequalityConstraints for ConstrainedQuadratic<Array2<f64>, Array1<f64>>
Available on crate feature
ndarray only.Source§impl LinearInequalityConstraints for ConstrainedQuadratic<DenseMatrix, Vec<f64>>
impl LinearInequalityConstraints for ConstrainedQuadratic<DenseMatrix, Vec<f64>>
Source§type Matrix = DenseMatrix
type Matrix = DenseMatrix
Source§fn a(&self) -> &DenseMatrix
fn a(&self) -> &DenseMatrix
The constraint matrix
A (m rows = number of inequalities).Source§impl LinearInequalityConstraints for ConstrainedQuadratic<Mat<f64>, Col<f64>>
Available on crate feature faer only.
impl LinearInequalityConstraints for ConstrainedQuadratic<Mat<f64>, Col<f64>>
Available on crate feature
faer only.Auto Trait Implementations§
impl<M, V> Freeze for ConstrainedQuadratic<M, V>
impl<M, V> RefUnwindSafe for ConstrainedQuadratic<M, V>where
V: RefUnwindSafe,
M: RefUnwindSafe,
impl<M, V> Send for ConstrainedQuadratic<M, V>
impl<M, V> Sync for ConstrainedQuadratic<M, V>
impl<M, V> Unpin for ConstrainedQuadratic<M, V>
impl<M, V> UnsafeUnpin for ConstrainedQuadratic<M, V>where
V: UnsafeUnpin,
M: UnsafeUnpin,
impl<M, V> UnwindSafe for ConstrainedQuadratic<M, V>where
V: UnwindSafe,
M: UnwindSafe,
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.