diff options
Diffstat (limited to 'src/include/optimizer/geqo.h')
-rw-r--r-- | src/include/optimizer/geqo.h | 55 |
1 files changed, 28 insertions, 27 deletions
diff --git a/src/include/optimizer/geqo.h b/src/include/optimizer/geqo.h index 3a566522f7a..28f2dd086f7 100644 --- a/src/include/optimizer/geqo.h +++ b/src/include/optimizer/geqo.h @@ -1,25 +1,25 @@ /*------------------------------------------------------------------------- * * geqo.h-- - * prototypes for various files in optimizer/geqo + * prototypes for various files in optimizer/geqo * * Copyright (c) 1994, Regents of the University of California * - * $Id: geqo.h,v 1.3 1997/06/02 11:19:31 vadim Exp $ + * $Id: geqo.h,v 1.4 1997/09/07 04:58:57 momjian Exp $ * *------------------------------------------------------------------------- */ /* contributed by: =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= - * Martin Utesch * Institute of Automatic Control * - = = University of Mining and Technology = - * [email protected] * Freiberg, Germany * + * Martin Utesch * Institute of Automatic Control * + = = University of Mining and Technology = + * [email protected] * Freiberg, Germany * =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= */ -#ifndef GEQO_H -#define GEQO_H +#ifndef GEQO_H +#define GEQO_H /* GEQO debug flag */ @@ -40,38 +40,39 @@ /* genetic algorithm parameters */ -#define GEQO_FILE "pg_geqo" /* Name of the ga config file */ +#define GEQO_FILE "pg_geqo" /* Name of the ga config file */ -#define MIN_POOL 128 /* minimum number of individuals */ -#define MAX_POOL 1024 /* maximum number of individuals */ +#define MIN_POOL 128 /* minimum number of individuals */ +#define MAX_POOL 1024 /* maximum number of individuals */ -#define LOW_EFFORT 1 /* optimization effort values */ -#define MEDIUM_EFFORT 40 /* are multipliers for computed */ -#define HIGH_EFFORT 80 /* number of generations */ +#define LOW_EFFORT 1 /* optimization effort values */ +#define MEDIUM_EFFORT 40 /* are multipliers for computed */ +#define HIGH_EFFORT 80 /* number of generations */ -#define SELECTION_BIAS 2.0 /* selective pressure within population */ - /* should be 1.5 <= SELECTION_BIAS <= 2.0 */ +#define SELECTION_BIAS 2.0 /* selective pressure within population */ + /* should be 1.5 <= SELECTION_BIAS <= 2.0 */ - int PoolSize; - int Generations; +int PoolSize; +int Generations; - long RandomSeed; /* defaults to (long) time(NULL) in geqo_params.c */ - double SelectionBias; +long RandomSeed; /* defaults to (long) time(NULL) in + * geqo_params.c */ +double SelectionBias; /* logarithmic base for rel->size decrease in case of long queries that cause an integer overflow; used in geqo_eval.c */ -#define GEQO_LOG_BASE 1.5 /* should be 1.0 < GEQO_LOG_BASE <= 2.0 */ - /* ^^^ */ +#define GEQO_LOG_BASE 1.5 /* should be 1.0 < GEQO_LOG_BASE <= 2.0 */ + /* ^^^ */ /* geqo prototypes */ -extern Rel *geqo(Query *root); +extern Rel *geqo(Query * root); -extern void geqo_params(int string_length); +extern void geqo_params(int string_length); -extern Cost geqo_eval (Query *root, Gene *tour, int num_gene); -double geqo_log(double x, double b); -extern Rel *gimme_tree(Query *root, Gene *tour, int rel_count, int num_gene, Rel *outer_rel); +extern Cost geqo_eval(Query * root, Gene * tour, int num_gene); +double geqo_log(double x, double b); +extern Rel *gimme_tree(Query * root, Gene * tour, int rel_count, int num_gene, Rel * outer_rel); -#endif /* GEQO_H */ +#endif /* GEQO_H */ |