#include <srowcon.h>
Inheritance diagram for ABA_SROWCON:
Public Member Functions | |
ABA_SROWCON (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_SROWCON (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_SROWCON () |
The destructor. | |
virtual int | genRow (ABA_ACTIVE< ABA_VARIABLE, ABA_CONSTRAINT > *var, ABA_ROW &row) |
Generates the row format of the constraint associated with the variable set var. | |
virtual double | slack (ABA_ACTIVE< ABA_VARIABLE, ABA_CONSTRAINT > *variables, double *x) |
Definition at line 39 of file srowcon.h.
ABA_SROWCON::ABA_SROWCON | ( | 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 be also 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_SROWCON::ABA_SROWCON | ( | 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_SROWCON::~ABA_SROWCON | ( | ) | [virtual] |
The destructor.
virtual int ABA_SROWCON::genRow | ( | ABA_ACTIVE< ABA_VARIABLE, ABA_CONSTRAINT > * | var, | |
ABA_ROW & | row | |||
) | [virtual] |
Generates the row format of the constraint associated with the variable set var.
This function redefines a virtual function of the base class ABA_ROWCON.
var | The variable set for which the row format is generated is only a dummy since the the variable set is assumed to be fixed for this constraint class. | |
row | Holds the row format of the constraint after the execution of this function. |
Reimplemented from ABA_CONSTRAINT.
virtual double ABA_SROWCON::slack | ( | ABA_ACTIVE< ABA_VARIABLE, ABA_CONSTRAINT > * | variables, | |
double * | x | |||
) | [virtual] |
Computes the slack of a vector associated with the variable set variables.
This function redefines a virtual function of the base class ABA_ROWCON.
variable | The variable set for which the row format is generated is only a dummy since the the variable set is assumed to be fixed for this constraint class. | |
x | An array of length equal to the number of variables. |
Reimplemented from ABA_CONSTRAINT.