Changes to eo1d interface and bug fixes
This commit is contained in:
parent
06db0c058e
commit
759dba7ea8
47 changed files with 759 additions and 204 deletions
|
|
@ -25,13 +25,14 @@ ostream& operator<<(ostream& os, const Chrom& chrom)
|
|||
class Easy//: public eoProblem<Chrom>
|
||||
{
|
||||
public:
|
||||
const size = 1;
|
||||
static const unsigned size;
|
||||
|
||||
float operator()(const Chrom& chrom)
|
||||
{
|
||||
return 1.0 / (fabs(chrom[0]) + 1.0);
|
||||
}
|
||||
};
|
||||
const unsigned Easy::size = 1;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Reference in a new issue