Ejemplo n.º 1
0
int
GAGenome::NoMutator(GAGenome & c, float)
{
    GAErr(GA_LOC, c.className(), "mutator", gaErrOpUndef);
    return 0;
}
Ejemplo n.º 2
0
float
GAGenome::NoComparator(const GAGenome& c, const GAGenome&)
{
    GAErr(GA_LOC, c.className(), "comparator", gaErrOpUndef);
    return -1.0;
}
Ejemplo n.º 3
0
///   These are the default genome operators.
/// None does anything - they just post an error message to let you know that no
/// method has been defined.  These are for the base class (which has no
/// function by itself).
void
GAGenome::NoInitializer(GAGenome & c)
{
    GAErr(GA_LOC, c.className(), "initializer", gaErrOpUndef);
}