pga_util.c File Reference


Functions

void read_GAparms (parm_struct *parm, FILE *fp)
void write_GAparms (parm_struct *parm, FILE *fp)
void print_best (int iniche, parm_struct *parm, bestpop *best)
void print_pop (int iniche, parm_struct *parm, population *pop)
void statistics_pop (int igen, int iniche, parm_struct *parm, population *pop, bestpop *best, FILE *fp)
void evaluate_pop (int iniche, parm_struct *parm, population *pop)
double evaluate_individual (int iniche, parm_struct *parm, int *chromosome)
void make_name (char *prefix, int n, char *suffix, char *name)
void make_name_2 (char *prefix, int n, int j, char *suffix, char *name)
void filter (parm_struct *parm, int *chromosome, double *array)
double str_to_double (int *chromosome, int start, int n, double min, double max)
int str_to_int (int *chromosome, int start, int n, double min, double max)
void initialize_best (parm_struct *parm, bestpop *best, int iniche)
void initialize_pop (parm_struct *parm, population *pop, int iniche)
void mutate_pop (parm_struct *parm, population *pop)
void best_pop (population *pop, bestpop *oldbest, bestpop *newbest)
int compare_bsort (best_sort_struct *a, best_sort_struct *b)
void select_pop_stepftn (parm_struct *parm, population *pop)
void select_pop_stepftn_old (parm_struct *parm, population *pop)
void select_pop_roulette (parm_struct *parm, population *pop)
int compare_pop (individual *a, individual *b)
void crossover_pop (parm_struct *parm, population *oldpop, population *newpop, int igen)
void crossover_pop_old (parm_struct *parm, population *oldpop, population *newpop, int igen)
void crossover (parm_struct *parm, individual *parent1, individual *parent2, individual *child1, individual *child2)
double hamming_distance (parm_struct *parm, individual *i1, individual *i2)
double GAran (int iseed)
double ran3 (int *idum)
void degray (int *chr_gray, int *chr_bin, int start, int n)
int max (int i, int j)
int min (int i, int j)
double rmax (double i, double j)
double rmin (double i, double j)

Function Documentation

void best_pop ( population pop,
bestpop oldbest,
bestpop newbest 
)

int compare_bsort ( best_sort_struct a,
best_sort_struct b 
)

int compare_pop ( individual a,
individual b 
)

void crossover ( parm_struct parm,
individual parent1,
individual parent2,
individual child1,
individual child2 
)

void crossover_pop ( parm_struct parm,
population oldpop,
population newpop,
int  igen 
)

void crossover_pop_old ( parm_struct parm,
population oldpop,
population newpop,
int  igen 
)

void degray ( int *  chr_gray,
int *  chr_bin,
int  start,
int  n 
)

double evaluate_individual ( int  iniche,
parm_struct parm,
int *  chromosome 
)

void evaluate_pop ( int  iniche,
parm_struct parm,
population pop 
)

void filter ( parm_struct parm,
int *  chromosome,
double *  array 
)

double GAran ( int  iseed  ) 

double hamming_distance ( parm_struct parm,
individual i1,
individual i2 
)

void initialize_best ( parm_struct parm,
bestpop best,
int  iniche 
)

void initialize_pop ( parm_struct parm,
population pop,
int  iniche 
)

void make_name ( char *  prefix,
int  n,
char *  suffix,
char *  name 
)

void make_name_2 ( char *  prefix,
int  n,
int  j,
char *  suffix,
char *  name 
)

int max ( int  i,
int  j 
)

int min ( int  i,
int  j 
)

void mutate_pop ( parm_struct parm,
population pop 
)

void print_best ( int  iniche,
parm_struct parm,
bestpop best 
)

void print_pop ( int  iniche,
parm_struct parm,
population pop 
)

double ran3 ( int *  idum  ) 

void read_GAparms ( parm_struct parm,
FILE *  fp 
)

double rmax ( double  i,
double  j 
)

double rmin ( double  i,
double  j 
)

void select_pop_roulette ( parm_struct parm,
population pop 
)

void select_pop_stepftn ( parm_struct parm,
population pop 
)

void select_pop_stepftn_old ( parm_struct parm,
population pop 
)

void statistics_pop ( int  igen,
int  iniche,
parm_struct parm,
population pop,
bestpop best,
FILE *  fp 
)

double str_to_double ( int *  chromosome,
int  start,
int  n,
double  min,
double  max 
)

int str_to_int ( int *  chromosome,
int  start,
int  n,
double  min,
double  max 
)

void write_GAparms ( parm_struct parm,
FILE *  fp 
)


Bug Reports    OPT++ Developers    Copyright Information    GNU Lesser General Public License
Documentation, generated by , last revised August 30, 2006.