#include <OSResult.h>
Collaboration diagram for DualVariableValues:
Public Member Functions | |
DualVariableValues () | |
Default constructor. | |
~DualVariableValues () | |
Class destructor. | |
bool | IsEqual (DualVariableValues *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. | |
DualVariableValues () | |
Default constructor. | |
~DualVariableValues () | |
Class destructor. | |
Public Attributes | |
int | numberOfCon |
record the number of constraints for which values are given | |
DualVarValue ** | con |
con is a vector of DualVarValue objects that give an index and dual variable value for each constraint function. | |
std::vector< DualVarValue * > | con |
con is a vector of DualVarValue objects that give an index and dual variable value for each constraint function. |
Definition at line 1624 of file OSResult.h.
DualVariableValues::DualVariableValues | ( | ) |
DualVariableValues::~DualVariableValues | ( | ) |
DualVariableValues::DualVariableValues | ( | ) |
Default constructor.
DualVariableValues::~DualVariableValues | ( | ) |
Class destructor.
bool DualVariableValues::IsEqual | ( | DualVariableValues * | that | ) |
A function to check for the equality of two objects.
Definition at line 7462 of file OSResult.cpp.
References con, and numberOfCon.
bool DualVariableValues::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 8818 of file OSResult.cpp.
References con, n, numberOfCon, OSRand(), and DualVarValue::setRandom().
Referenced by ConstraintSolution::setRandom().
record the number of constraints for which values are given
Definition at line 1630 of file OSResult.h.
Referenced by OSResult::getDualValue(), OSResult::getDualValueIdx(), OSResult::getDualValueName(), OSResult::getNumberOfDualValues(), OSResult::getOptimalDualVariableValues(), IsEqual(), OSResult::setConstraintValues(), OSResult::setConstraintValuesDense(), OSResult::setDualValue(), OSResult::setDualVariableValues(), OSResult::setDualVariableValuesDense(), OSResult::setDualVariableValuesSparse(), OSResult::setNumberOfDualValues(), OSResult::setNumberOfDualVariableValues(), setRandom(), OSrL2Gams::writeSolution(), and ~DualVariableValues().
con is a vector of DualVarValue objects that give an index and dual variable value for each constraint function.
Definition at line 1636 of file OSResult.h.
Referenced by OSResult::getDualValue(), OSResult::getDualValueIdx(), OSResult::getDualValueName(), OSResult::getOptimalDualVariableValues(), IsEqual(), OSResult::setConstraintValues(), OSResult::setConstraintValuesDense(), OSResult::setDualValue(), OSResult::setDualVariableValues(), OSResult::setDualVariableValuesDense(), OSResult::setDualVariableValuesSparse(), OSResult::setNumberOfDualValues(), setRandom(), OSrL2Gams::writeSolution(), and ~DualVariableValues().
std::vector<DualVarValue*> DualVariableValues::con |
con is a vector of DualVarValue objects that give an index and dual variable value for each constraint function.
Definition at line 973 of file OSResult.h.