PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "optimizer/geqo.h"
#include "optimizer/geqo_random.h"
#include "optimizer/geqo_recombination.h"
Go to the source code of this file.
Functions | |
static int | gimme_edge (PlannerInfo *root, Gene gene1, Gene gene2, Edge *edge_table) |
static void | remove_gene (PlannerInfo *root, Gene gene, Edge edge, Edge *edge_table) |
static Gene | gimme_gene (PlannerInfo *root, Edge edge, Edge *edge_table) |
static Gene | edge_failure (PlannerInfo *root, Gene *gene, int index, Edge *edge_table, 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) |
Edge* alloc_edge_table | ( | PlannerInfo * | root, |
int | num_gene | ||
) |
Definition at line 56 of file geqo_erx.c.
References palloc().
Referenced by geqo().
|
static |
Definition at line 372 of file geqo_erx.c.
References elog, ERROR, geqo_randint(), i, LOG, and root.
Referenced by gimme_tour().
void free_edge_table | ( | PlannerInfo * | root, |
Edge * | edge_table | ||
) |
|
static |
Definition at line 154 of file geqo_erx.c.
References Edge::edge_list, i, Edge::total_edges, and Edge::unused_edges.
Referenced by gimme_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().
|
static |
Definition at line 282 of file geqo_erx.c.
References Edge::edge_list, elog, ERROR, geqo_randint(), i, if(), root, and Edge::unused_edges.
Referenced by gimme_tour().
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().
|
static |
Definition at line 240 of file geqo_erx.c.
References Edge::edge_list, i, j, and Edge::unused_edges.
Referenced by gimme_tour().