Main Page | Namespace List | Class Hierarchy | Compound List | File List | Compound Members | File Members

Paes Class Reference

#include <Paes.h>

List of all members.

Public Member Functions

 Paes (MultiobjectiveProblem *problemToSolve, MutationOperator mutationOperator)
 Constructor.

void start ()
void addToArchive (Individual *solution)
bool archiveSolution (Individual *solution)
int compareToArchive (Individual *solution)
 Checks if the solution is dominated by any member of the archive.

void readConfigurationData ()
 Reads parameters from a file named "paes.cfg".

void printStatistics ()
 Print execution statistics.

void printToFiles (char *variableFile, char *functionFile)
 Prints the values of the variables and the objective functions.


Private Attributes

int depth_
int numberOfGenes_
int maximumArchiveLength_
int numberOfIterations_
double mutationProbability_
int numberOfFitnessEvaluations_
double distributionIndexForMutation_
double perturbationForMutation_
MutationOperator mutationOperator_
Random random_
int seed_
MultiobjectiveProblemproblem_
 Problem to be solved.

time_t startTime_
time_t endTime_
IndividualcurrentSolution_
IndividualmutantSolution_
PopulationarchiveOfSolutions_
AdaptiveGridadaptiveGrid_
int numberOfGridDivisions_
int printFrequency_


Constructor & Destructor Documentation

Paes::Paes MultiobjectiveProblem problemToSolve,
MutationOperator  mutationOperator
 

Definition at line 15 of file Paes.cpp.

References adaptiveGrid_, archiveOfSolutions_, depth_, distributionIndexForMutation_, Random::initrandom(), maximumArchiveLength_, mutationOperator_, mutationProbability_, numberOfFitnessEvaluations_, MultiobjectiveProblem::numberOfFunctions_, numberOfIterations_, perturbationForMutation_, printFrequency_, problem_, random_, Random::randomize(), Random::randreal2(), readConfigurationData(), Random::Rseed, and seed_.


Member Function Documentation

void Paes::addToArchive Individual solution  ) 
 

Definition at line 151 of file Paes.cpp.

References Population::addIndividual(), and archiveOfSolutions_.

Referenced by archiveSolution(), and start().

bool Paes::archiveSolution Individual solution  ) 
 

Returns:

Definition at line 181 of file Paes.cpp.

References adaptiveGrid_, Population::addIndividual(), addToArchive(), archiveOfSolutions_, Population::deleteIth(), Individual::dominanceTest(), Population::getIth(), Population::getPopulationSize(), Individual::gridLocation_, Individual::identicalFitness(), maximumArchiveLength_, and AdaptiveGrid::mostCrowdedHypercube_.

Referenced by start().

int Paes::compareToArchive Individual solution  ) 
 

Returns:
0 if the solution is non-dominated, -1 if it is dominated, 1 if it dominates all the members of the archive

Definition at line 160 of file Paes.cpp.

References archiveOfSolutions_, Individual::dominanceTest(), Population::getIth(), and Population::getPopulationSize().

Referenced by start().

void Paes::printStatistics  ) 
 

Definition at line 340 of file Paes.cpp.

References endTime_, numberOfFitnessEvaluations_, and startTime_.

Referenced by main().

void Paes::printToFiles char *  genotypeFileName,
char *  fitnessFileName
 

Prints the values of the variables and the objective functions to the files passed as parameters

Parameters:
variableFileName The name of the file to store the decision variables
functionFileName The name of the file to store the values of the objective functions

Definition at line 275 of file Paes.cpp.

References archiveOfSolutions_, Population::printFitness(), and Population::printGenotype().

Referenced by main().

void Paes::readConfigurationData  ) 
 

Definition at line 284 of file Paes.cpp.

References depth_, maximumArchiveLength_, mutationProbability_, numberOfIterations_, printFrequency_, and seed_.

Referenced by Paes().

void Paes::start  ) 
 

Returns:

Definition at line 56 of file Paes.cpp.

References adaptiveGrid_, addToArchive(), archiveOfSolutions_, archiveSolution(), BIT_FLIP, Individual::bitFlipMutation(), compareToArchive(), currentSolution_, distributionIndexForMutation_, Individual::dominanceTest(), endTime_, MultiobjectiveProblem::evaluate(), AdaptiveGrid::findLocation(), Population::getPopulationSize(), AdaptiveGrid::hypercube_, mutantSolution_, mutationOperator_, mutationProbability_, numberOfFitnessEvaluations_, numberOfIterations_, perturbationForMutation_, POLYNOMIAL, Individual::polynomialMutation(), Individual::printFitness(), printFrequency_, problem_, RANDOM, random_, Individual::randomMutation(), startTime_, UNIFORM, Individual::uniformMutation(), and AdaptiveGrid::updateGridLocations().

Referenced by main().


Member Data Documentation

AdaptiveGrid* Paes::adaptiveGrid_ [private]
 

Definition at line 66 of file Paes.h.

Referenced by archiveSolution(), Paes(), and start().

Population* Paes::archiveOfSolutions_ [private]
 

Definition at line 64 of file Paes.h.

Referenced by addToArchive(), archiveSolution(), compareToArchive(), Paes(), printToFiles(), and start().

Individual* Paes::currentSolution_ [private]
 

Definition at line 62 of file Paes.h.

Referenced by start().

int Paes::depth_ [private]
 

Definition at line 28 of file Paes.h.

Referenced by Paes(), and readConfigurationData().

double Paes::distributionIndexForMutation_ [private]
 

Definition at line 35 of file Paes.h.

Referenced by Paes(), and start().

time_t Paes::endTime_ [private]
 

Definition at line 52 of file Paes.h.

Referenced by printStatistics(), and start().

int Paes::maximumArchiveLength_ [private]
 

Definition at line 30 of file Paes.h.

Referenced by archiveSolution(), Paes(), and readConfigurationData().

Individual* Paes::mutantSolution_ [private]
 

Definition at line 63 of file Paes.h.

Referenced by start().

MutationOperator Paes::mutationOperator_ [private]
 

Definition at line 38 of file Paes.h.

Referenced by Paes(), and start().

double Paes::mutationProbability_ [private]
 

Definition at line 32 of file Paes.h.

Referenced by Paes(), readConfigurationData(), and start().

int Paes::numberOfFitnessEvaluations_ [private]
 

Definition at line 33 of file Paes.h.

Referenced by Paes(), printStatistics(), and start().

int Paes::numberOfGenes_ [private]
 

Definition at line 29 of file Paes.h.

int Paes::numberOfGridDivisions_ [private]
 

Definition at line 67 of file Paes.h.

int Paes::numberOfIterations_ [private]
 

Definition at line 31 of file Paes.h.

Referenced by Paes(), readConfigurationData(), and start().

double Paes::perturbationForMutation_ [private]
 

Definition at line 36 of file Paes.h.

Referenced by Paes(), and start().

int Paes::printFrequency_ [private]
 

Definition at line 69 of file Paes.h.

Referenced by Paes(), readConfigurationData(), and start().

MultiobjectiveProblem* Paes::problem_ [private]
 

Definition at line 49 of file Paes.h.

Referenced by Paes(), and start().

Random Paes::random_ [private]
 

Definition at line 46 of file Paes.h.

Referenced by Paes(), and start().

int Paes::seed_ [private]
 

Definition at line 47 of file Paes.h.

Referenced by Paes(), and readConfigurationData().

time_t Paes::startTime_ [private]
 

Definition at line 51 of file Paes.h.

Referenced by printStatistics(), and start().


The documentation for this class was generated from the following files:
Generated on Wed Feb 11 10:38:04 2004 for Paes by doxygen 1.3.3