Struct optimization_engine::constraints::Simplex[][src]

pub struct Simplex { /* fields omitted */ }
Expand description

A simplex with level $\alpha$ is a set of the form $\Delta_\alpha^n = \{x \in \mathbb{R}^n {}:{} x \geq 0, \sum_i x_i = \alpha\}$, where $\alpha$ is a positive constant.

Implementations

Construct a new simplex with given (positive) $\alpha$. The user does not need to specify the dimension of the simplex.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Project onto $\Delta_\alpha^n$ using Condat’s fast projection algorithm.

See: Laurent Condat. Fast Projection onto the Simplex and the $\ell_1$ Ball. Mathematical Programming, Series A, Springer, 2016, 158 (1), pp.575-585. ⟨10.1007/s10107-015-0946-6⟩.

Returns true if and only if the set is convex

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.