#include <numcon.h>
Inheritance diagram for ABA_NUMCON:
Public Member Functions | |
ABA_NUMCON (ABA_MASTER *master, const ABA_SUB *sub, ABA_CSENSE::SENSE sense, bool dynamic, bool local, bool liftable, int number, double rhs) | |
virtual | ~ABA_NUMCON () |
The destructor. | |
virtual double | coeff (ABA_VARIABLE *v) |
virtual void | print (ostream &out) |
int | number () const |
Private Attributes | |
int | number_ |
Friends | |
ostream & | operator<< (ostream &out, const ABA_NUMCON &rhs) |
int | number_ The identification number of the constraint. |
Definition at line 38 of file numcon.h.
ABA_NUMCON::ABA_NUMCON | ( | ABA_MASTER * | master, | |
const ABA_SUB * | sub, | |||
ABA_CSENSE::SENSE | sense, | |||
bool | dynamic, | |||
bool | local, | |||
bool | liftable, | |||
int | number, | |||
double | rhs | |||
) |
The constructor.
master | A pointer to the corresponding master of the optimization. | |
sub | A pointer to the subproblem associated with the constraint. This can be also the 0-pointer. | |
sense | The sense of the constraint. | |
dynamic | If this argument is true, then the constraint can be removed from the active constraint set during the cutting plane phase of the subproblem optimization. | |
local | If this argument is true, then the constraint is considered to be only locally valid. As a local constraint is associated with a subproblem, sub must not be 0 if local is true. | |
liftable | If this argument is true, then a lifting procedure must be available, i.e., that the coefficients of variables which have not been active at generation time of the constraint can be computed. | |
number | The identification number of the constraint. | |
rhs | The right hand side of the constraint. |
virtual ABA_NUMCON::~ABA_NUMCON | ( | ) | [virtual] |
The destructor.
virtual double ABA_NUMCON::coeff | ( | ABA_VARIABLE * | v | ) | [virtual] |
v | The variable of which the coefficient is determined. It must point to an object of the class ABA_COLVAR. |
Implements ABA_CONSTRAINT.
virtual void ABA_NUMCON::print | ( | ostream & | out | ) | [virtual] |
Writes the row format of the constraint on an output stream.
It redefines the virtual function print() of the base class ABA_CONVAR.
out | The output stream. |
Reimplemented from ABA_CONVAR.
int ABA_NUMCON::number | ( | ) | const [inline] |
ostream& operator<< | ( | ostream & | out, | |
const ABA_NUMCON & | rhs | |||
) | [friend] |
The output operator writes the identification number and the right hand side to an output stream.
out | The output stream. | |
rhs | The variable being output. |
int ABA_NUMCON::number_ [private] |