ABA_NUMCON Class Reference

Like the class ABA_NUMVAR for variables we provide the class ABA_NUMCON for constraints which are uniquely defined by an integer number. More...

#include <numcon.h>

Inheritance diagram for ABA_NUMCON:

ABA_CONSTRAINT ABA_CONVAR ABA_ABACUSROOT List of all members.

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)

Detailed Description

Like the class ABA_NUMVAR for variables we provide the class ABA_NUMCON for constraints which are uniquely defined by an integer number.

Parameters:
int number_ The identification number of the constraint.

Definition at line 38 of file numcon.h.


Constructor & Destructor Documentation

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.

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


Member Function Documentation

virtual double ABA_NUMCON::coeff ( ABA_VARIABLE v  )  [virtual]

Returns:
The coefficient of the variable v.
Parameters:
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.

Parameters:
out The output stream.

Reimplemented from ABA_CONVAR.

int ABA_NUMCON::number (  )  const [inline]

Returns:
Returns the identification number of the constraint.

Definition at line 130 of file numcon.h.


Friends And Related Function Documentation

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.

Returns:
A reference to the output stream.
Parameters:
out The output stream.
rhs The variable being output.


Member Data Documentation

int ABA_NUMCON::number_ [private]

Definition at line 126 of file numcon.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