geqo_pool.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*-------------------------------------------------------------------------
  2. *
  3. * geqo_pool.h
  4. * pool 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_pool.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_POOL_H
  21. #define GEQO_POOL_H
  22. #include "optimizer/geqo.h"
  23. extern Pool *alloc_pool(PlannerInfo *root, int pool_size, int string_length);
  24. extern void free_pool(PlannerInfo *root, Pool *pool);
  25. extern void random_init_pool(PlannerInfo *root, Pool *pool);
  26. extern Chromosome *alloc_chromo(PlannerInfo *root, int string_length);
  27. extern void free_chromo(PlannerInfo *root, Chromosome *chromo);
  28. extern void spread_chromo(PlannerInfo *root, Chromosome *chromo, Pool *pool);
  29. extern void sort_pool(PlannerInfo *root, Pool *pool);
  30. #endif /* GEQO_POOL_H */