#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. |
Definition at line 27 of file OSNode.h.
OSNode::OSNode | ( | ) |
Default Constructor.
Definition at line 18 of file OSNode.cpp.
References nodeID, and rowIdxNumNonz.
OSNode::OSNode | ( | int | rowIdxNumNonz_, | |
int | thetaNumNonz_ | |||
) |
Constructor for allocating arrays.
Definition at line 26 of file OSNode.cpp.
References nodeID, rowIdx, rowIdxNumNonz, rowLB, rowUB, theta, thetaIdx, and thetaNumNonz.
OSNode::~OSNode | ( | ) |
int OSNode::parentID |
parentID is the node ID of the parent
Definition at line 33 of file OSNode.h.
Referenced by OSColGenApp::branchAndBound().
int OSNode::nodeID |
nodeID is the node ID
Definition at line 38 of file OSNode.h.
Referenced by OSColGenApp::branchAndBound(), and OSNode().
rowIdxNumNonz is the number of non-zero elements in rowIndex
Definition at line 41 of file OSNode.h.
Referenced by OSColGenApp::checkNodeConsistency(), OSColGenApp::createChild(), and OSNode().
int* OSNode::rowIdx |
rowIdx is a vector of row indexes for which we are setting the upper and lower bounds
Definition at line 46 of file OSNode.h.
Referenced by OSColGenApp::checkNodeConsistency(), OSColGenApp::createChild(), OSNode(), and ~OSNode().
double* OSNode::rowUB |
rowUB is a vector of row upper bounds
Definition at line 49 of file OSNode.h.
Referenced by OSColGenApp::checkNodeConsistency(), OSColGenApp::createChild(), OSNode(), and ~OSNode().
double* OSNode::rowLB |
rowLB is a vector of row lower bounds
Definition at line 52 of file OSNode.h.
Referenced by OSColGenApp::checkNodeConsistency(), OSColGenApp::createChild(), OSNode(), and ~OSNode().
double OSNode::lpValue |
lpValue is the LP relaxation for the node
Definition at line 55 of file OSNode.h.
Referenced by OSColGenApp::branchAndBound(), and OSColGenApp::createChild().
thetaNumNonz is the number of non-zero elements in the theta variable solution at this node
Definition at line 59 of file OSNode.h.
Referenced by OSColGenApp::branchAndBound(), OSColGenApp::checkNodeConsistency(), and OSNode().
int* OSNode::thetaIdx |
theta is an array of primal solution variable indexes
Definition at line 64 of file OSNode.h.
Referenced by OSColGenApp::branchAndBound(), OSColGenApp::checkNodeConsistency(), OSColGenApp::createChild(), OSNode(), and ~OSNode().
double* OSNode::theta |
theta is an array of primal positive values this is used for branching and creating new children nodes
Definition at line 70 of file OSNode.h.
Referenced by OSColGenApp::branchAndBound(), OSColGenApp::checkNodeConsistency(), OSColGenApp::createChild(), OSNode(), and ~OSNode().
std::vector<std::pair<int, int> > OSNode::colBasisStatus |
std::vector<std::pair<int, int> > OSNode::rowBasisStatus |
std::set<int> OSNode::reducedCostIdx |
reducedCostVec will hold variables within a tolerance on their reduced costs.
Definition at line 92 of file OSNode.h.
Referenced by OSColGenApp::createChild().