ARB
|
#include <MP_probe.hxx>
Public Member Functions | |
double | get_avg_fit () |
int | get_generation () |
GenerationDuplicates * | get_dup_tree () |
void | set_length () |
void | check_for_results () |
bool | insert (probe_combi_statistic *pcs) |
void | init_valuation () |
void | gen_determ_combis (int beg, int len, int &pos_counter, probe_combi_statistic *p) |
bool | calcFitness (bool use_genetic_algo, double old_avg_fit) |
void | init_roulette_wheel () |
Generation * | create_next_generation () |
probe_combi_statistic * | single_in_generation (probe_combi_statistic *field) |
void | print () |
Generation (int len, int gen_nr) | |
~Generation () | |
Definition at line 102 of file MP_probe.hxx.
Definition at line 312 of file MP_Generation.cxx.
References MP_Main::get_p_eval(), ProbeValuation::get_size_sondenarray(), and mp_main.
Referenced by create_next_generation().
Generation::~Generation | ( | ) |
Definition at line 328 of file MP_Generation.cxx.
|
inline |
Definition at line 124 of file MP_probe.hxx.
Referenced by ProbeValuation::evolution().
|
inline |
Definition at line 125 of file MP_probe.hxx.
Referenced by ProbeValuation::evolution().
|
inline |
Definition at line 126 of file MP_probe.hxx.
Referenced by create_next_generation().
|
inline |
Definition at line 127 of file MP_probe.hxx.
Referenced by create_next_generation().
void Generation::check_for_results | ( | ) |
Definition at line 36 of file MP_Generation.cxx.
References MP_Main::get_p_eval(), ProbeValuation::insert_in_result_list(), and mp_main.
Referenced by ProbeValuation::evolution().
bool Generation::insert | ( | probe_combi_statistic * | pcs | ) |
Definition at line 268 of file MP_Generation.cxx.
References probe_combi_statistic::duplicate(), and MAXPOPULATION.
Referenced by create_next_generation().
void Generation::init_valuation | ( | ) |
Definition at line 278 of file MP_Generation.cxx.
References probe_combi_statistic::check_duplicates(), gen_determ_combis(), MP_Main::get_p_eval(), ProbeValuation::get_pool_length(), ProbeValuation::get_probe_pool(), get_random(), MAXINITPOPULATION, mp_gl_awars, mp_main, awar_vars::no_of_probes, NULp, and probe_combi_statistic::set_probe_combi().
Referenced by ProbeValuation::init_valuation().
void Generation::gen_determ_combis | ( | int | beg, |
int | len, | ||
int & | pos_counter, | ||
probe_combi_statistic * | p | ||
) |
Definition at line 239 of file MP_Generation.cxx.
References MP_Main::get_p_eval(), ProbeValuation::get_pool_length(), probe_combi_statistic::get_probe_combi(), ProbeValuation::get_probe_pool(), mp_gl_awars, mp_main, awar_vars::no_of_probes, probe::probe_index, and probe_combi_statistic::set_probe_combi().
Referenced by init_valuation().
bool Generation::calcFitness | ( | bool | use_genetic_algo, |
double | old_avg_fit | ||
) |
Definition at line 44 of file MP_Generation.cxx.
References probe_combi_statistic::calc_expected_children(), probe_combi_statistic::calc_fitness(), probe_combi_statistic::get_fitness(), arb_progress::inc(), init_roulette_wheel(), MP_aborted(), mp_gl_awars, awar_vars::no_of_probes, and probe_combi_statistic::scale().
Referenced by ProbeValuation::evolution().
void Generation::init_roulette_wheel | ( | ) |
Definition at line 126 of file MP_Generation.cxx.
References MULTROULETTEFACTOR.
Referenced by calcFitness().
Generation * Generation::create_next_generation | ( | ) |
Definition at line 155 of file MP_Generation.cxx.
References probe_combi_statistic::crossover_Probes(), CROSSOVER_WS, probe_combi_statistic::duplicate(), Generation(), get_dup_tree(), get_random(), probe_combi_statistic::init_life_counter(), insert(), GenerationDuplicates::insert(), MAXPOPULATION, probe_combi_statistic::mutate_Probe(), NULp, set_length(), and probe_combi_statistic::sub_life_counter().
Referenced by ProbeValuation::evolution().
probe_combi_statistic * Generation::single_in_generation | ( | probe_combi_statistic * | field | ) |
Definition at line 16 of file MP_Generation.cxx.
References GenerationDuplicates::insert(), NULp, and result.
void Generation::print | ( | ) |
Definition at line 31 of file MP_Generation.cxx.