ConstraintSolution Class Reference

The ConstraintSolution Class. More...

#include <OSResult.h>

Collaboration diagram for ConstraintSolution:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Public Attributes

int numberOfOtherConstraintResults
 the number of types of constraint function results other than the basic constraint function values
DualVariableValuesdualValues
 a pointer to an array of DualVariableValues objects
BasisStatusbasisStatus
 a pointer to a BasisStatus object
OtherConstraintResult ** other
 a pointer to an array of other pointer objects for constraint functions
DualVariableValuesdualValues
 a pointer to an array of DualVariableValues objects
OtherConstraintResult ** other
 a pointer to an array of other pointer objects for constraint functions

Detailed Description

The ConstraintSolution 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 1816 of file OSResult.h.


Constructor & Destructor Documentation

ConstraintSolution::ConstraintSolution (  ) 

Default constructor.

Definition at line 887 of file OSResult.cpp.

ConstraintSolution::~ConstraintSolution (  ) 

Class destructor.

Definition at line 899 of file OSResult.cpp.

References basisStatus, dualValues, numberOfOtherConstraintResults, and other.

ConstraintSolution::ConstraintSolution (  ) 

Default constructor.

ConstraintSolution::~ConstraintSolution (  ) 

Class destructor.


Member Function Documentation

bool ConstraintSolution::IsEqual ( ConstraintSolution that  ) 

A function to check for the equality of two objects.

Definition at line 7407 of file OSResult.cpp.

References basisStatus, dualValues, numberOfOtherConstraintResults, and other.

bool ConstraintSolution::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 8779 of file OSResult.cpp.

References basisStatus, dualValues, n, numberOfOtherConstraintResults, OSRand(), other, BasisStatus::setRandom(), DualVariableValues::setRandom(), and OtherConstraintResult::setRandom().

Referenced by OptimizationSolution::setRandom().


Member Data Documentation

int ConstraintSolution::numberOfOtherConstraintResults

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

Definition at line 1824 of file OSResult.h.

Referenced by OSResult::getNumberOfOtherConstraintResults(), OSResult::getOtherConstraintResultCon(), OSResult::getOtherConstraintResultConIdx(), OSResult::getOtherConstraintResultDescription(), OSResult::getOtherConstraintResultEnumerationDescription(), OSResult::getOtherConstraintResultEnumerationEl(), OSResult::getOtherConstraintResultEnumerationNumberOfEl(), OSResult::getOtherConstraintResultEnumerationValue(), OSResult::getOtherConstraintResultName(), OSResult::getOtherConstraintResultNumberOfCon(), OSResult::getOtherConstraintResultNumberOfEnumerations(), OSResult::getOtherConstraintResultValue(), IsEqual(), OSResult::setNumberOfOtherConstraintResults(), setRandom(), and ~ConstraintSolution().

DualVariableValues* ConstraintSolution::dualValues

a pointer to an array of DualVariableValues objects

Definition at line 1827 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 ~ConstraintSolution().

BasisStatus* ConstraintSolution::basisStatus

a pointer to a BasisStatus object

Definition at line 1830 of file OSResult.h.

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

OtherConstraintResult** ConstraintSolution::other

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

Definition at line 1835 of file OSResult.h.

Referenced by OSResult::getNumberOfOtherConstraintResults(), OSResult::getOtherConstraintResultCon(), OSResult::getOtherConstraintResultConIdx(), OSResult::getOtherConstraintResultDescription(), OSResult::getOtherConstraintResultEnumerationDescription(), OSResult::getOtherConstraintResultEnumerationEl(), OSResult::getOtherConstraintResultEnumerationNumberOfEl(), OSResult::getOtherConstraintResultEnumerationValue(), OSResult::getOtherConstraintResultName(), OSResult::getOtherConstraintResultNumberOfCon(), OSResult::getOtherConstraintResultNumberOfEnumerations(), OSResult::getOtherConstraintResultValue(), IsEqual(), OSResult::setNumberOfOtherConstraintResults(), OSResult::setOtherConstraintResultCon(), OSResult::setOtherConstraintResultConIdx(), OSResult::setOtherConstraintResultConName(), OSResult::setOtherConstraintResultDescription(), OSResult::setOtherConstraintResultName(), OSResult::setOtherConstraintResultNumberOfCon(), OSResult::setOtherConstraintResultNumberOfEnumerations(), OSResult::setOtherConstraintResultValue(), OSResult::setOtherOptionEnumeration(), setRandom(), tempPrintArrays(), and ~ConstraintSolution().

DualVariableValues* ConstraintSolution::dualValues

a pointer to an array of DualVariableValues objects

Definition at line 1107 of file OSResult.h.

OtherConstraintResult** ConstraintSolution::other

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

Definition at line 1112 of file OSResult.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 10 03:12:25 2011 by  doxygen 1.4.7