#include <OSResult.h>
Collaboration diagram for VariableValues:
Public Member Functions | |
VariableValues () | |
Default constructor. | |
~VariableValues () | |
Class destructor. | |
bool | IsEqual (VariableValues *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. | |
VariableValues () | |
Default constructor. | |
~VariableValues () | |
Class destructor. | |
Public Attributes | |
int | numberOfVar |
the number of variable values that are in the solution | |
VarValue ** | var |
a vector of VarValue objects, there will be one for each variable in the solution | |
std::vector< VarValue * > | var |
a vector of VarValue objects, there will be one for each variable in the solution |
Definition at line 882 of file OSResult.h.
VariableValues::VariableValues | ( | ) |
VariableValues::~VariableValues | ( | ) |
VariableValues::VariableValues | ( | ) |
Default constructor.
VariableValues::~VariableValues | ( | ) |
Class destructor.
bool VariableValues::IsEqual | ( | VariableValues * | that | ) |
bool VariableValues::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 7810 of file OSResult.cpp.
References VarValue::setRandom(), and var.
the number of variable values that are in the solution
Definition at line 887 of file OSResult.h.
Referenced by OSResult::setPrimalVariableValues(), OSrL2Gams::writeSolution(), and ~VariableValues().
a vector of VarValue objects, there will be one for each variable in the solution
Definition at line 892 of file OSResult.h.
Referenced by OSResult::setPrimalVariableValues(), setRandom(), OSrL2Gams::writeSolution(), and ~VariableValues().
std::vector<VarValue*> VariableValues::var |
a vector of VarValue objects, there will be one for each variable in the solution
Definition at line 465 of file OSResult.h.