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

#include <lpsolution.h>

Inheritance diagram for ABA_LPSOLUTION< BaseType, CoType >:

ABA_ABACUSROOT List of all members.

Public Member Functions

 ABA_LPSOLUTION (ABA_SUB *sub, bool primalVariables, ABA_ACTIVE< BaseType, CoType > *active)
 ABA_LPSOLUTION (ABA_MASTER *master)
 ABA_LPSOLUTION (const ABA_LPSOLUTION< BaseType, CoType > &rhs)
 ~ABA_LPSOLUTION ()
 The destructor.
int nVarCon () const
double * zVal ()
ABA_ACTIVE< BaseType, CoType > * active ()
int idSub () const
int idLp () const

Protected Attributes

ABA_MASTERmaster_
int nVarCon_
int idSub_
int idLp_
ABA_ARRAY< double > zVal_
ABA_ACTIVE< BaseType, CoType > * active_

Private Member Functions

const ABA_LPSOLUTION< BaseType,
CoType > & 
operator= (const ABA_LPSOLUTION< BaseType, CoType > &rhs)

Friends

class ABA_SEPARATOR< CoType, BaseType >
ostream & operator<< (ostream &out, const ABA_LPSOLUTION< BaseType, CoType > &rhs)

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.


Constructor & Destructor Documentation

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.

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

The constructor.

Parameters:
master A pointer to ABA_MASTER.

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.

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

The destructor.


Member Function Documentation

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.

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

Returns:
The primal/dual variables of the LP solution.

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

Returns:
The active variables/constraints.

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.

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.

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


Friends And Related Function Documentation

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

Definition at line 62 of file lpsolution.h.

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.


Member Data Documentation

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

Definition at line 151 of file lpsolution.h.

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

Definition at line 152 of file lpsolution.h.

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

Definition at line 153 of file lpsolution.h.

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

Definition at line 154 of file lpsolution.h.

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

Definition at line 158 of file lpsolution.h.

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:
Generated on Tue Aug 14 18:09:57 2007 for ABACUS by  doxygen 1.5.1