package lp
Library
Module
Module type
Parameter
Class
Class type
Module for the constraint.
val to_string : ?short:bool -> t -> string
Get string expression (LP file format) of the constraint.
val degree : t -> int
Get degree of a constraint.
val constant : t -> bool
Check 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 -> float
Take right hand side (float) of a constraint.
val name : t -> string
Take name of constraint. An empty string ("") is returned if it is unnamed.
val is_eq : t -> bool
True (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.