00001 /*------------------------------------------------------------------------- 00002 * 00003 * geqo_gene.h 00004 * genome representation in optimizer/geqo 00005 * 00006 * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group 00007 * Portions Copyright (c) 1994, Regents of the University of California 00008 * 00009 * src/include/optimizer/geqo_gene.h 00010 * 00011 *------------------------------------------------------------------------- 00012 */ 00013 00014 /* contributed by: 00015 =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= 00016 * Martin Utesch * Institute of Automatic Control * 00017 = = University of Mining and Technology = 00018 * [email protected] * Freiberg, Germany * 00019 =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= 00020 */ 00021 00022 00023 #ifndef GEQO_GENE_H 00024 #define GEQO_GENE_H 00025 00026 #include "nodes/nodes.h" 00027 00028 /* we presume that int instead of Relid 00029 is o.k. for Gene; so don't change it! */ 00030 typedef int Gene; 00031 00032 typedef struct Chromosome 00033 { 00034 Gene *string; 00035 Cost worth; 00036 } Chromosome; 00037 00038 typedef struct Pool 00039 { 00040 Chromosome *data; 00041 int size; 00042 int string_length; 00043 } Pool; 00044 00045 #endif /* GEQO_GENE_H */