blob: d01f5b02ea6cee6b342e0a1e96f6110661f55777 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package jcgp.backend.modules.problem;
import jcgp.backend.function.FunctionSet;
import jcgp.backend.modules.Module;
import jcgp.backend.population.Chromosome;
import jcgp.backend.population.Population;
import jcgp.backend.resources.Resources;
public abstract class Problem implements Module {
protected FunctionSet functionSet;
public abstract void evaluate(Population population, Resources resources);
public FunctionSet getFunctionSet() {
return functionSet;
}
public abstract boolean isPerfectSolution(Chromosome fittest);
}
|