DualExpr Class Reference


Detailed Description

This data structure represents a column of the matrix, thas is it strores a linear expression of the dual variables (Rows).

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

See also:
Expr
#include <lemon/lp_base.h>

Inherits std::map<Row,Value>.

List of all members.

Public Member Functions

 DualExpr ()
 
 DualExpr (const Key &v)
 
void set (const Key &v, const Value &c)
 
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 to 0.
DualExproperator+= (const DualExpr &e)
 
DualExproperator-= (const DualExpr &e)
 
DualExproperator*= (const Value &c)
 
DualExproperator/= (const Value &c)
 

Related Functions

(Note that these are not member functions.)

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


Generated on Thu Jun 4 04:05:17 2009 for LEMON by  doxygen 1.5.9