pub trait ILPCoefficient:
NumericSize
+ WeightElement<Sum = Self>
+ Copy
+ Debug
+ Send
+ Sync {
const NAME: &'static str;
// Required methods
fn from_integer(value: i64) -> Result<Self, EvaluationError>;
fn satisfies(lhs: Self, comparison: Comparison, rhs: Self) -> bool;
}Expand description
Numeric domain shared by an ILP’s constraints, right-hand sides, and objective.
Required Associated Constants§
Required Methods§
Sourcefn from_integer(value: i64) -> Result<Self, EvaluationError>
fn from_integer(value: i64) -> Result<Self, EvaluationError>
Convert an integer variable value into this coefficient domain.
Sourcefn satisfies(lhs: Self, comparison: Comparison, rhs: Self) -> bool
fn satisfies(lhs: Self, comparison: Comparison, rhs: Self) -> bool
Compare a finite evaluated row with its right-hand side.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".