Projet du cours MPRI 2.24.2 "Résolution de problèmes d'optimisation avec heuristiques de recherche" : https://wikimpri.dptinfo.ens-cachan.fr/doku.php?id=cours:c-2-24-2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

EA.h 648B

  1. #ifndef EA_H
  2. #define EA_H
  3. #include <iostream>
  4. #include <vector>
  5. #include <algorithm>
  6. #include <random>
  7. #include "SearchHeuristic.h"
  8. class EA : public SearchHeuristic
  9. {
  10. public:
  11. EA(double proba, int lda, int mu, std::default_random_engine& randomizer);
  12. void prepare_tab();
  13. Result run();
  14. virtual ~EA();
  15. protected:
  16. double m_proba;
  17. int m_lambda;
  18. int m_mu;
  19. std::default_random_engine m_randomizer;
  20. std::binomial_distribution<int> m_binomial_dist;
  21. bool m_is_prepared;
  22. Candidate** x_tab;
  23. private:
  24. };
  25. #endif // EA_H