Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OKBJavaConnector/ECJClient/src/ec/simple/SimpleProblemForm.java @ 11255

Last change on this file since 11255 was 6152, checked in by bfarka, 14 years ago

added ecj and custom statistics to communicate with the okb services #1441

File size: 1.3 KB
Line 
1/*
2  Copyright 2006 by Sean Luke
3  Licensed under the Academic Free License version 3.0
4  See the file "LICENSE" for more information
5*/
6
7
8package ec.simple;
9import ec.*;
10
11/*
12 * SimpleProblemForm.java
13 *
14 * Created: Tue Mar  6 11:33:37 EST 2001
15 * By: Sean Luke
16 */
17
18/**
19 * SimpleProblemForm is an interface which defines methods
20 * for Problems to implement simple, single-individual (non-coevolutionary)
21 * evaluation.
22 *
23 * @author Sean Luke
24 * @version 1.0
25 */
26
27public interface SimpleProblemForm
28    {
29    /** Evaluates the individual in ind, if necessary (perhaps
30        not evaluating them if their evaluated flags are true),
31        and sets their fitness appropriately.
32    */
33
34    public void evaluate(final EvolutionState state,
35        final Individual ind,
36        final int subpopulation,
37        final int threadnum);
38
39    /** "Reevaluates" an individual,
40        for the purpose of printing out
41        interesting facts about the individual in the context of the
42        Problem, and logs the results.  This might be called to print out
43        facts about the best individual in the population, for example.  */
44   
45    public void describe(
46        final EvolutionState state,
47        final Individual ind,
48        final int subpopulation,
49        final int threadnum,
50        final int log);
51    }
Note: See TracBrowser for help on using the repository browser.