Decision variable interface class. More...
#include <DecisionVariable.hpp>

Public Member Functions | |
| DecisionVariableIF (string name, decVariableType type, double lb, double ub) | |
| Constructor of the DecisionVariableIF class. More... | |
| virtual | ~DecisionVariableIF () |
| Destructor of the DecisionVariableIF class. More... | |
| decVariableType | getType () const |
| Get the variable type. More... | |
| string | getName () const |
| Return the name of the decision variable. More... | |
| virtual uint | getTimeStage () const =0 |
| Return the time-stage when the decision is made. More... | |
| virtual bool | isAdaptive () const =0 |
| Return indicator of adaptability, return value equals true if and only if the decision variable can adapt to the history of observations. More... | |
| virtual bool | isBooleanVar () const =0 |
| Return true if and only if the decision variable is of boolean type. More... | |
| virtual bool | isIntegerVar () const =0 |
| Return true if and only if the decision variable is of integer type. More... | |
| virtual bool | isRealVar () const =0 |
| Return true if and only if the decision variable is of real-valued type. More... | |
| double | getLB () const |
| Return the lower bound of the decision variable. More... | |
| double | getUB () const |
| Return the upper bound of the decision variable. More... | |
| virtual void | setLB (double lb) |
| Set lower bound of the variable. More... | |
| virtual void | setUB (double ub) |
| Set upper bound of the variable. More... | |
| virtual ROCPPVarIF_Ptr | Clone ()=0 |
| Return a copy of the decision variable. More... | |
| string | writeLB () const |
| Return the lower bound of the decision variable as a string. More... | |
| string | writeUB () const |
| Return the upper bound of the decision variable as a string. More... | |
Private Attributes | |
| string | m_name |
| Name of the decision variable. More... | |
| const decVariableType | m_type |
| Type of the decision variable. More... | |
| double | m_lb |
| Lower bound of the decision variable. More... | |
| double | m_ub |
| Upper bound of the decision variable. More... | |
Decision variable interface class.
| DecisionVariableIF::DecisionVariableIF | ( | string | name, |
| decVariableType | type, | ||
| double | lb, | ||
| double | ub | ||
| ) |
Constructor of the DecisionVariableIF class.
| name | name of the decision variable |
| type | type of the decision variable |
| lb | lower bound of the variable |
| ub | upper bound of the variable |
|
inlinevirtual |
Destructor of the DecisionVariableIF class.
|
pure virtual |
Return a copy of the decision variable.
Implemented in AdaptiveVariableIF, AdaptVarDouble, AdaptVarInt, AdaptVarBool, VariableDouble, VariableInt, and VariableBool.
|
inline |
Return the lower bound of the decision variable.
|
inline |
Return the name of the decision variable.
|
pure virtual |
Return the time-stage when the decision is made.
An adaptive decision taken at time-stage t can depend on all uncertain parameters revealed up to and including time t
Implemented in AdaptiveVariableIF, and VariableIF.
|
inline |
Get the variable type.
|
inline |
Return the upper bound of the decision variable.
|
pure virtual |
Return indicator of adaptability, return value equals true if and only if the decision variable can adapt to the history of observations.
Implemented in AdaptiveVariableIF, and VariableIF.
|
pure virtual |
Return true if and only if the decision variable is of boolean type.
Implemented in AdaptVarDouble, AdaptVarInt, AdaptVarBool, VariableDouble, VariableInt, and VariableBool.
|
pure virtual |
Return true if and only if the decision variable is of integer type.
Implemented in AdaptVarDouble, AdaptVarInt, AdaptVarBool, VariableDouble, VariableInt, and VariableBool.
|
pure virtual |
Return true if and only if the decision variable is of real-valued type.
Implemented in AdaptVarDouble, AdaptVarInt, AdaptVarBool, VariableDouble, VariableInt, and VariableBool.
|
virtual |
Set lower bound of the variable.
Reimplemented in AdaptVarBool, and VariableBool.
|
virtual |
Set upper bound of the variable.
Reimplemented in AdaptVarBool, and VariableBool.
| string DecisionVariableIF::writeLB | ( | ) | const |
Return the lower bound of the decision variable as a string.
| string DecisionVariableIF::writeUB | ( | ) | const |
Return the upper bound of the decision variable as a string.
|
private |
Lower bound of the decision variable.
|
private |
Name of the decision variable.
|
private |
Type of the decision variable.
|
private |
Upper bound of the decision variable.