GALib-Parallel
Header-only C++ library for parallel evolutionary algorithms
Loading...
Searching...
No Matches
include
algorithms
island
migration
replacers
DemeReplacer.h
Go to the documentation of this file.
1
#ifndef DEME_REPLACER_H
2
#define DEME_REPLACER_H
3
4
#pragma once
5
6
#include "
core/Individual.h
"
7
#include "
core/Population.h
"
8
#include <vector>
9
10
namespace
galib
{
11
20
template
<
typename
GeneType>
21
class
DemeReplacer
{
22
public
:
23
virtual
~DemeReplacer
() =
default
;
24
31
virtual
void
replaceDeme
(
32
Population<GeneType>
& population,
33
std::vector<
Individual<GeneType>
>&& deme
34
)
const
= 0;
35
};
36
37
}
38
39
#endif
// DEME_REPLACER_H
Individual.h
Population.h
galib::DemeReplacer
Interface for integrating incoming migrants into the local population.
Definition
DemeReplacer.h:21
galib::DemeReplacer::replaceDeme
virtual void replaceDeme(Population< GeneType > &population, std::vector< Individual< GeneType > > &&deme) const =0
Replaces a portion of the local population with the given migrants.
galib::DemeReplacer::~DemeReplacer
virtual ~DemeReplacer()=default
galib::Individual
Represents a single candidate solution in the population.
Definition
Individual.h:23
galib::Population
A container for a group of individuals in the genetic algorithm.
Definition
Population.h:24
galib
Definition
Algorithm.h:11
Generated by
1.9.8