[][src]Struct optimization_engine::constraints::SecondOrderCone

pub struct SecondOrderCone { /* fields omitted */ }

A second-order cone (SOC)

A set of the form

$$ C_{\alpha} = \{x=(y, t) \in \mathbb{R}^{n+1}: t\in\mathbb{R}, \Vert{}y\Vert \leq \alpha{}t\}, $$

where $\alpha$ is a positive scalar.

Projections on the second-order cone are computed as in H.H. Bauschke's 1996 doctoral dissertation: Projection Algorithms and Monotone Operators (p. 40, Theorem 3.3.6).

Implementations

impl SecondOrderCone[src]

pub fn new(alpha: f64) -> SecondOrderCone[src]

Construct a new instance of SecondOrderCone with parameter alpha

A second-order cone with parameter alpha is the set $C_\alpha = \{x=(y, t) \in \mathbb{R}^{n+1}: t\in\mathbb{R}, \Vert{}y\Vert \leq \alpha t\}$, where $\alpha$ is a positive parameter, and projections are computed according to Theorem 3.3.6 in H.H. Bauschke's 1996 doctoral dissertation: Projection Algorithms and Monotone Operators (page 40).

Arguments

  • alpha: parameter $\alpha$

Panics

The method panics if the given parameter alpha is nonpositive.

Trait Implementations

impl Clone for SecondOrderCone[src]

impl Constraint for SecondOrderCone[src]

fn project(&self, x: &mut [f64])[src]

Project on the second-order cone (updates the given vector/slice)

Arguments

  • x: (in) vector to be projected on the current instance of a second-order cone, (out) projection on the second-order cone

Panics

The methods panics is the length of x is less than 2.

impl Copy for SecondOrderCone[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.