#include <rowcon.h>
Inheritance diagram for ABA_ROWCON:
Public Member Functions | |
ABA_ROWCON (ABA_MASTER *master, const ABA_SUB *sub, ABA_CSENSE::SENSE sense, int nnz, const ABA_ARRAY< int > &support, const ABA_ARRAY< double > &coeff, double rhs, bool dynamic, bool local, bool liftable) | |
ABA_ROWCON (ABA_MASTER *master, const ABA_SUB *sub, ABA_CSENSE::SENSE sense, int nnz, int *support, double *coeff, double rhs, bool dynamic, bool local, bool liftable) | |
This constructor is equivalent to the previous constructor except that it uses C-style arrays for support and coeff. | |
virtual | ~ABA_ROWCON () |
The destructor. | |
virtual double | coeff (ABA_VARIABLE *v) |
Computes the coefficient of a variable which must be of type ABA_NUMVAR. | |
virtual void | print (ostream &out) |
ABA_ROW * | row () |
Protected Attributes | |
ABA_ROW | row_ |
Definition at line 44 of file rowcon.h.
ABA_ROWCON::ABA_ROWCON | ( | ABA_MASTER * | master, | |
const ABA_SUB * | sub, | |||
ABA_CSENSE::SENSE | sense, | |||
int | nnz, | |||
const ABA_ARRAY< int > & | support, | |||
const ABA_ARRAY< double > & | coeff, | |||
double | rhs, | |||
bool | dynamic, | |||
bool | local, | |||
bool | liftable | |||
) |
The constructor.
master | A pointer to the corresponding master of the optimization. | |
sub | A pointer to the subproblem associated with the constraint. This can also be the 0-pointer. | |
sense | The sense of the constraint. | |
nnz | The number of nonzero elements of the constraint. | |
support | The array storing the variables with nonzero coefficients. | |
coeff | The nonzero coefficients of the variables stored in support. | |
rhs | The right hand side 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 locally valid 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. |
ABA_ROWCON::ABA_ROWCON | ( | ABA_MASTER * | master, | |
const ABA_SUB * | sub, | |||
ABA_CSENSE::SENSE | sense, | |||
int | nnz, | |||
int * | support, | |||
double * | coeff, | |||
double | rhs, | |||
bool | dynamic, | |||
bool | local, | |||
bool | liftable | |||
) |
This constructor is equivalent to the previous constructor except that it uses C-style arrays for support and coeff.
virtual ABA_ROWCON::~ABA_ROWCON | ( | ) | [virtual] |
The destructor.
virtual double ABA_ROWCON::coeff | ( | ABA_VARIABLE * | v | ) | [virtual] |
Computes the coefficient of a variable which must be of type ABA_NUMVAR.
It redefines the virtual function coeff() of the base class ABA_CONSTRAINT.
v | The variable of which the coefficient is determined. |
Implements ABA_CONSTRAINT.
virtual void ABA_ROWCON::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.
ABA_ROW * ABA_ROWCON::row | ( | ) | [inline] |
ABA_ROW ABA_ROWCON::row_ [protected] |