Lp.CnstrModule for the constraint.
val to_string : ?short:bool -> t -> stringGet string expression (LP file format) of the constraint.
val degree : t -> intGet degree of a constraint.
val constant : t -> boolCheck if the constraint is constant (no variable), and then invalid.
Build an equality constraint. Optional name can be given. Polynomials are simplified (Poly.simplify) on build. eps specifies the threshold of near-zero, defaulting to 10. *. epsilon_float.
Build an inequality constraint. Optional name can be given. Polynomials are simplified (Poly.simplify) on build. eps specifies the threshold of near-zero, defaulting to 10. *. epsilon_float.
Build an inequality constraint. Optional name can be given. Polynomials are simplified (Poly.simplify) on build. eps specifies the threshold of near-zero, defaulting to 10. *. epsilon_float.
Build an unnamed equality constraint. Polynomials are simplified on build.
Build an unnamed inequality constraint. Polynomials are simplified on build.
Build an unnamed inequality constraint. Polynomials are simplified on build.
val rhs : t -> floatTake right hand side (float) of a constraint.
val name : t -> stringTake name of constraint. An empty string ("") is returned if it is unnamed.
val is_eq : t -> boolTrue (false) if the constraint is of equality (inequality).
with_bound name lb ub transforms the bounds of the variable name with lb and ub.
to_integer name transforms the variable name into general integer variable.