Public Member Functions | |
MidStageNode (StageNode *ptPred, const int nodeN, const double condProb, double *ptRetVect) | |
Constructs a MidStageNode object. | |
Public Attributes | |
MP_constraint | cashFlowBalance |
cash-flow balance constraint | |
MP_data | Return |
returns of the assets at this node |
Definition at line 144 of file investment.cpp.
MidStageNode::MidStageNode | ( | StageNode * | ptPred, | |
const int | nodeN, | |||
const double | condProb, | |||
double * | ptRetVect | |||
) | [inline] |
Constructs a MidStageNode
object.
Here we use a shallow copy for the MP_data
Return, i.e. the return values in the constraints will be linked to the array retVect. This means that if the external array changes before we build the OSI object (using the attach
method), the constraints will be changed as well - and if the external array is deallocated, the program will crash on calling the attach
method!
Definition at line 156 of file investment.cpp.
References StageNode::a, StageNode::all_constraints, StageNode::all_variables, StageNode::ASSETS, cashFlowBalance, StageNode::pt_balance_constraint, StageNode::ptParent, Return, and StageNode::x.
MP_constraint MidStageNode::cashFlowBalance |
cash-flow balance constraint
Definition at line 146 of file investment.cpp.
Referenced by MidStageNode().
MP_data MidStageNode::Return |
returns of the assets at this node
Definition at line 147 of file investment.cpp.
Referenced by MidStageNode().