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

ACConfig Class Reference

#include <ACConfig.h>

List of all members.

Public Methods

 ACConfig (int pop=50, int gen=MAXINT, int fit_scale=1, int cross_prob=85, int mut_prob=85, int elit=true, int penalty=0, int cross_type=1, int mut_app_prob=65, int mut_insert_prob=5, int mut_delete_prob=15, int mut_change_prob=15, int mut_permute_prob=0, int use_sum_fit=1, int num_min=1000, int us_w=1)
int populationSize () const
int numOfGenerations () const
bool haveFitnessScaling () const
bool useSumFitness () const
double chanceOfCrossover () const
double chanceOfMutation () const
int numOfElitistSelection () const
int penaltyRate () const
int crossoverType () const
double chanceOfMutationAppend () const
double chanceOfMutationInsert () const
double chanceOfMutationDelete () const
double chanceOfMutationChange () const
double chanceOfMutationPermute () const
int numMinmizeAfterOf () const
bool useWhitehead () const
void setVariable (const char *, int)

Private Methods

void readFrom (istream &istr)
void printOn (ostream &ostr) const

Private Attributes

int population
int generations
int fitness_scale
int crossover_prob
int mutation_prob
int elittest
int penalty_rate
int crossover_type
int mutation_app_prob
int mutation_insert_prob
int mutation_delete_prob
int mutation_change_prob
int mutation_permute_prob
int use_sum_fitness
int num_min_after
int use_whitehead

Friends

ostream& operator<< (ostream &ostr, const ACConfig &C)
istream& operator>> (istream &istr, ACConfig &C)


Constructor & Destructor Documentation

ACConfig::ACConfig ( int pop = 50,
int gen = MAXINT,
int fit_scale = 1,
int cross_prob = 85,
int mut_prob = 85,
int elit = true,
int penalty = 0,
int cross_type = 1,
int mut_app_prob = 65,
int mut_insert_prob = 5,
int mut_delete_prob = 15,
int mut_change_prob = 15,
int mut_permute_prob = 0,
int use_sum_fit = 1,
int num_min = 1000,
int us_w = 1 )
 


Member Function Documentation

int ACConfig::populationSize ( ) const [inline]
 

Definition at line 63 of file ACConfig.h.

int ACConfig::numOfGenerations ( ) const [inline]
 

Definition at line 65 of file ACConfig.h.

bool ACConfig::haveFitnessScaling ( ) const [inline]
 

Definition at line 67 of file ACConfig.h.

bool ACConfig::useSumFitness ( ) const [inline]
 

Definition at line 69 of file ACConfig.h.

double ACConfig::chanceOfCrossover ( ) const [inline]
 

Definition at line 71 of file ACConfig.h.

double ACConfig::chanceOfMutation ( ) const [inline]
 

Definition at line 73 of file ACConfig.h.

int ACConfig::numOfElitistSelection ( ) const [inline]
 

Definition at line 75 of file ACConfig.h.

int ACConfig::penaltyRate ( ) const [inline]
 

Definition at line 77 of file ACConfig.h.

int ACConfig::crossoverType ( ) const [inline]
 

Definition at line 79 of file ACConfig.h.

double ACConfig::chanceOfMutationAppend ( ) const [inline]
 

Definition at line 81 of file ACConfig.h.

double ACConfig::chanceOfMutationInsert ( ) const [inline]
 

Definition at line 85 of file ACConfig.h.

double ACConfig::chanceOfMutationDelete ( ) const [inline]
 

Definition at line 89 of file ACConfig.h.

double ACConfig::chanceOfMutationChange ( ) const [inline]
 

Definition at line 93 of file ACConfig.h.

double ACConfig::chanceOfMutationPermute ( ) const [inline]
 

Definition at line 97 of file ACConfig.h.

int ACConfig::numMinmizeAfterOf ( ) const [inline]
 

Definition at line 101 of file ACConfig.h.

bool ACConfig::useWhitehead ( ) const [inline]
 

Definition at line 105 of file ACConfig.h.

void ACConfig::setVariable ( const char *,
int )
 

void ACConfig::readFrom ( istream & istr ) [private]
 

Referenced by operator>>().

void ACConfig::printOn ( ostream & ostr ) const [private]
 

Referenced by operator<<().


Friends And Related Function Documentation

ostream & operator<< ( ostream & ostr,
const ACConfig & C ) [friend]
 

Definition at line 117 of file ACConfig.h.

istream & operator>> ( istream & istr,
ACConfig & C ) [friend]
 

Definition at line 123 of file ACConfig.h.


Member Data Documentation

int ACConfig::population [private]
 

Definition at line 152 of file ACConfig.h.

int ACConfig::generations [private]
 

Definition at line 153 of file ACConfig.h.

int ACConfig::fitness_scale [private]
 

Definition at line 154 of file ACConfig.h.

int ACConfig::crossover_prob [private]
 

Definition at line 155 of file ACConfig.h.

int ACConfig::mutation_prob [private]
 

Definition at line 156 of file ACConfig.h.

int ACConfig::elittest [private]
 

Definition at line 157 of file ACConfig.h.

int ACConfig::penalty_rate [private]
 

Definition at line 158 of file ACConfig.h.

int ACConfig::crossover_type [private]
 

Definition at line 159 of file ACConfig.h.

int ACConfig::mutation_app_prob [private]
 

Definition at line 160 of file ACConfig.h.

int ACConfig::mutation_insert_prob [private]
 

Definition at line 161 of file ACConfig.h.

int ACConfig::mutation_delete_prob [private]
 

Definition at line 162 of file ACConfig.h.

int ACConfig::mutation_change_prob [private]
 

Definition at line 163 of file ACConfig.h.

int ACConfig::mutation_permute_prob [private]
 

Definition at line 164 of file ACConfig.h.

int ACConfig::use_sum_fitness [private]
 

Definition at line 165 of file ACConfig.h.

int ACConfig::num_min_after [private]
 

Definition at line 166 of file ACConfig.h.

int ACConfig::use_whitehead [private]
 

Definition at line 167 of file ACConfig.h.


The documentation for this class was generated from the following file:
Generated at Tue Jun 19 09:49:47 2001 for Magnus Classes by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001