Last change
on this file since 13229 was
6152,
checked in by bfarka, 14 years ago
|
added ecj and custom statistics to communicate with the okb services #1441
|
File size:
1.6 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 |
|
---|
8 | package ec;
|
---|
9 |
|
---|
10 | /*
|
---|
11 | * Initializer.java
|
---|
12 | *
|
---|
13 | * Created: Tue Aug 10 21:07:42 1999
|
---|
14 | * By: Sean Luke
|
---|
15 | */
|
---|
16 |
|
---|
17 | /**
|
---|
18 | * The Initializer is a singleton object whose job is to initialize the
|
---|
19 | * population at the beginning of the run. It does this by providing
|
---|
20 | * a population through the initialPopulation(...) method.
|
---|
21 |
|
---|
22 | <p><b>Parameters</b><br>
|
---|
23 | <table>
|
---|
24 | <tr><td valign=top><tt>pop</tt><br>
|
---|
25 | <font size=-1>classname, inherits or = ec.Population</font></td>
|
---|
26 | <td valign=top>(the class for a new population)</td></tr>
|
---|
27 | </table>
|
---|
28 |
|
---|
29 | <p><b>Parameter bases</b><br>
|
---|
30 | <table>
|
---|
31 | <tr><td valign=top><tt>pop</tt></td>
|
---|
32 | <td>The base for a new population's set up parameters</td></tr>
|
---|
33 | </table>
|
---|
34 |
|
---|
35 | * @author Sean Luke
|
---|
36 | * @version 1.0
|
---|
37 | */
|
---|
38 |
|
---|
39 | public abstract class Initializer implements Singleton
|
---|
40 | {
|
---|
41 | /** parameter for a new population */
|
---|
42 | public static final String P_POP = "pop";
|
---|
43 |
|
---|
44 | /** Creates and returns a new initial population for the evolutionary run.
|
---|
45 | This is commonly done by setting up a Population (by calling setupPopulation below)
|
---|
46 | then calling its populate() method. This method
|
---|
47 | will likely only be called once in a run. */
|
---|
48 | public abstract Population initialPopulation(final EvolutionState state, int thread);
|
---|
49 |
|
---|
50 | /** Loads a Population from the parameter file, sets it up, and returns it. */
|
---|
51 | public abstract Population setupPopulation(final EvolutionState state, int thread);
|
---|
52 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.