Public Member Functions | Protected Member Functions | Protected Attributes

APriori_MIES Class Reference

Abstract class. More...

#include <APriori_MIES.h>

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

List of all members.

Public Member Functions

 APriori_MIES (unsigned n_r_, unsigned n_z_, unsigned n_d_, unsigned n_sigma_r_, unsigned n_sigma_z_, unsigned n_prob_, unsigned n_f_, unsigned mu_, unsigned rho_, unsigned kappa_, unsigned lambda_, vector< double > &lBound_r_, vector< double > &uBound_r_, vector< int > &lBound_z_, vector< int > &uBound_z_, vector< int > &lBound_d_, vector< int > &uBound_d_, double prob_min_, double prob_max_, bool disRec_r_, bool disRec_z_, bool disRec_sigma_r_, bool disRec_sigma_z_, bool disRec_prob_, bool selfAdaptation_, vector< int > &direction_, unsigned evaluations_, vector< double > &optimalF_, double initialSigma_r_, double initialSigma_z_, double initialProb_, ifstream *initialPopFile_, int randomSeed_, bool feedback_, unsigned timeOutVal_, unsigned selectDimension_, vector< unsigned > &selectFunction_)
virtual ~APriori_MIES ()

Protected Member Functions

virtual void simulate (Individual *I)=0
 Run simulator using the objective variables contained in Individual I.
virtual void writePop (time_t id)=0
 Write current population P to file.
void select ()
 Select mu Individuals from O and optionally P to form new population P.
void quickSort (vector< int > &indices, int top, int bottom, vector< Individual * > *Q, int objective)
 Sort Individuals on objective, in descending order.
int partition (vector< int > &indices, int top, int bottom, vector< Individual * > *Q, int objective)
void determineBestF ()
 Determine bestF value for current population.
virtual void writeLog (time_t elapsed, time_t id)=0
 Log time that was needed to complete generation.
bool optimumReached ()
 In case of convergence study (i.e., with known optima supplied) determine whether optima have been reached.

Protected Attributes

unsigned selectDimension
 Number of fitness functions used for selection.
vector< unsigned > selectFunction
 Ids of the fitness functions used for selection.
unsigned selectFunctionActual
 selectFunction[0] if selectDimension = 1, else 'points' to the sum of the selectFunction values (at pos n_f in vector F[] of each Individual)

Detailed Description

Abstract class.

Definition at line 37 of file APriori_MIES.h.


Constructor & Destructor Documentation

APriori_MIES::APriori_MIES ( unsigned  n_r_,
unsigned  n_z_,
unsigned  n_d_,
unsigned  n_sigma_r_,
unsigned  n_sigma_z_,
unsigned  n_prob_,
unsigned  n_f_,
unsigned  mu_,
unsigned  rho_,
unsigned  kappa_,
unsigned  lambda_,
vector< double > &  lBound_r_,
vector< double > &  uBound_r_,
vector< int > &  lBound_z_,
vector< int > &  uBound_z_,
vector< int > &  lBound_d_,
vector< int > &  uBound_d_,
double  prob_min_,
double  prob_max_,
bool  disRec_r_,
bool  disRec_z_,
bool  disRec_sigma_r_,
bool  disRec_sigma_z_,
bool  disRec_prob_,
bool  selfAdaptation_,
vector< int > &  direction_,
unsigned  evaluations_,
vector< double > &  optimalF_,
double  initialSigma_r_,
double  initialSigma_z_,
double  initialProb_,
ifstream *  initialPopFile_,
int  randomSeed_,
bool  feedback_,
unsigned  timeOutVal_,
unsigned  selectDimension_,
vector< unsigned > &  selectFunction_ 
) [inline]

Definition at line 40 of file APriori_MIES.h.

virtual APriori_MIES::~APriori_MIES (  ) [inline, virtual]

Definition at line 63 of file APriori_MIES.h.


Member Function Documentation

void APriori_MIES::determineBestF (  ) [protected]

Determine bestF value for current population.

Definition at line 125 of file APriori_MIES.cpp.

bool APriori_MIES::optimumReached (  ) [protected, virtual]

In case of convergence study (i.e., with known optima supplied) determine whether optima have been reached.

Implements MixedIntegerES.

Definition at line 154 of file APriori_MIES.cpp.

int APriori_MIES::partition ( vector< int > &  indices,
int  top,
int  bottom,
vector< Individual * > *  Q,
int  objective 
) [protected]

Definition at line 87 of file APriori_MIES.cpp.

void APriori_MIES::quickSort ( vector< int > &  indices,
int  top,
int  bottom,
vector< Individual * > *  Q,
int  objective 
) [protected]

Sort Individuals on objective, in descending order.

Definition at line 69 of file APriori_MIES.cpp.

void APriori_MIES::select (  ) [protected, virtual]

Select mu Individuals from O and optionally P to form new population P.

Implements MixedIntegerES.

Definition at line 9 of file APriori_MIES.cpp.

virtual void APriori_MIES::simulate ( Individual I ) [protected, pure virtual]

Run simulator using the objective variables contained in Individual I.

Implements MixedIntegerES.

virtual void APriori_MIES::writeLog ( time_t  elapsed,
time_t  id 
) [protected, pure virtual]

Log time that was needed to complete generation.

Implements MixedIntegerES.

virtual void APriori_MIES::writePop ( time_t  id ) [protected, pure virtual]

Write current population P to file.

Implements MixedIntegerES.


Member Data Documentation

unsigned APriori_MIES::selectDimension [protected]

Number of fitness functions used for selection.

Definition at line 67 of file APriori_MIES.h.

vector<unsigned> APriori_MIES::selectFunction [protected]

Ids of the fitness functions used for selection.

Definition at line 70 of file APriori_MIES.h.

unsigned APriori_MIES::selectFunctionActual [protected]

selectFunction[0] if selectDimension = 1, else 'points' to the sum of the selectFunction values (at pos n_f in vector F[] of each Individual)

Definition at line 75 of file APriori_MIES.h.


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