My Project
OSNode Class Reference

#include <OSNode.h>

Public Member Functions

 OSNode ()
 Default Constructor.
 
 OSNode (int rowIdxNumNonz_, int thetaNumNonz_)
 Constructor for allocating arrays.
 
 ~OSNode ()
 Default destructor.
 

Public Attributes

int parentID
 parentID is the node ID of the parent
 
int nodeID
 nodeID is the node ID
 
int rowIdxNumNonz
 rowIdxNumNonz is the number of non-zero elements in rowIndex
 
int * rowIdx
 rowIdx is a vector of row indexes for which we are setting the upper and lower bounds
 
double * rowUB
 rowUB is a vector of row upper bounds
 
double * rowLB
 rowLB is a vector of row lower bounds
 
double lpValue
 lpValue is the LP relaxation for the node
 
int thetaNumNonz
 thetaNumNonz is the number of non-zero elements in the theta variable solution at this node
 
int * thetaIdx
 theta is an array of primal solution variable indexes
 
double * theta
 theta is an array of primal positive values this is used for branching and creating new children nodes
 
std::vector< std::pair< int, int > > colBasisStatus
 colBasisStatus is vector of integer pairs, for each element of the vector we store the pair (index, status) where status is: basis code:
 
std::vector< std::pair< int, int > > rowBasisStatus
 rowBasisStatus is the vector of pairs for rows
 
std::set< int > reducedCostIdx
 reducedCostVec will hold variables within a tolerance on their reduced costs.
 

Detailed Description

OSNode

Definition at line 28 of file OSNode.h.

Constructor & Destructor Documentation

◆ OSNode() [1/2]

OSNode::OSNode ( )

Default Constructor.

Definition at line 18 of file OSNode.cpp.

◆ OSNode() [2/2]

OSNode::OSNode ( int rowIdxNumNonz_,
int thetaNumNonz_ )

Constructor for allocating arrays.

Definition at line 26 of file OSNode.cpp.

◆ ~OSNode()

OSNode::~OSNode ( )

Default destructor.

Definition at line 46 of file OSNode.cpp.

Member Data Documentation

◆ parentID

int OSNode::parentID

parentID is the node ID of the parent

Definition at line 34 of file OSNode.h.

◆ nodeID

int OSNode::nodeID

nodeID is the node ID

Definition at line 39 of file OSNode.h.

◆ rowIdxNumNonz

int OSNode::rowIdxNumNonz

rowIdxNumNonz is the number of non-zero elements in rowIndex

Definition at line 42 of file OSNode.h.

◆ rowIdx

int* OSNode::rowIdx

rowIdx is a vector of row indexes for which we are setting the upper and lower bounds

Definition at line 47 of file OSNode.h.

◆ rowUB

double* OSNode::rowUB

rowUB is a vector of row upper bounds

Definition at line 50 of file OSNode.h.

◆ rowLB

double* OSNode::rowLB

rowLB is a vector of row lower bounds

Definition at line 53 of file OSNode.h.

◆ lpValue

double OSNode::lpValue

lpValue is the LP relaxation for the node

Definition at line 56 of file OSNode.h.

◆ thetaNumNonz

int OSNode::thetaNumNonz

thetaNumNonz is the number of non-zero elements in the theta variable solution at this node

Definition at line 60 of file OSNode.h.

◆ thetaIdx

int* OSNode::thetaIdx

theta is an array of primal solution variable indexes

Definition at line 65 of file OSNode.h.

◆ theta

double* OSNode::theta

theta is an array of primal positive values this is used for branching and creating new children nodes

Definition at line 71 of file OSNode.h.

◆ colBasisStatus

std::vector<std::pair<int, int> > OSNode::colBasisStatus

colBasisStatus is vector of integer pairs, for each element of the vector we store the pair (index, status) where status is: basis code:

  • 0: free
  • 1: basic
  • 2: nonbasic at upper bound
  • 3: nonbasic at lower bound

Definition at line 84 of file OSNode.h.

◆ rowBasisStatus

std::vector<std::pair<int, int> > OSNode::rowBasisStatus

rowBasisStatus is the vector of pairs for rows

Definition at line 88 of file OSNode.h.

◆ reducedCostIdx

std::set<int> OSNode::reducedCostIdx

reducedCostVec will hold variables within a tolerance on their reduced costs.

Definition at line 93 of file OSNode.h.


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