Island mecanism : migration element and policy, island
This commit is contained in:
parent
2cd7f1f423
commit
1a23b618fc
9 changed files with 218 additions and 34 deletions
|
|
@ -32,11 +32,12 @@ Contact: paradiseo-help@lists.gforge.inria.fr
|
|||
template<template <class> class EOAlgo, class EOT>
|
||||
template<class... Args>
|
||||
paradiseo::smp::Island<EOAlgo,EOT>::Island(unsigned _popSize, eoInit<EOT>& _chromInit, eoReplacement<EOT>& _intPolicy, Policy<EOT>& _migPolicy, Args&... args) :
|
||||
ContWrapper<EOT>(Loop<Args...>().template findValue<eoContinue<EOT>>(args...),_migPolicy),
|
||||
pop(_popSize, _chromInit),
|
||||
algo(EOAlgo<EOT>(args...)),
|
||||
algo(EOAlgo<EOT>(wrap_pp<eoContinue<EOT>>(this->ck,args)...)),
|
||||
intPolicy(_intPolicy)
|
||||
{
|
||||
static_assert(std::is_base_of<eoAlgo<EOT>,EOAlgo<EOT>>::value, "Algorithm must inherit from eoAlgo<EOT>");
|
||||
static_assert(std::is_base_of<eoAlgo<EOT>,EOAlgo<EOT>>::value, "Algorithm must inherit from eoAlgo<EOT>");
|
||||
}
|
||||
|
||||
template<template <class> class EOAlgo, class EOT>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue