#include <CbcNode.hpp>
Inheritance diagram for CbcPartialNodeInfo:
Public Member Functions | |
virtual void | applyToModel (CbcModel *model, CoinWarmStartBasis *&basis, CbcCountRowCut **addCuts, int ¤tNumberCuts) const |
Modify model according to information at node. | |
virtual int | applyBounds (int iColumn, double &lower, double &upper, int force) |
Just apply bounds to one variable - force means overwrite by lower,upper (1=>infeasible). | |
virtual CbcNodeInfo * | buildRowBasis (CoinWarmStartBasis &basis) const |
Builds up row basis backwards (until original model). | |
CbcPartialNodeInfo () | |
CbcPartialNodeInfo (CbcNodeInfo *parent, CbcNode *owner, int numberChangedBounds, const int *variables, const double *boundChanges, const CoinWarmStartDiff *basisDiff) | |
CbcPartialNodeInfo (const CbcPartialNodeInfo &) | |
~CbcPartialNodeInfo () | |
virtual CbcNodeInfo * | clone () const |
Clone. | |
const CoinWarmStartDiff * | basisDiff () const |
Basis diff information. | |
const int * | variables () const |
Which variable (top bit if upper bound changing). | |
const double * | newBounds () const |
int | numberChangedBounds () const |
Number of bound changes. | |
Protected Attributes | |
CoinWarmStartDiff * | basisDiff_ |
Basis diff information. | |
int * | variables_ |
Which variable (top bit if upper bound changing). | |
double * | newBounds_ |
int | numberChangedBounds_ |
Number of bound changes. | |
Private Member Functions | |
CbcPartialNodeInfo & | operator= (const CbcPartialNodeInfo &rhs) |
Illegal Assignment operator. |
A CbcPartialNodeInfo object contains changes to the bounds and basis, and additional cuts, required to recreate a subproblem by modifying and augmenting the parent subproblem.
Definition at line 371 of file CbcNode.hpp.
CbcPartialNodeInfo::CbcPartialNodeInfo | ( | ) |
CbcPartialNodeInfo::CbcPartialNodeInfo | ( | CbcNodeInfo * | parent, | |
CbcNode * | owner, | |||
int | numberChangedBounds, | |||
const int * | variables, | |||
const double * | boundChanges, | |||
const CoinWarmStartDiff * | basisDiff | |||
) |
CbcPartialNodeInfo::CbcPartialNodeInfo | ( | const CbcPartialNodeInfo & | ) |
CbcPartialNodeInfo::~CbcPartialNodeInfo | ( | ) |
virtual void CbcPartialNodeInfo::applyToModel | ( | CbcModel * | model, | |
CoinWarmStartBasis *& | basis, | |||
CbcCountRowCut ** | addCuts, | |||
int & | currentNumberCuts | |||
) | const [virtual] |
Modify model according to information at node.
The routine modifies the model according to bound and basis change information at node and adds any cuts to the addCuts array.
Implements CbcNodeInfo.
virtual int CbcPartialNodeInfo::applyBounds | ( | int | iColumn, | |
double & | lower, | |||
double & | upper, | |||
int | force | |||
) | [virtual] |
Just apply bounds to one variable - force means overwrite by lower,upper (1=>infeasible).
Implements CbcNodeInfo.
virtual CbcNodeInfo* CbcPartialNodeInfo::buildRowBasis | ( | CoinWarmStartBasis & | basis | ) | const [virtual] |
Builds up row basis backwards (until original model).
Returns NULL or previous one to apply . Depends on Free being 0 and impossible for cuts
Implements CbcNodeInfo.
virtual CbcNodeInfo* CbcPartialNodeInfo::clone | ( | ) | const [virtual] |
const CoinWarmStartDiff* CbcPartialNodeInfo::basisDiff | ( | ) | const [inline] |
const int* CbcPartialNodeInfo::variables | ( | ) | const [inline] |
Which variable (top bit if upper bound changing).
Definition at line 412 of file CbcNode.hpp.
References variables_.
const double* CbcPartialNodeInfo::newBounds | ( | ) | const [inline] |
int CbcPartialNodeInfo::numberChangedBounds | ( | ) | const [inline] |
Number of bound changes.
Definition at line 418 of file CbcNode.hpp.
References numberChangedBounds_.
CbcPartialNodeInfo& CbcPartialNodeInfo::operator= | ( | const CbcPartialNodeInfo & | rhs | ) | [private] |
Illegal Assignment operator.
CoinWarmStartDiff* CbcPartialNodeInfo::basisDiff_ [protected] |
int* CbcPartialNodeInfo::variables_ [protected] |
Which variable (top bit if upper bound changing).
Definition at line 426 of file CbcNode.hpp.
Referenced by variables().
double* CbcPartialNodeInfo::newBounds_ [protected] |
int CbcPartialNodeInfo::numberChangedBounds_ [protected] |
Number of bound changes.
Definition at line 430 of file CbcNode.hpp.
Referenced by numberChangedBounds().