Classes | Public Member Functions | Protected Member Functions | Protected Attributes

RobustLHSR Class Reference

#include <RobustLHSR.h>

Inheritance diagram for RobustLHSR:
Inheritance graph
[legend]
Collaboration diagram for RobustLHSR:
Collaboration graph
[legend]

List of all members.

Classes

struct  ArchiveTuple
struct  Point

Public Member Functions

 RobustLHSR (unsigned sampleSetSize_, double stdInputNoise_)
virtual ~RobustLHSR ()
void robustSimulate (int *xnom, int nnom)
unsigned getEvalsUsed ()
void updateTotalGen (unsigned &totalGen, unsigned currGen, unsigned evaluations, unsigned lambda)

Protected Member Functions

void robustSimulate (Individual *I, int *xnom, int numVar)
void archiveSelection (Individual *I, int *xnom, int numVar)
 Approximate Latin Hypercube reference set by selecting suitable ArchiveTuples.
void LHS (Individual *I, int *xnom, int numVar)
 Generate Latin Hypercube reference set based on supplied object variables and stdInputNoise; for discrete nominal object variables.
unsigned getClosestArchiveTuple (unsigned refSetIndex)
 Retrieve ArchiveTuple closest to Point refSetIndex in the reference set.
double EuclidianDistanceD (unsigned refSetIndex, unsigned archiveIndex)
 Calculate Euclidian distance between Point refSetIndex in the reference set and ArchiveTuple archiveIndex in the archive; for discrete nominal object variables.
bool noCloserRefPoint (refSetIndex, archiveIndex)
 Check that ArchiveTuple archiveIndex is not closer to another Point in the reference set.
double weightD (vector< int > &D, Individual *I, int *xnom)
 Retrieve probability of I->D (or xnom) being perturbed into archive[selectedArchiveTuples[i]]->D.
void cleanupAfterSim ()

Protected Attributes

unsigned evalsUsed
vector< ArchiveTuple * > archive
vector< Point * > referenceSet
vector< int > selectedArchiveTuples
vector< Point * > candidates

Detailed Description

Definition at line 6 of file RobustLHSR.h.


Constructor & Destructor Documentation

RobustLHSR::RobustLHSR ( unsigned  sampleSetSize_,
double  stdInputNoise_ 
) [inline]

Definition at line 9 of file RobustLHSR.h.

virtual RobustLHSR::~RobustLHSR (  ) [virtual]

Member Function Documentation

void RobustLHSR::archiveSelection ( Individual I,
int *  xnom,
int  numVar 
) [protected]

Approximate Latin Hypercube reference set by selecting suitable ArchiveTuples.

Definition at line 76 of file RobustLHSR.cpp.

void RobustLHSR::cleanupAfterSim (  ) [protected]

Definition at line 160 of file RobustLHSR.cpp.

double RobustLHSR::EuclidianDistanceD ( unsigned  refSetIndex,
unsigned  archiveIndex 
) [protected]

Calculate Euclidian distance between Point refSetIndex in the reference set and ArchiveTuple archiveIndex in the archive; for discrete nominal object variables.

Definition at line 126 of file RobustLHSR.cpp.

unsigned RobustLHSR::getClosestArchiveTuple ( unsigned  refSetIndex ) [protected]

Retrieve ArchiveTuple closest to Point refSetIndex in the reference set.

Definition at line 105 of file RobustLHSR.cpp.

unsigned RobustLHSR::getEvalsUsed (  ) [inline]

Definition at line 14 of file RobustLHSR.h.

void RobustLHSR::LHS ( Individual I,
int *  xnom,
int  numVar 
) [protected]

Generate Latin Hypercube reference set based on supplied object variables and stdInputNoise; for discrete nominal object variables.

Definition at line 99 of file RobustLHSR.cpp.

bool RobustLHSR::noCloserRefPoint ( refSetIndex  ,
archiveIndex   
) [protected]

Check that ArchiveTuple archiveIndex is not closer to another Point in the reference set.

Definition at line 137 of file RobustLHSR.cpp.

void RobustLHSR::robustSimulate ( int *  xnom,
int  nnom 
) [inline]

Definition at line 12 of file RobustLHSR.h.

void RobustLHSR::robustSimulate ( Individual I,
int *  xnom,
int  numVar 
) [protected, virtual]

Implements Robust.

Definition at line 25 of file RobustLHSR.cpp.

void RobustLHSR::updateTotalGen ( unsigned &  totalGen,
unsigned  currGen,
unsigned  evaluations,
unsigned  lambda 
)

Definition at line 15 of file RobustLHSR.cpp.

double RobustLHSR::weightD ( vector< int > &  D,
Individual I,
int *  xnom 
) [protected]

Retrieve probability of I->D (or xnom) being perturbed into archive[selectedArchiveTuples[i]]->D.

Definition at line 155 of file RobustLHSR.cpp.


Member Data Documentation

vector<ArchiveTuple*> RobustLHSR::archive [protected]

Definition at line 47 of file RobustLHSR.h.

vector<Point*> RobustLHSR::candidates [protected]

Definition at line 51 of file RobustLHSR.h.

unsigned RobustLHSR::evalsUsed [protected]

Definition at line 46 of file RobustLHSR.h.

vector<Point*> RobustLHSR::referenceSet [protected]

Definition at line 49 of file RobustLHSR.h.

vector<int> RobustLHSR::selectedArchiveTuples [protected]

Definition at line 50 of file RobustLHSR.h.


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