Skip to main content

less_than

Function less_than 

Source
pub fn less_than<Var>(
    terms: impl Into<Box<[Var]>>,
    rhs: i32,
    constraint_tag: ConstraintTag,
) -> impl NegatableConstraint
where Var: IntegerVariable + 'static,
Expand description

Create the NegatableConstraint ∑ terms_i < rhs.

Its negation is ∑ terms_i <= rhs