OS  2.9.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
OptimizationSolution Class Reference

The OptimizationSolution Class. More...

#include <OSResult.h>

+ Collaboration diagram for OptimizationSolution:

Public Member Functions

 OptimizationSolution ()
 Default constructor. More...
 
 ~OptimizationSolution ()
 Class destructor. More...
 
bool IsEqual (OptimizationSolution *that)
 A function to check for the equality of two objects. More...
 
bool setRandom (double density, bool conformant)
 A function to make a random instance of this class. More...
 

Public Attributes

int targetObjectiveIdx
 the index of the objective function for which we are reporting solution information More...
 
std::string targetObjectiveName
 an optional name of the objective function for which we are reporting solution information More...
 
bool weightedObjectives
 a marker to track whether the objectives are weighted More...
 
OptimizationSolutionStatusstatus
 status is a pointer to an OptimizationSolutionStatus object associated with this optimization solution More...
 
std::string message
 a message associated with this solution More...
 
VariableSolutionvariables
 variables holds the solution information for the variables More...
 
ObjectiveSolutionobjectives
 objectives holds the solution information for the objectives More...
 
ConstraintSolutionconstraints
 constraints holds the solution information for the constraints More...
 
OtherSolutionResultsotherSolutionResults
 otherSolutionResults is a pointer to an OtherSolutionResults object that is associated with this optimization solution More...
 

Detailed Description

The OptimizationSolution Class.

Author
Horand Gassmann, Jun Ma, Kipp Martin
Version
1.0, 03/14/2004
Since
OS 1.0
Remarks
A class for reporting the various components of an optimization solution.

Definition at line 2032 of file OSResult.h.

Constructor & Destructor Documentation

OptimizationSolution::OptimizationSolution ( )

Default constructor.

OptimizationSolution::~OptimizationSolution ( )

Class destructor.

Member Function Documentation

bool OptimizationSolution::IsEqual ( OptimizationSolution that)

A function to check for the equality of two objects.

bool OptimizationSolution::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" attributes and <XXX> children)

Member Data Documentation

int OptimizationSolution::targetObjectiveIdx

the index of the objective function for which we are reporting solution information

Definition at line 2039 of file OSResult.h.

std::string OptimizationSolution::targetObjectiveName

an optional name of the objective function for which we are reporting solution information

Definition at line 2044 of file OSResult.h.

bool OptimizationSolution::weightedObjectives

a marker to track whether the objectives are weighted

Definition at line 2047 of file OSResult.h.

OptimizationSolutionStatus* OptimizationSolution::status

status is a pointer to an OptimizationSolutionStatus object associated with this optimization solution

Definition at line 2052 of file OSResult.h.

std::string OptimizationSolution::message

a message associated with this solution

Definition at line 2055 of file OSResult.h.

VariableSolution* OptimizationSolution::variables

variables holds the solution information for the variables

Definition at line 2060 of file OSResult.h.

ObjectiveSolution* OptimizationSolution::objectives

objectives holds the solution information for the objectives

Definition at line 2065 of file OSResult.h.

ConstraintSolution* OptimizationSolution::constraints

constraints holds the solution information for the constraints

Definition at line 2070 of file OSResult.h.

OtherSolutionResults* OptimizationSolution::otherSolutionResults

otherSolutionResults is a pointer to an OtherSolutionResults object that is associated with this optimization solution

Definition at line 2075 of file OSResult.h.


The documentation for this class was generated from the following file: