6.36 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.

#include <numcon.h>

Inheritance diagram for ABA_NUMCON::


PIC


Public Member Functions

Private Attributes

Friends

6.36.1 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.

6.36.2 Constructor & Destructor Documentation

6.36.2.1 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.

6.36.2.2 virtual ABA_NUMCON::~ABA_NUMCON () [virtual]

The destructor.

6.36.3 Member Function Documentation

6.36.3.1 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.

6.36.3.2 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.

6.36.3.3 int ABA_NUMCON::number () const [inline]

Returns:

Returns the identification number of the constraint.

Definition at line 130 of file numcon.h.

6.36.4 Friends And Related Function Documentation

6.36.4.1 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.

6.36.5 Member Data Documentation

6.36.5.1 int ABA_NUMCON::number_ [private]

Definition at line 126 of file numcon.h.

The documentation for this class was generated from the following file: