Enum ark_relations::r1cs::OptimizationGoal
source · pub enum OptimizationGoal {
None,
Constraints,
Weight,
}
Expand description
Defines the parameter to optimize for a ConstraintSystem
.
Variants§
None
Make no attempt to optimize.
Constraints
Minimize the number of constraints.
Weight
Minimize the total weight of the constraints (the number of nonzero entries across all constraints).
Trait Implementations§
source§impl Clone for OptimizationGoal
impl Clone for OptimizationGoal
source§fn clone(&self) -> OptimizationGoal
fn clone(&self) -> OptimizationGoal
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OptimizationGoal
impl Debug for OptimizationGoal
source§impl Ord for OptimizationGoal
impl Ord for OptimizationGoal
source§fn cmp(&self, other: &OptimizationGoal) -> Ordering
fn cmp(&self, other: &OptimizationGoal) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<OptimizationGoal> for OptimizationGoal
impl PartialEq<OptimizationGoal> for OptimizationGoal
source§fn eq(&self, other: &OptimizationGoal) -> bool
fn eq(&self, other: &OptimizationGoal) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<OptimizationGoal> for OptimizationGoal
impl PartialOrd<OptimizationGoal> for OptimizationGoal
source§fn partial_cmp(&self, other: &OptimizationGoal) -> Option<Ordering>
fn partial_cmp(&self, other: &OptimizationGoal) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more