ObjectiveSolution Class Reference

The ObjectiveSolution Class. More...

#include <OSResult.h>

Collaboration diagram for ObjectiveSolution:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ObjectiveSolution ()
 Default constructor.
 ~ObjectiveSolution ()
 Class destructor.
bool IsEqual (ObjectiveSolution *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.
 ObjectiveSolution ()
 Default constructor.
 ~ObjectiveSolution ()
 Class destructor.

Public Attributes

int numberOfOtherObjectiveResults
 the number of types of objective function results other than the basic objective function values
ObjectiveValuesvalues
 a pointer to an array of ObjectiveValues objects
BasisStatusbasisStatus
 a pointer to a BasisStatus object
OtherObjectiveResult ** other
 a pointer to an array of other pointer objects for objective functions
ObjectiveValuesvalues
 a pointer to an array of ObjectiveValues objects
OtherObjectiveResult ** other
 a pointer to an array of other pointer objects for objective functions

Detailed Description

The ObjectiveSolution Class.

Author:
Robert Fourer, Horand Gassmann, Jun Ma, Kipp Martin
Version:
1.0, 03/14/2004
Since:
OS 1.0
Remarks:
A class for reporting all of the types of solution values associated with objective functions.

Definition at line 1507 of file OSResult.h.


Constructor & Destructor Documentation

ObjectiveSolution::ObjectiveSolution (  ) 

Default constructor.

Definition at line 733 of file OSResult.cpp.

ObjectiveSolution::~ObjectiveSolution (  ) 

Class destructor.

Definition at line 745 of file OSResult.cpp.

References basisStatus, numberOfOtherObjectiveResults, other, and values.

ObjectiveSolution::ObjectiveSolution (  ) 

Default constructor.

ObjectiveSolution::~ObjectiveSolution (  ) 

Class destructor.


Member Function Documentation

bool ObjectiveSolution::IsEqual ( ObjectiveSolution that  ) 

A function to check for the equality of two objects.

Definition at line 7128 of file OSResult.cpp.

References basisStatus, numberOfOtherObjectiveResults, other, and values.

bool ObjectiveSolution::setRandom ( double  density,
bool  conformant 
)

A function to make a random instance of this class.

Parameters:
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 8630 of file OSResult.cpp.

References basisStatus, n, numberOfOtherObjectiveResults, OSRand(), other, BasisStatus::setRandom(), ObjectiveValues::setRandom(), OtherObjectiveResult::setRandom(), and values.

Referenced by OptimizationSolution::setRandom().


Member Data Documentation

int ObjectiveSolution::numberOfOtherObjectiveResults

the number of types of objective function results other than the basic objective function values

Definition at line 1514 of file OSResult.h.

Referenced by OSResult::getNumberOfOtherObjectiveResults(), OSResult::getOtherObjectiveResultDescription(), OSResult::getOtherObjectiveResultEnumerationDescription(), OSResult::getOtherObjectiveResultEnumerationEl(), OSResult::getOtherObjectiveResultEnumerationNumberOfEl(), OSResult::getOtherObjectiveResultEnumerationValue(), OSResult::getOtherObjectiveResultName(), OSResult::getOtherObjectiveResultNumberOfEnumerations(), OSResult::getOtherObjectiveResultNumberOfObj(), OSResult::getOtherObjectiveResultObj(), OSResult::getOtherObjectiveResultObjIdx(), OSResult::getOtherObjectiveResultValue(), IsEqual(), OSResult::setNumberOfOtherObjectiveResults(), setRandom(), and ~ObjectiveSolution().

ObjectiveValues* ObjectiveSolution::values

a pointer to an array of ObjectiveValues objects

Definition at line 1517 of file OSResult.h.

Referenced by OSResult::getNumberOfObjValues(), OSResult::getObjValue(), OSResult::getObjValueIdx(), OSResult::getObjValueName(), IsEqual(), main(), OSResult::setNumberOfObjectiveValues(), OSResult::setNumberOfObjValues(), OSResult::setObjectiveValues(), OSResult::setObjectiveValuesDense(), OSResult::setObjectiveValuesSparse(), OSResult::setObjValue(), setRandom(), and ~ObjectiveSolution().

BasisStatus* ObjectiveSolution::basisStatus

a pointer to a BasisStatus object

Definition at line 1520 of file OSResult.h.

Referenced by OSResult::getBasisStatusEl(), OSResult::getBasisStatusNumberOfEl(), IsEqual(), OSResult::setBasisStatus(), setRandom(), tempPrintArrays(), and ~ObjectiveSolution().

OtherObjectiveResult** ObjectiveSolution::other

a pointer to an array of other pointer objects for objective functions

Definition at line 1525 of file OSResult.h.

Referenced by OSResult::getNumberOfOtherObjectiveResults(), OSResult::getOtherObjectiveResultDescription(), OSResult::getOtherObjectiveResultEnumerationDescription(), OSResult::getOtherObjectiveResultEnumerationEl(), OSResult::getOtherObjectiveResultEnumerationNumberOfEl(), OSResult::getOtherObjectiveResultEnumerationValue(), OSResult::getOtherObjectiveResultName(), OSResult::getOtherObjectiveResultNumberOfEnumerations(), OSResult::getOtherObjectiveResultNumberOfObj(), OSResult::getOtherObjectiveResultObj(), OSResult::getOtherObjectiveResultObjIdx(), OSResult::getOtherObjectiveResultValue(), IsEqual(), OSResult::setNumberOfOtherObjectiveResults(), OSResult::setOtherObjectiveResultDescription(), OSResult::setOtherObjectiveResultName(), OSResult::setOtherObjectiveResultNumberOfEnumerations(), OSResult::setOtherObjectiveResultNumberOfObj(), OSResult::setOtherObjectiveResultObj(), OSResult::setOtherObjectiveResultObjIdx(), OSResult::setOtherObjectiveResultObjName(), OSResult::setOtherObjectiveResultValue(), OSResult::setOtherOptionEnumeration(), setRandom(), tempPrintArrays(), and ~ObjectiveSolution().

ObjectiveValues* ObjectiveSolution::values

a pointer to an array of ObjectiveValues objects

Definition at line 879 of file OSResult.h.

OtherObjectiveResult** ObjectiveSolution::other

a pointer to an array of other pointer objects for objective functions

Definition at line 884 of file OSResult.h.


The documentation for this class was generated from the following files:
Generated on Wed Nov 30 03:11:48 2011 by  doxygen 1.4.7