Trait optimization_engine::constraints::Constraint
source · pub trait Constraint {
// Required methods
fn project(&self, x: &mut [f64]);
fn is_convex(&self) -> bool;
}
Expand description
A set which can be used as a constraint
This trait defines an abstract function that allows to compute projections on sets; this is implemented by a series of structures (see below for details)