|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
46 template<
class BaseType,
class CoType>
class Active;
105 :
ConVar(rhs), sense_(rhs.sense_), rhs_(rhs.rhs_), conClass_(nullptr), liftable_(rhs.liftable_)
127 virtual double coeff(
const Variable *v)
const = 0;
130 virtual double rhs()
const {
return rhs_; }
153 virtual bool valid(
Sub *sub)
const;
192 virtual bool violated(
204 virtual bool violated(
double slack)
const;
296 :
ConVar(master, sub, dynamic, local), sense_(sense), rhs_(rhs), conClass_(nullptr), liftable_(liftable)
299 Logger::ifout() <<
"Constraint::Constraint(): subtree of local item must not be 0\n";
306 :
ConVar(master, nullptr, true, true), conClass_(nullptr) { }
virtual ConClass * classify(Active< Variable, Constraint > *var) const
The default implementation returns a 0 pointer.
Implements the sets of active constraints and variables which are associated with each subproblem.
bool local() const
Returns true if the constraint/variable is only locally valid, false otherwise.
const Sub * sub() const
Returns a const pointer to the subproblem associated with the constraint/variable.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
virtual double rhs() const
Returns the right hand side of the constraint.
constraints and variables.
virtual bool valid(Sub *sub) const
Checks if the constraint is valid for the subproblem sub.
Constraint(Master *master, const Sub *sub, CSense::SENSE sense, double rhs, bool dynamic, bool local, bool liftable)
Initializes a constraint.
double rhs_
The right hand side of the constraint.
const CSense * sense() const
Returns a const pointer to the sense of the constraint.
const Sub * sub_
A pointer to the subproblem associated with the constraint/variable.
bool liftable() const
Checks if the constraint is liftable.
Exception thrown when an algorithm realizes an internal bug that prevents it from continuing.
Common base class for constraints (Constraint) and variables (Variable).
Representation of constraints in the row format.
Forms the virtual base class for all possible variables given in pool format.
CSense * sense()
Returns a pointer to the sense of the constraint.
Constraint classification.
#define OGDF_THROW_PARAM(CLASS, PARAM)
Replacement for throw.
The linear program of a subproblem.
bool local_
true if the constraint/variable is only locally valid
static std::ostream & ifout()
stream for forced output (global; used by internal libraries, e.g. Abacus)
the master of the optimization.
CSense sense_
The sense of the constraint.
Constraint(const Constraint &rhs)
Copy constructor.
#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 classification.
bool liftable_
This member is true if also coefficients of variables which have been inactive at generation time can...
bool ancestor(const Sub *sub) const
Returns true if this subproblem is an ancestor of the subproblem sub, false otherwise.
INFEAS
The different ways of infeasibility of a constraint.
The master of the optimization.