Algoritmi genetici pentru rezolvarea problemelor prin - Sorin ...
Algoritmi genetici pentru rezolvarea problemelor prin - Sorin ...
Algoritmi genetici pentru rezolvarea problemelor prin - Sorin ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Population.h<br />
1<br />
2<br />
3<br />
4<br />
5<br />
6<br />
7<br />
8<br />
9<br />
10<br />
11<br />
12<br />
13<br />
14<br />
15<br />
16<br />
17<br />
18<br />
19<br />
20<br />
21<br />
22<br />
23<br />
24<br />
25<br />
26<br />
27<br />
28<br />
29<br />
30<br />
31<br />
32<br />
33<br />
34<br />
35<br />
36<br />
37<br />
38<br />
39<br />
40<br />
41<br />
42<br />
43<br />
44<br />
45<br />
46<br />
47<br />
48<br />
49<br />
50<br />
51<br />
52<br />
53<br />
54<br />
55<br />
//////////////////////////////////////////////////<br />
// (c) 2003 <strong>Sorin</strong> OSTAFIEV (sorin@ostafiev.com) //<br />
//////////////////////////////////////////////////<br />
// Population.h: interface for the Population class.<br />
//<br />
//////////////////////////////////////////////////////////////////////<br />
#if !defined(AFX_POPULATION_H__F09111B1_0480_45B1_A376_A230915BEF67__INCLUDED_)<br />
#define AFX_POPULATION_H__F09111B1_0480_45B1_A376_A230915BEF67__INCLUDED_<br />
#if _MSC_VER > 1000<br />
#pragma once<br />
#endif // _MSC_VER > 1000<br />
#include "GA.h"<br />
#include "Genome.h"<br />
#include <br />
using namespace std;<br />
#include "globals.h"<br />
class Population<br />
{<br />
public:<br />
friend class Genome;<br />
friend class GA;<br />
const int getPopulationSize() const;<br />
const GenomesVector::const_iterator getBestIndividual() const;<br />
virtual ~Population();<br />
Population(const GA* const ga, const int pop_size, Genome::genome_type type);<br />
Population(const Population& population);<br />
const Population& operator=(const Population &population);<br />
GenomesVector _genomes;<br />
private:<br />
Population* _next_generation;<br />
void pre_step();<br />
void step();<br />
void post_step();<br />
};<br />
int _population_size;<br />
const GA* const _ga;<br />
mutable GenomesVector::const_iterator _best_genome;<br />
#endif // !defined(AFX_POPULATION_H__F09111B1_0480_45B1_A376_A230915BEF67__INCLUDED_)<br />
Page 1 of 1