6.37 ABA_ROWCON Class Reference

class ABA_ROWCON implements constraints stored in the class ABA_ROW.

#include <rowcon.h>

Inheritance diagram for ABA_ROWCON::


PIC


Public Member Functions

Protected Attributes

6.37.1 Detailed Description

class ABA_ROWCON implements constraints stored in the class ABA_ROW.

Definition at line 44 of file rowcon.h.

6.37.2 Constructor & Destructor Documentation

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

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

6.37.2.3 virtual ABA_ROWCON::~ABA_ROWCON () [virtual]

The destructor.

6.37.3 Member Function Documentation

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

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

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

6.37.4 Member Data Documentation

6.37.4.1 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: