Main Page   Class Hierarchy   Compound List   File List   Contact   Download   Symbolic Constraints   Examples  

SCIL::polynomial Class Reference

Polynomials.

#include <polynomial.h>

List of all members.

Public Member Functions

 polynomial ()
 Creates a polynomial with no entries.
 polynomial (const var &v)
 Creates the polynomial v.
 polynomial (const monomial &m)
 Creates the polynomial m.
 polynomial (const row &r)
 Creates the polynomial r.
std::list< monomialget_p () const
 Returns the list of all monomials.
double value (solution &sol)
void normalize (bool clean=false)
 Normalizes the polynomial.
polynomialoperator+= (const polynomial &p)
 Adds p to the polynomial.
polynomial operator+ (const polynomial &p)
 Creates the polynomial $ pol + p $.
polynomialoperator+= (const monomial &m)
 Adds m to the polynomial.
polynomial operator+ (const monomial &m)
 Creates the polynomial $ pol + m $.
polynomialoperator+= (const row &r)
 Adds r to the polynomial.
polynomial operator+ (const row &r)
 Creates the polynomial $ pol + r $.
polynomialoperator+= (const var &v)
 Adds v to the polynomial.
polynomial operator+ (const var &v)
 Creates the polynomial $ pol + v $.
polynomialoperator-= (const polynomial &p)
 Subtracts p from the polynomial.
polynomial operator- (const polynomial &p)
 Creates the polynomial $ pol - p $.
polynomialoperator-= (const monomial &m)
 Subtracts m from the polynomial.
polynomial operator- (const monomial &m)
 Creates the polynomial $ pol - m $.
polynomialoperator-= (const row &r)
 Subtracts r from the polynomial.
polynomial operator- (const row &r)
 Creates the polynomial $ pol - r $.
polynomialoperator-= (const var &v)
 Subtracts v from the polynomial.
polynomial operator- (const var &v)
 Creates the polynomial $ pol - v $.
polynomialoperator*= (double d)
 Multiplies the polynomial by d.
polynomial operator* (double d)
 Creates the polynomial $ pol \cdot d $.
polynomial operator* (const monomial &m)
 Creates the polynomial $ pol \cdot m $.
polynomialoperator*= (const monomial &m)
 Multiplies the polynomial by m.
polynomial operator* (const polynomial &p)
 Creates the polynomial $ pol \cdot p $.
polynomialoperator*= (const polynomial &p)
 Multiplies the polynomial by p.
polynomial operator* (const var &v)
 Creates the polynomial $ pol \cdot v $.
polynomialoperator*= (const var &v)
 Multiplies the polynomial by v.
polynomial operator* (const row &r)
 Creates the polynomial $ pol \cdot r $.
polynomialoperator*= (const row &r)
 Multiplies the polynomial by r.
pol_constraint operator<= (double rhs)
 Creates the polynomial constraint $ pol \le rhs $.
pol_constraint operator>= (double rhs)
 Creates the polynomial constraint $ pol \ge rhs $.
pol_constraint operator== (double rhs)
 Creates the polynomial constraint $ pol = rhs $.

Detailed Description

Definition at line 22 of file polynomial.h.


Constructor & Destructor Documentation

SCIL::polynomial::polynomial ( const row r  )  [inline]

Caution: Constant term of r is ignored!

Definition at line 41 of file polynomial.h.

References SCIL::row::begin(), and SCIL::row::end().


Member Function Documentation

void SCIL::polynomial::normalize ( bool  clean = false  ) 

Normalizes $ p= \sum_{i=0}^{k-1}a_i \cdot m_i + a^{(1)}_k \cdot m_k + a^{(2)}_k \cdot m_k + \sum_{i=k+1}^{n} a_i \cdot m_i $ to $ \hat{p} = \sum_{i=0}^n a_i \cdot m_i $ , where $ m_i $ are monomials.

Referenced by SCIL::ILP_Problem::add_polynomial().

polynomial SCIL::polynomial::operator* ( const row r  ) 

Caution: Constant term of r is ignored!

polynomial& SCIL::polynomial::operator*= ( const row r  ) 

Caution: Constant term of r is ignored!

polynomial SCIL::polynomial::operator+ ( const row r  ) 

Caution: Constant term of r is ignored!

polynomial& SCIL::polynomial::operator+= ( const row r  ) 

Caution: Constant term of r is ignored!

polynomial SCIL::polynomial::operator- ( const row r  ) 

Caution: Constant term of r is ignored!

polynomial& SCIL::polynomial::operator-= ( const row r  ) 

Caution: Constant term of r is ignored!


The documentation for this class was generated from the following file:
Generated on Mon Mar 28 22:03:53 2011 for SCIL by  doxygen 1.6.3