2
0

geqo_gene.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*-------------------------------------------------------------------------
  2. *
  3. * geqo_gene.h
  4. * genome representation in optimizer/geqo
  5. *
  6. * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
  7. * Portions Copyright (c) 1994, Regents of the University of California
  8. *
  9. * src/include/optimizer/geqo_gene.h
  10. *
  11. *-------------------------------------------------------------------------
  12. */
  13. /* contributed by:
  14. =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
  15. * Martin Utesch * Institute of Automatic Control *
  16. = = University of Mining and Technology =
  17. * [email protected] * Freiberg, Germany *
  18. =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
  19. */
  20. #ifndef GEQO_GENE_H
  21. #define GEQO_GENE_H
  22. #include "nodes/nodes.h"
  23. /* we presume that int instead of Relid
  24. is o.k. for Gene; so don't change it! */
  25. typedef int Gene;
  26. typedef struct Chromosome
  27. {
  28. Gene *string;
  29. Cost worth;
  30. } Chromosome;
  31. typedef struct Pool
  32. {
  33. Chromosome *data;
  34. int size;
  35. int string_length;
  36. } Pool;
  37. #endif /* GEQO_GENE_H */