Node Class Reference

#include <Node.hh>

List of all members.

Public Member Functions

 Node (ABA_MASTER *master, int nodesNumber, double objectiveCoefficient)
virtual ~Node ()
int nodeNumber () const


Detailed Description

The class Node is derived from the abstract class ABA_Variable. Each node of the graph is identified with a variable in the integer programming formulation of the Stable Set problem. Therefore, each member of this class is a variable.

Definition at line 35 of file Node.hh.


Constructor & Destructor Documentation

Node::Node ABA_MASTER *  master,
int  nodesNumber,
double  objectiveCoefficient
 

Constructor.

Parameters:
*master Pointer to the corresponding master of the optimization.
nodesNumber The number of a node to identify the variable.
objectiveCoefficient The objective function coefficient of the variable.

Definition at line 42 of file Node.cpp.

00042                                                                           :
00043    ABA_VARIABLE(master, 0, false, false, objectiveCoefficient,
00044                  0.0, 1.0, ABA_VARTYPE::Binary),
00045    numberOfNode(nodesNumber)
00046 {
00047 }

Node::~Node  )  [virtual]
 

Destructor.

Definition at line 53 of file Node.cpp.

00053             {
00054 }


Member Function Documentation

int Node::nodeNumber  )  const
 

Receive node number.

Parameters:
void 
Returns:
Number of the node corresponding to this variable.

Definition at line 62 of file Node.cpp.

Referenced by RankConstraint::coeff(), OddCycleConstraint::coeff(), GeneralConstraint::coeff(), and CliqueConstraint::coeff().

00062                            {
00063     return numberOfNode;
00064 }


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