first example of automatic algorithm assembling
- add "Forges" tools, to wrap several operator with deferred instanciation. - add t-forge-algo to show how to enumerate several algorithms instances from a common grammar and several alternative operators. - add several missing className().
This commit is contained in:
parent
eba2e14950
commit
30c99f290f
14 changed files with 407 additions and 3 deletions
|
|
@ -42,7 +42,8 @@
|
|||
|
||||
@ingroup Selectors
|
||||
*/
|
||||
template <class EOT> class eoProportionalSelect: public eoSelectOne<EOT>
|
||||
template <class EOT>
|
||||
class eoProportionalSelect: public eoSelectOne<EOT>
|
||||
{
|
||||
public:
|
||||
/// Sanity check
|
||||
|
|
@ -80,6 +81,8 @@ private :
|
|||
|
||||
typedef std::vector<typename EOT::Fitness> FitVec;
|
||||
FitVec cumulative;
|
||||
public:
|
||||
virtual std::string className() const {return "eoProportionalSelect";}
|
||||
};
|
||||
/** @example t-eoRoulette.cpp
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue