89 Variable(master, sub, dynamic, local, obj, lBound, uBound, varType),
90 column_(master, obj, lBound, uBound, nnz, support, coeff)
118 Variable(master, sub, dynamic, local, obj, lBound, uBound, varType),
119 column_(master, obj, lBound, uBound, vector)
134 friend std::ostream &operator<<(std::ostream &out,
const ColVar &rhs);
143 virtual void print(std::ostream &out)
const {
153 return column_.origCoeff(((
const NumCon*)
con)->number());
162 double coeff(
int i)
const {
return column_.origCoeff(i); }
Some optimization problems, in particular column generation problems, are better described from a var...
double coeff(int i) const
Computes the coefficient of a constraint with given index i.
ColVar(Master *master, const Sub *sub, bool dynamic, bool local, double lBound, double uBound, VarType::TYPE varType, double obj, SparVec &vector)
Constructor using a sparse vector vector.
Column * column()
Returns a pointer to the column representing the variable.
virtual double coeff(const Constraint *con) const
Returns the coefficient of the constraint con.
virtual void print(std::ostream &out) const
Writes the column representing the variable to output stream out.
ColVar(Master *master, const Sub *sub, bool dynamic, bool local, double lBound, double uBound, VarType::TYPE varType, double obj, int nnz, Array< int > &support, Array< double > &coeff)
The constructor.
const Column * column() const
Returns a const pointer to the column representing the variable.
Representation of variables in column format.
Forms the virtual base class for all possible constraints given in pool format.
The master of the optimization.
Constraints defined by a number.
TYPE
The enumeration with the different variable types.
Forms the virtual base class for all possible variables given in pool format.
The parameterized class Array implements dynamic arrays of type E.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
std::ostream & operator<<(std::ostream &out, const Active< BaseType, CoType > &rhs)
constraint defined by a number.