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

SCIL::var Class Reference

Handle class for variables.

#include <variable.h>

Collaboration diagram for SCIL::var:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 var (var_obj *VS_)
 Creates a new instance of handle class for variables.
 var ()
 Creates a new instance of handle class for variables.
 var (const var &v)
 Creates a new instance of handle class for variables.
ABA_VariableAvar_pointer ()
 Returns the pointer to the coressponding ABA_Vaariable.
var_objvar_pointer () const
 Returns the pointer to the coressponding var-object.
double obj ()
 Returns the objective function coefficient of the variable.
double lower_bound ()
 Returns the lower bound of the variable.
double upper_bound ()
 Returns the upper bound of the variable.
Vartype type ()
 Returns the type of the variable.
row operator+ (const row &r)
 Creates the row this + r.
row operator- (const row &r)
 Creates the row this - r.
polynomial operator+ (const polynomial &p)
 Creates the polynomial this + p.
polynomial operator- (const polynomial &p)
 Creates the polynomial this - p.
polynomial operator* (const polynomial &p)
 Creates the polynomial this $ \cdot $ p.
monomial operator* (const var &a)
 Creates the monomial this $ \cdot $ a.
row operator+ (const var &v)
 Creates the row this + v.
row operator- (const var &v)
 Creates the row this - v.
varoperator= (const var &v)
 creates the handle class with this.VS = v.VS.
bool operator< (const var &v1) const
 returns true if VS < v1.VS
bool operator<= (const var &v1) const
 returns true if VS <= v1.VS
bool operator!= (const var &v1) const
 returns true if VS != v1.VS
bool operator== (const var &v1) const
 returns true if VS == v1.VS
bool operator> (const var &v1) const
 returns true if VS > v1.VS
row operator* (double d)

Friends

std::ostream & operator<< (std::ostream &o, const var &v)

Detailed Description

Definition at line 20 of file variable.h.


Member Function Documentation

row SCIL::var::operator* ( double  d  ) 

Creates the row $ r' = \sum_{i=1}^{n} d \cdot a_i \cdot x_i $ from the row $ r = \sum_{i=1}^{n} a_i \cdot x_i $ .

Definition at line 63 of file variable.cc.


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