PostgreSQL Source Code
git master
|
#include "optimizer/geqo.h"
Go to the source code of this file.
Functions | |
Pool * | alloc_pool (PlannerInfo *root, int pool_size, int string_length) |
void | free_pool (PlannerInfo *root, Pool *pool) |
void | random_init_pool (PlannerInfo *root, Pool *pool) |
Chromosome * | alloc_chromo (PlannerInfo *root, int string_length) |
void | free_chromo (PlannerInfo *root, Chromosome *chromo) |
void | spread_chromo (PlannerInfo *root, Chromosome *chromo, Pool *pool) |
void | sort_pool (PlannerInfo *root, Pool *pool) |
Chromosome* alloc_chromo | ( | PlannerInfo * | root, |
int | string_length | ||
) |
Definition at line 162 of file geqo_pool.c.
References palloc(), and Chromosome::string.
Referenced by geqo().
Pool* alloc_pool | ( | PlannerInfo * | root, |
int | pool_size, | ||
int | string_length | ||
) |
Definition at line 42 of file geqo_pool.c.
References Pool::data, for(), i, palloc(), Pool::size, and Pool::string_length.
Referenced by geqo().
void free_chromo | ( | PlannerInfo * | root, |
Chromosome * | chromo | ||
) |
Definition at line 176 of file geqo_pool.c.
References pfree(), and Chromosome::string.
Referenced by geqo().
void free_pool | ( | PlannerInfo * | root, |
Pool * | pool | ||
) |
Definition at line 69 of file geqo_pool.c.
References Pool::data, for(), i, pfree(), and Pool::size.
Referenced by geqo().
void random_init_pool | ( | PlannerInfo * | root, |
Pool * | pool | ||
) |
Definition at line 91 of file geqo_pool.c.
References Pool::data, DEBUG1, elog, ERROR, geqo_eval(), i, init_tour(), root, size, Pool::size, Pool::string_length, while(), and Chromosome::worth.
Referenced by geqo().
void sort_pool | ( | PlannerInfo * | root, |
Pool * | pool | ||
) |
Definition at line 135 of file geqo_pool.c.
References compare(), Pool::data, qsort, and Pool::size.
Referenced by geqo().
void spread_chromo | ( | PlannerInfo * | root, |
Chromosome * | chromo, | ||
Pool * | pool | ||
) |
Definition at line 187 of file geqo_pool.c.
References Pool::data, geqo_copy(), i, root, Pool::size, Chromosome::string, Pool::string_length, and Chromosome::worth.
Referenced by geqo().