StableSetLPSolution Class Reference

#include <StableSetLPSolution.hh>

List of all members.

Public Member Functions

 StableSetLPSolution (ABA_MASTER *master, ABA_SUB *sub, int numberOfNodes, double *xVal)
 ~StableSetLPSolution ()
StableSetMasterstableSetMaster () const
ABA_SUB * sub () const


Detailed Description

This class stores the last LP-solution and provides it to the separation routines.

Definition at line 34 of file StableSetLPSolution.hh.


Constructor & Destructor Documentation

StableSetLPSolution::StableSetLPSolution ABA_MASTER *  master,
ABA_SUB *  sub,
int  numberOfNodes,
double *  xVal
 

Constructor.

Parameters:
*master Pointer to the corrsponding master of the optimization.
*sub Pointer to the current suproblem.
numberOfNodes Number of nodes of the graph.
*xVal Pointer which stores the current LP solution values.

Definition at line 31 of file StableSetLPSolution.cpp.

00032                                                                           :
00033     ABA_LPSOLUTION<ABA_VARIABLE,ABA_CONSTRAINT> (master),
00034     m_sub(sub)
00035 {
00036     // Number of nodes.
00037     nVarCon_ = numberOfNodes;
00038 
00039     // Initialize zVal_.
00040     zVal_.realloc(numberOfNodes);
00041     for (int i=0; i<nVarCon_; i++) {
00042         zVal_[i] = xVal[i];
00043     }
00044 }

StableSetLPSolution::~StableSetLPSolution  ) 
 

Destructor.

Definition at line 50 of file StableSetLPSolution.cpp.

00050                                           {
00051 }


Member Function Documentation

StableSetMaster * StableSetLPSolution::stableSetMaster  )  const
 

Get stable set master.

Parameters:
void 
Returns:
Pointer to the stable set master.

Definition at line 59 of file StableSetLPSolution.cpp.

Referenced by StableSetModKSeparator::applyRanking(), and StableSetModKSeparator::separate().

00059                                                             {
00060     return (StableSetMaster*)master_;
00061 }

ABA_SUB * StableSetLPSolution::sub  )  const
 

Return the current subproblem.

Parameters:
void 
Returns:
Pointer to the current subproblem.

Definition at line 69 of file StableSetLPSolution.cpp.

Referenced by StableSetModKSeparator::applyRanking(), StableSetModKSeparator::separate(), and CliqueHeuristicsSeparator::separate().

00069                                         {
00070     return (ABA_SUB*)m_sub;
00071 }


The documentation for this class was generated from the following files:
Generated on Fri Apr 28 15:50:01 2006 for Branch and Cut algorithm for the Maximum Stable Set Problem by  doxygen 1.4.6-NO