ABA_ROWCON Class Reference

class ABA_ROWCON implements constraints stored in the class ABA_ROW. More...

#include <rowcon.h>

Inheritance diagram for ABA_ROWCON:

ABA_CONSTRAINT ABA_CONVAR ABA_ABACUSROOT ABA_SROWCON List of all members.

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_ROWrow ()

Protected Attributes

ABA_ROW row_

Detailed Description

class ABA_ROWCON implements constraints stored in the class ABA_ROW.

Definition at line 44 of file rowcon.h.


Constructor & Destructor Documentation

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.

Parameters:
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.


Member Function Documentation

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.

Warning:
The worst case complexity of the call of this function is the number of nonzero elements of the constraint.
Returns:
The coefficient of the variable v.
Parameters:
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.

Parameters:
out The output stream.

Reimplemented from ABA_CONVAR.

ABA_ROW * ABA_ROWCON::row (  )  [inline]

Returns:
A pointer to the object of the class ABA_ROW representing the constraint.

Definition at line 158 of file rowcon.h.


Member Data Documentation

ABA_ROW ABA_ROWCON::row_ [protected]

The representation of the constraint.

Definition at line 154 of file rowcon.h.


The documentation for this class was generated from the following file:
Generated on Tue Aug 14 18:09:58 2007 for ABACUS by  doxygen 1.5.1