#include <OSResult.h>
Collaboration diagram for VarValue:
Public Member Functions | |
VarValue () | |
Default constructor. | |
~VarValue () | |
Class destructor. | |
bool | IsEqual (VarValue *that) |
A function to check for the equality of two objects. | |
bool | setRandom (double density, bool conformant) |
A function to make a random instance of this class. | |
VarValue () | |
Default constructor. | |
~VarValue () | |
Class destructor. | |
Public Attributes | |
int | idx |
idx is the index on variable in the solution | |
std::string | name |
optional name | |
double | value |
Definition at line 846 of file OSResult.h.
VarValue::VarValue | ( | ) |
VarValue::~VarValue | ( | ) |
VarValue::VarValue | ( | ) |
Default constructor.
VarValue::~VarValue | ( | ) |
Class destructor.
bool VarValue::IsEqual | ( | VarValue * | that | ) |
bool VarValue::setRandom | ( | double | density, | |
bool | conformant | |||
) |
A function to make a random instance of this class.
density,: | corresponds to the probability that a particular child element is created | |
conformant,: | if true enforces side constraints not enforceable in the schema (e.g., agreement of "numberOfXXX" atrbutes and <XXX> children) |
Definition at line 8510 of file OSResult.cpp.
References OSRand().
Referenced by VariableValues::setRandom().
int VarValue::idx |
idx is the index on variable in the solution
Definition at line 851 of file OSResult.h.
Referenced by OSResult::getOptimalPrimalVariableValues(), OSResult::getVarValueIdx(), IsEqual(), OSResult::setPrimalVariableValues(), OSResult::setPrimalVariableValuesDense(), OSResult::setPrimalVariableValuesSparse(), OSResult::setVarValue(), and OSrL2Gams::writeSolution().
std::string VarValue::name |
optional name
Definition at line 854 of file OSResult.h.
Referenced by OSResult::getVarValueName(), IsEqual(), and OSResult::setVarValue().
double VarValue::value |
Definition at line 859 of file OSResult.h.
Referenced by OSResult::getOptimalPrimalVariableValues(), OSResult::getVarValue(), IsEqual(), OSResult::setPrimalVariableValues(), OSResult::setPrimalVariableValuesDense(), OSResult::setPrimalVariableValuesSparse(), OSResult::setVarValue(), and OSrL2Gams::writeSolution().