class forms the virtual base class for all possible constraints given in pool format and is derived from the common base class ABA_CONVAR of all constraints and variables.
#include <constraint.h>
Inheritance diagram for ABA_CONSTRAINT::
|
Computes the slack of the vector x associated with the variable set variables.
This version of function violated() checks for the violation given the slack of a vector.
Writes the row format of the constraint associated with the variable set var on an output stream.
Can be called if after variable elimination the left hand side of the constraint has become void and the right hand side has been adapted to newRhs.
The default implementation of the function classify() returns a 0 pointer.
This member is true if also coefficients of variables which have been inactive at generation time can be computed, false otherwise.
class forms the virtual base class for all possible constraints given in pool format and is derived from the common base class ABA_CONVAR of all constraints and variables.
Definition at line 55 of file constraint.h.
The constructor.
The following constructor initializes an empty constraint.
This constructor is, e.g., useful if parallel separation is applied. In this case the constraint can be constructed and receive later its data by message passing.
The copy constructor.
The destructor.
A pointer to the sense of the constraint.
Definition at line 303 of file constraint.h.
The coefficient of the variable v in the constraint.
Implemented in ABA_NUMCON, and ABA_ROWCON.
The right hand side of the constraint.
Checks if the constraint is liftable,
i.e., if the coefficients of variables inactive at generation time of the constraint can be computed later.
true If the constraint can be lifted,
false otherwise.
Definition at line 308 of file constraint.h.
Checks if the constraint is valid for the subproblem sub.
Per default, this is the case if the constraint is globally valid, or the subproblem associated with the constraint is an ancestor of the subproblem sub in the enumeration tree.
true If the constraint is valid for the subproblem sub,
false otherwise.
Generates the row format of the constraint associated with the variable set var.
This function is declared virtual since faster constraint specific implementations might be desirable.
All nonzero coefficients are added to the row format. Before we generate the coefficients we try to expand the constraint, afterwards it is compressed again.
The number of nonzero elements in the row format row.
Reimplemented in ABA_SROWCON.
Computes the slack of the vector x associated with the variable set variables.
The slack induced by the vector x.
Reimplemented in ABA_SROWCON.
Checks if a constraint is violated by a vector x associated with a variable set.
true If the constraint is violated,
false otherwise.
This version of function violated() checks for the violation given the slack of a vector.
true If the constraint is an equation and the slack is nonzero, or if the constraint is a ≤-inequality and the slack is negative, or the constraint is a ≥-inequality and the slack is positive,
false otherwise.
Writes the row format of the constraint associated with the variable set var on an output stream.
The distance of a point x and a hyperplane aTx = β can be computed in the following way: Let y be the intersection of the hyperplane aTx = β and the line defined by x and the vector a. Then the distance d is the length of the vector ||x - y||.
The Euclidean distance of the vector x associated with the variable set actVar to the hyperplane induced by the constraint.
Definition at line 245 of file constraint.h.
Returns a pointer to the classification of the constraint.
If no classification is available then we try to classify the constraint. In this case var must not be a 0-pointer. Per default var is 0.
A constraint classification can only be generated if the function classify() is redefined in a derived class.
Can be called if after variable elimination the left hand side of the constraint has become void and the right hand side has been adapted to newRhs.
Then this function checks if the constraint is violated.
{TooLparame or TooSmall} If the value newRhs violates the sense of the constraint, i.e, it is < / > / != 0 and the sense of the constraint is >= / <= / =,
Feasible otherwise.
The default implementation of the function classify() returns a 0 pointer.
Definition at line 56 of file constraint.h.
The sense of the constraint.
Definition at line 285 of file constraint.h.
The right hand side of the constraint.
Definition at line 289 of file constraint.h.
Definition at line 290 of file constraint.h.
This member is true if also coefficients of variables which have been inactive at generation time can be computed, false otherwise.
Definition at line 296 of file constraint.h.
The documentation for this class was generated from the following file: