aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/backend/modules/fitness/Problem.java
blob: 1e70c1369a7973b2d56fb4743a371b63feab545f (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.fitness;

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);
}