|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
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)
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); }
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.
const Column * column() const
Returns a const pointer to the column representing the variable.
std::ostream & operator<<(std::ostream &out, const Active< BaseType, CoType > &rhs)
Column * column()
Returns a pointer to the column representing the variable.
double coeff(int i) const
Computes the coefficient of a constraint with given index i.
Constraints defined by a number.
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.
Some optimization problems, in particular column generation problems, are better described from a var...
virtual double coeff(const Constraint *con) const
Returns the coefficient of the constraint con.
The parameterized class Array implements dynamic arrays of type E.
virtual void print(std::ostream &out) const
Writes the column representing the variable to output stream out.
Forms the virtual base class for all possible variables given in pool format.
Representation of variables in column format.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Forms the virtual base class for all possible constraints given in pool format.
constraint defined by a number.
TYPE
The enumeration with the different variable types.
The master of the optimization.