package lp
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Lp.PolySource
Module for polynomial expression type
Type for the polynomial with order up to two (quadratic). Internal representation (Term.t list) is intentionally exposed for now.
Type for the polynomial classified by orders
Make array of monomials of a variable
Classify terms into three categories quad, linear, const
Simplify the polynomial. The polynomial is sorted and terms with same variables are accumulated. After that, near-zero terms are dropped. epsilon specifies the threshold of near-zero, defaulting to 10. *. epsilon_float.
Multiply two polynomials. specifically, performs polynomial expansion.
Divide polynomial by a univariate polynomial. Be careful as this function raises exception in following cases.
trans_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