[−][src]Struct optimization_engine::constraints::SecondOrderCone
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]
fn clone(&self) -> SecondOrderCone
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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.
fn is_convex(&self) -> bool
[src]
impl Copy for SecondOrderCone
[src]
Auto Trait Implementations
impl RefUnwindSafe for SecondOrderCone
impl Send for SecondOrderCone
impl Sync for SecondOrderCone
impl Unpin for SecondOrderCone
impl UnwindSafe for SecondOrderCone
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,