6.9 ABA_LPSOLUTION< BaseType, CoType > Class Template Reference

template class implements an LP solution. This class is necessary when using the class ABA_SEPARATOR for separation.

#include <lpsolution.h>

Inheritance diagram for ABA_LPSOLUTION< BaseType, CoType >::


PIC


Public Member Functions

Protected Attributes

Private Member Functions

Friends

6.9.1 Detailed Description

template<class BaseType, class CoType> class ABA_LPSOLUTION< BaseType, CoType >

template class implements an LP solution. This class is necessary when using the class ABA_SEPARATOR for separation.

Parameters:

ABA_MASTER
*master_ A pointer to the corresponding master of the optimization.
int
nVarCon_ The number of variables/constraints.
int
idSub_ The Id of the subproblem in which the LP solution was generated.
int
idLp_ The Id of the LP in which the LP solution was generated.
ABA_ARRAY<double>
* zVal_ The primal/dual variables of the LP solution.
ABA_ACTIVE<BaseType,CoType>
*active_ The active variables/constraints.

Definition at line 61 of file lpsolution.h.

6.9.2 Constructor & Destructor Documentation

6.9.2.1 template<class BaseType, class CoType> ABA_LPSOLUTION< BaseType, CoType >::ABA_LPSOLUTION (ABA_SUB * sub, bool primalVariables, ABA_ACTIVE< BaseType, CoType > * active)

The constructor.

Parameters:

sub
A pointer to the subproblem in which the LP solution is generated.
primalVariables
True if ABA_LPSOLUTION contains the primal variables. In this case BaseType must be ABA_VARIABLE. If primaVariables is false, then BaseType must be ABA_CONSTRAINT.
active
The active variables/constraints that are associated with the LP solution. The default argument is 0. Then the set of active variables/constraints is not stored, but is assumed to be fixed and known.

6.9.2.2 template<class BaseType, class CoType> ABA_LPSOLUTION< BaseType, CoType >::ABA_LPSOLUTION (ABA_MASTER * master)

The constructor.

Parameters:

master
A pointer to ABA_MASTER.

6.9.2.3 template<class BaseType, class CoType> ABA_LPSOLUTION< BaseType, CoType >::ABA_LPSOLUTION (const ABA_LPSOLUTION< BaseType, CoType > & rhs)

The copy constructor.

Parameters:

rhs
The LP solution that is copied.

6.9.2.4 template<class BaseType, class CoType> ABA_LPSOLUTION< BaseType, CoType >::~ABA_LPSOLUTION ()

The destructor.

6.9.3 Member Function Documentation

6.9.3.1 template<class BaseType, class CoType> int ABA_LPSOLUTION< BaseType, CoType >::nVarCon () const

Returns:

The number of variables (if BaseType is ABA_VARIABLE) or the number of constraints (if BaseType is ABA_CONSTRAINT), resp.

6.9.3.2 template<class BaseType, class CoType> double*ABA_LPSOLUTION< BaseType, CoType >::zVal ()

Returns:

The primal/dual variables of the LP solution.

6.9.3.3 template<class BaseType, class CoType> ABA_ACTIVE<BaseType, CoType>*ABA_LPSOLUTION< BaseType, CoType >::active ()

Returns:

The active variables/constraints.

6.9.3.4 template<class BaseType, class CoType> int ABA_LPSOLUTION< BaseType, CoType >::idSub () const

Returns:

The Id of the subproblem in which the LP solution was generated.

6.9.3.5 template<class BaseType, class CoType> int ABA_LPSOLUTION< BaseType, CoType >::idLp () const

Returns:

The Id of the LP in which the LP solution was generated.

6.9.3.6 template<class BaseType, class CoType> const ABA_LPSOLUTION<BaseType, CoType>& ABA_LPSOLUTION< BaseType, CoType >::operator= (const ABA_LPSOLUTION< BaseType, CoType > & rhs) [private]

6.9.4 Friends And Related Function Documentation

6.9.4.1 template<class BaseType, class CoType> friend class ABA_SEPARATOR< CoType, BaseType > [friend]

Definition at line 62 of file lpsolution.h.

6.9.4.2 template<class BaseType, class CoType> ostream& operator<< (ostream & out, const ABA_LPSOLUTION< BaseType, CoType > & rhs) [friend]

The output operator writes the lpsolution to an output stream.

Returns:

A reference to the output stream.

Parameters:

out
The output stream.
rhs
The lpsolution being output.

6.9.5 Member Data Documentation

6.9.5.1 template<class BaseType, class CoType> ABA_MASTER*ABA_LPSOLUTION< BaseType, CoType >::master_ [protected]

Definition at line 151 of file lpsolution.h.

6.9.5.2 template<class BaseType, class CoType> int ABA_LPSOLUTION< BaseType, CoType >::nVarCon_ [protected]

Definition at line 152 of file lpsolution.h.

6.9.5.3 template<class BaseType, class CoType> int ABA_LPSOLUTION< BaseType, CoType >::idSub_ [protected]

Definition at line 153 of file lpsolution.h.

6.9.5.4 template<class BaseType, class CoType> int ABA_LPSOLUTION< BaseType, CoType >::idLp_ [protected]

Definition at line 154 of file lpsolution.h.

6.9.5.5 template<class BaseType, class CoType> ABA_ARRAY<double> ABA_LPSOLUTION< BaseType, CoType >::zVal_ [protected]

Definition at line 158 of file lpsolution.h.

6.9.5.6 template<class BaseType, class CoType> ABA_ACTIVE<BaseType, CoType>*ABA_LPSOLUTION< BaseType, CoType >::active_ [protected]

Definition at line 159 of file lpsolution.h.

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