PostgreSQL Source Code
git master
|
#include "optimizer/geqo.h"
Go to the source code of this file.
Data Structures | |
struct | Edge |
struct | City |
Macros | |
#define | DAD 1 /* indicator for gene from dad */ |
#define | MOM 0 /* indicator for gene from mom */ |
Typedefs | |
typedef struct Edge | Edge |
typedef struct City | City |
Functions | |
void | init_tour (PlannerInfo *root, Gene *tour, int num_gene) |
Edge * | alloc_edge_table (PlannerInfo *root, int num_gene) |
void | free_edge_table (PlannerInfo *root, Edge *edge_table) |
float | gimme_edge_table (PlannerInfo *root, Gene *tour1, Gene *tour2, int num_gene, Edge *edge_table) |
int | gimme_tour (PlannerInfo *root, Edge *edge_table, Gene *new_gene, int num_gene) |
void | pmx (PlannerInfo *root, Gene *tour1, Gene *tour2, Gene *offspring, int num_gene) |
City * | alloc_city_table (PlannerInfo *root, int num_gene) |
void | free_city_table (PlannerInfo *root, City *city_table) |
int | cx (PlannerInfo *root, Gene *tour1, Gene *tour2, Gene *offspring, int num_gene, City *city_table) |
void | px (PlannerInfo *root, Gene *tour1, Gene *tour2, Gene *offspring, int num_gene, City *city_table) |
void | ox1 (PlannerInfo *root, Gene *mom, Gene *dad, Gene *offspring, int num_gene, City *city_table) |
void | ox2 (PlannerInfo *root, Gene *mom, Gene *dad, Gene *offspring, int num_gene, City *city_table) |
#define DAD 1 /* indicator for gene from dad */ |
Definition at line 54 of file geqo_recombination.h.
#define MOM 0 /* indicator for gene from mom */ |
Definition at line 55 of file geqo_recombination.h.
City* alloc_city_table | ( | PlannerInfo * | root, |
int | num_gene | ||
) |
Referenced by geqo().
Edge* alloc_edge_table | ( | PlannerInfo * | root, |
int | num_gene | ||
) |
Definition at line 56 of file geqo_erx.c.
References palloc().
Referenced by geqo().
int cx | ( | PlannerInfo * | root, |
Gene * | tour1, | ||
Gene * | tour2, | ||
Gene * | offspring, | ||
int | num_gene, | ||
City * | city_table | ||
) |
Referenced by combo_decrypt(), combo_encrypt(), combo_free(), combo_init(), geqo(), and px_find_combo().
void free_city_table | ( | PlannerInfo * | root, |
City * | city_table | ||
) |
Referenced by geqo().
void free_edge_table | ( | PlannerInfo * | root, |
Edge * | edge_table | ||
) |
float gimme_edge_table | ( | PlannerInfo * | root, |
Gene * | tour1, | ||
Gene * | tour2, | ||
int | num_gene, | ||
Edge * | edge_table | ||
) |
Definition at line 95 of file geqo_erx.c.
References gimme_edge(), i, root, Edge::total_edges, and Edge::unused_edges.
Referenced by geqo().
int gimme_tour | ( | PlannerInfo * | root, |
Edge * | edge_table, | ||
Gene * | new_gene, | ||
int | num_gene | ||
) |
Definition at line 196 of file geqo_erx.c.
References edge_failure(), geqo_randint(), gimme_gene(), i, remove_gene(), and root.
Referenced by geqo().
void init_tour | ( | PlannerInfo * | root, |
Gene * | tour, | ||
int | num_gene | ||
) |
Definition at line 34 of file geqo_recombination.c.
References geqo_randint(), i, j, and root.
Referenced by random_init_pool().
void ox1 | ( | PlannerInfo * | root, |
Gene * | mom, | ||
Gene * | dad, | ||
Gene * | offspring, | ||
int | num_gene, | ||
City * | city_table | ||
) |
Referenced by geqo().
void ox2 | ( | PlannerInfo * | root, |
Gene * | mom, | ||
Gene * | dad, | ||
Gene * | offspring, | ||
int | num_gene, | ||
City * | city_table | ||
) |
Referenced by geqo().
void pmx | ( | PlannerInfo * | root, |
Gene * | tour1, | ||
Gene * | tour2, | ||
Gene * | offspring, | ||
int | num_gene | ||
) |
Referenced by geqo().
void px | ( | PlannerInfo * | root, |
Gene * | tour1, | ||
Gene * | tour2, | ||
Gene * | offspring, | ||
int | num_gene, | ||
City * | city_table | ||
) |
Referenced by byteapos(), geqo(), and interpret_function_parameter_list().