#include <OSResult.h>
Collaboration diagram for OptimizationSolution:
Public Member Functions | |
OptimizationSolution () | |
Default constructor. | |
~OptimizationSolution () | |
Class destructor. | |
bool | IsEqual (OptimizationSolution *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. | |
OptimizationSolution () | |
Default constructor. | |
~OptimizationSolution () | |
Class destructor. | |
Public Attributes | |
int | targetObjectiveIdx |
the index of the objective function for which we are reporting solution information | |
std::string | targetObjectiveName |
an optional name of the objective function for which we are reporting solution information | |
bool | weightedObjectives |
a marker to track whether the objectives are weighted | |
OptimizationSolutionStatus * | status |
status is a pointer to an OptimizationSolutionStatus object associated with this optimization solution | |
std::string | message |
a message associated with this solution | |
VariableSolution * | variables |
variables holds the solution information for the variables | |
ObjectiveSolution * | objectives |
objectives holds the solution information for the objectives | |
ConstraintSolution * | constraints |
constraints holds the solution information for the constraints | |
OtherSolutionResults * | otherSolutionResults |
otherSolutionResults is a pointer to an OtherSolutionResults object that is associated with this optimization solution | |
int | numberOfOtherResults |
the number of other results associated with this solution | |
OptimizationSolutionStatus * | status |
status is a pointer to an OptimizationSolutionStatus object associated with this optimization solution | |
VariableSolution * | variables |
variables holds the solution information for the variables | |
ObjectiveSolution * | objectives |
objectives holds the solution information for the objectives | |
ConstraintSolution * | constraints |
constraints holds the solution information for the constraints | |
std::vector< OtherOptimizationResult * > | other |
other is a pointer to an array of OtherOptimizationResult objects associated with this optimization solution |
Definition at line 2000 of file OSResult.h.
OptimizationSolution::OptimizationSolution | ( | ) |
OptimizationSolution::~OptimizationSolution | ( | ) |
Class destructor.
Definition at line 1006 of file OSResult.cpp.
References constraints, objectives, otherSolutionResults, status, and variables.
OptimizationSolution::OptimizationSolution | ( | ) |
Default constructor.
OptimizationSolution::~OptimizationSolution | ( | ) |
Class destructor.
bool OptimizationSolution::IsEqual | ( | OptimizationSolution * | that | ) |
A function to check for the equality of two objects.
Definition at line 6561 of file OSResult.cpp.
References constraints, message, objectives, otherSolutionResults, status, targetObjectiveIdx, targetObjectiveName, variables, and weightedObjectives.
bool OptimizationSolution::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 8337 of file OSResult.cpp.
References constraints, objectives, OSRand(), otherSolutionResults, OtherSolutionResults::setRandom(), ConstraintSolution::setRandom(), ObjectiveSolution::setRandom(), VariableSolution::setRandom(), OptimizationSolutionStatus::setRandom(), status, targetObjectiveIdx, targetObjectiveName, variables, and weightedObjectives.
Referenced by OptimizationResult::setRandom().
the index of the objective function for which we are reporting solution information
Definition at line 2007 of file OSResult.h.
Referenced by OSResult::getSolutionTargetObjectiveIdx(), IsEqual(), setRandom(), OSResult::setSolutionObjectiveIndex(), and OSResult::setSolutionTargetObjectiveIdx().
std::string OptimizationSolution::targetObjectiveName |
an optional name of the objective function for which we are reporting solution information
Definition at line 2012 of file OSResult.h.
Referenced by OSResult::getSolutionTargetObjectiveName(), IsEqual(), setRandom(), and OSResult::setSolutionTargetObjectiveName().
a marker to track whether the objectives are weighted
Definition at line 2015 of file OSResult.h.
Referenced by OSResult::getSolutionWeightedObjectives(), IsEqual(), setRandom(), and OSResult::setSolutionWeightedObjectives().
status is a pointer to an OptimizationSolutionStatus object associated with this optimization solution
Definition at line 2020 of file OSResult.h.
Referenced by OSResult::getNumberOfSolutionSubstatuses(), OSResult::getOptimalDualVariableValues(), OSResult::getOptimalPrimalVariableValues(), OSResult::getSolutionStatus(), OSResult::getSolutionStatusDescription(), OSResult::getSolutionStatusType(), OSResult::getSolutionSubstatusDescription(), OSResult::getSolutionSubstatusType(), IsEqual(), OSResult::setNumberOfSolutionSubstatuses(), setRandom(), OSResult::setSolutionStatusDescription(), OSResult::setSolutionStatusType(), OSResult::setSolutionSubstatusDescription(), OSResult::setSolutionSubstatusType(), and ~OptimizationSolution().
std::string OptimizationSolution::message |
a message associated with this solution
Definition at line 2023 of file OSResult.h.
Referenced by OSResult::getSolutionMessage(), IsEqual(), and OSResult::setSolutionMessage().
variables holds the solution information for the variables
Definition at line 2028 of file OSResult.h.
Referenced by OSResult::getAnOtherVariableResultNumberOfVar(), OSResult::getBasisStatusEl(), OSResult::getBasisStatusNumberOfEl(), OSResult::getNumberOfOtherVariableResults(), OSResult::getNumberOfPrimalVariableValues(), OSResult::getNumberOfVarValues(), OSResult::getNumberOfVarValuesString(), OSResult::getOptimalPrimalVariableValues(), OSResult::getOtherVariableResultDescription(), OSResult::getOtherVariableResultEnumerationDescription(), OSResult::getOtherVariableResultEnumerationEl(), OSResult::getOtherVariableResultEnumerationNumberOfEl(), OSResult::getOtherVariableResultEnumerationValue(), OSResult::getOtherVariableResultName(), OSResult::getOtherVariableResultNumberOfEnumerations(), OSResult::getOtherVariableResultNumberOfVar(), OSResult::getOtherVariableResultValue(), OSResult::getOtherVariableResultVar(), OSResult::getOtherVariableResultVarIdx(), OSResult::getVarValue(), OSResult::getVarValueIdx(), OSResult::getVarValueName(), OSResult::getVarValueString(), OSResult::getVarValueStringIdx(), OSResult::getVarValueStringName(), IsEqual(), main(), OSResult::setBasisStatus(), OSResult::setNumberOfOtherVariableResults(), OSResult::setNumberOfPrimalVariableValues(), OSResult::setNumberOfVarValues(), OSResult::setNumberOfVarValuesString(), OSResult::setOtherOptionEnumeration(), OSResult::setOtherVariableResultDescription(), OSResult::setOtherVariableResultName(), OSResult::setOtherVariableResultNumberOfEnumerations(), OSResult::setOtherVariableResultNumberOfVar(), OSResult::setOtherVariableResultValue(), OSResult::setOtherVariableResultVar(), OSResult::setOtherVariableResultVarIdx(), OSResult::setOtherVariableResultVarName(), OSResult::setPrimalVariableValues(), OSResult::setPrimalVariableValuesDense(), OSResult::setPrimalVariableValuesSparse(), setRandom(), OSResult::setVarValue(), OSResult::setVarValueString(), tempPrintArrays(), OSrL2Gams::writeSolution(), and ~OptimizationSolution().
objectives holds the solution information for the objectives
Definition at line 2033 of file OSResult.h.
Referenced by OSResult::getBasisStatusEl(), OSResult::getBasisStatusNumberOfEl(), OSResult::getNumberOfObjValues(), OSResult::getNumberOfOtherObjectiveResults(), OSResult::getObjValue(), OSResult::getObjValueIdx(), OSResult::getObjValueName(), OSResult::getOtherObjectiveResultDescription(), OSResult::getOtherObjectiveResultEnumerationDescription(), OSResult::getOtherObjectiveResultEnumerationEl(), OSResult::getOtherObjectiveResultEnumerationNumberOfEl(), OSResult::getOtherObjectiveResultEnumerationValue(), OSResult::getOtherObjectiveResultName(), OSResult::getOtherObjectiveResultNumberOfEnumerations(), OSResult::getOtherObjectiveResultNumberOfObj(), OSResult::getOtherObjectiveResultObj(), OSResult::getOtherObjectiveResultObjIdx(), OSResult::getOtherObjectiveResultValue(), IsEqual(), main(), OSResult::setBasisStatus(), OSResult::setNumberOfObjectiveValues(), OSResult::setNumberOfObjValues(), OSResult::setNumberOfOtherObjectiveResults(), OSResult::setObjectiveValues(), OSResult::setObjectiveValuesDense(), OSResult::setObjectiveValuesSparse(), OSResult::setObjValue(), OSResult::setOtherObjectiveResultDescription(), OSResult::setOtherObjectiveResultName(), OSResult::setOtherObjectiveResultNumberOfEnumerations(), OSResult::setOtherObjectiveResultNumberOfObj(), OSResult::setOtherObjectiveResultObj(), OSResult::setOtherObjectiveResultObjIdx(), OSResult::setOtherObjectiveResultObjName(), OSResult::setOtherObjectiveResultValue(), OSResult::setOtherOptionEnumeration(), setRandom(), tempPrintArrays(), and ~OptimizationSolution().
constraints holds the solution information for the constraints
Definition at line 2038 of file OSResult.h.
Referenced by OSResult::getBasisStatusEl(), OSResult::getBasisStatusNumberOfEl(), OSResult::getDualValue(), OSResult::getDualValueIdx(), OSResult::getDualValueName(), OSResult::getNumberOfDualValues(), OSResult::getNumberOfOtherConstraintResults(), OSResult::getOptimalDualVariableValues(), OSResult::getOtherConstraintResultCon(), OSResult::getOtherConstraintResultConIdx(), OSResult::getOtherConstraintResultDescription(), OSResult::getOtherConstraintResultEnumerationDescription(), OSResult::getOtherConstraintResultEnumerationEl(), OSResult::getOtherConstraintResultEnumerationNumberOfEl(), OSResult::getOtherConstraintResultEnumerationValue(), OSResult::getOtherConstraintResultName(), OSResult::getOtherConstraintResultNumberOfCon(), OSResult::getOtherConstraintResultNumberOfEnumerations(), OSResult::getOtherConstraintResultValue(), IsEqual(), OSResult::setBasisStatus(), OSResult::setConstraintValues(), OSResult::setConstraintValuesDense(), OSResult::setDualValue(), OSResult::setDualVariableValues(), OSResult::setDualVariableValuesDense(), OSResult::setDualVariableValuesSparse(), OSResult::setNumberOfDualValues(), OSResult::setNumberOfDualVariableValues(), OSResult::setNumberOfOtherConstraintResults(), OSResult::setOtherConstraintResultCon(), OSResult::setOtherConstraintResultConIdx(), OSResult::setOtherConstraintResultConName(), OSResult::setOtherConstraintResultDescription(), OSResult::setOtherConstraintResultName(), OSResult::setOtherConstraintResultNumberOfCon(), OSResult::setOtherConstraintResultNumberOfEnumerations(), OSResult::setOtherConstraintResultValue(), OSResult::setOtherOptionEnumeration(), setRandom(), tempPrintArrays(), OSrL2Gams::writeSolution(), and ~OptimizationSolution().
otherSolutionResults is a pointer to an OtherSolutionResults object that is associated with this optimization solution
Definition at line 2043 of file OSResult.h.
Referenced by OSResult::getNumberOfOtherSolutionResults(), OSResult::getOtherSolutionResultCategory(), OSResult::getOtherSolutionResultDescription(), OSResult::getOtherSolutionResultItem(), OSResult::getOtherSolutionResultName(), OSResult::getOtherSolutionResultNumberOfItems(), IsEqual(), OSResult::setNumberOfOtherSolutionResults(), OSResult::setOtherSolutionResultCategory(), OSResult::setOtherSolutionResultDescription(), OSResult::setOtherSolutionResultItem(), OSResult::setOtherSolutionResultName(), OSResult::setOtherSolutionResultNumberOfItems(), setRandom(), and ~OptimizationSolution().
the number of other results associated with this solution
Definition at line 1193 of file OSResult.h.
status is a pointer to an OptimizationSolutionStatus object associated with this optimization solution
Definition at line 1198 of file OSResult.h.
variables holds the solution information for the variables
Definition at line 1206 of file OSResult.h.
objectives holds the solution information for the objectives
Definition at line 1211 of file OSResult.h.
constraints holds the solution information for the constraints
Definition at line 1216 of file OSResult.h.
std::vector<OtherOptimizationResult*> OptimizationSolution::other |
other is a pointer to an array of OtherOptimizationResult objects associated with this optimization solution
Definition at line 1221 of file OSResult.h.