LpSolverBase::Expr Class Reference

#include <lemon/lp_base.h>

List of all members.


Detailed Description

This data structure strores a linear expression of the variables (Cols) and also has a constant component.

There are several ways to access and modify the contents of this container.

Note:
clear() not only sets all coefficients to 0 but also clears the constant components.
See also:
Constr


Public Member Functions

 Expr ()
 
 Expr (const Key &v)
 
 Expr (const Value &v)
 
void set (const Key &v, const Value &c)
 
Value & constComp ()
 
const Value & constComp () const
 
void simplify ()
 Removes the components with zero coefficient.
void simplify (double &tolerance)
 Removes the coefficients closer to zero than tolerance.
void clear ()
 Sets all coefficients and the constant component to 0.
Exproperator+= (const Expr &e)
 
Exproperator-= (const Expr &e)
 
Exproperator *= (const Value &c)
 
Exproperator/= (const Value &c)
 

Related Functions

(Note that these are not member functions.)

LpSolverBase::Expr operator+ (const LpSolverBase::Expr &a, const LpSolverBase::Expr &b)
 
LpSolverBase::Expr operator- (const LpSolverBase::Expr &a, const LpSolverBase::Expr &b)
 
LpSolverBase::Expr operator * (const LpSolverBase::Expr &a, const LpSolverBase::Value &b)
 
LpSolverBase::Expr operator * (const LpSolverBase::Value &a, const LpSolverBase::Expr &b)
 
LpSolverBase::Expr operator/ (const LpSolverBase::Expr &a, const LpSolverBase::Value &b)
 


The documentation for this class was generated from the following file:
Generated on Fri Feb 3 18:42:07 2006 for LEMON by  doxygen 1.4.6