Subsections


3. Controlling Runs of Evolutionary Algorithms

3.1 Getting Started

When starting FrEAK, you see a window as shown in Figure 3.1.

Figure 3.1: The window after starting FrEAK.
Image images/ch03-start.png

You see an information panel on the left side, a control panel at the bottom, and a desktop with the selected views on the right side. The information panel to the left displays the current phenotype search space and the current fitness function. Below, you see the current time index consisting of the current batch, the current run and the current generation. Note that almost all menu items are disabled at the beginning. The first step to take is to create a new schedule by choosing New from the File menu. The creation of new schedules is described in Chapter 2: chapter2. Alternatively, you may open an existing schedule by choosing Open from the File menu. The Help menu provides further information. You can open this document there or take a look at the About dialog. Figure 3.2 shows the FrEAK window after creating or loading a schedule.

Figure 3.2: The FrEAK window after creating a schedule.
Image images/ch03-runframe.png

In the control panel, you find several buttons used to navigate through the already simulated batches, runs, and generations. These buttons will be explained in the following section. The big slider at the top of the control panel indicates the current generation measured according to all generations that have already been simulated in this run. When running the simulation you can choose if you want to set a speed limit for the simulation. The speed limit represents the maximal number of generations per seconds and can be enabled and disabled using the corresponding check box in the control panel. The limit itself can be adjusted by using either the text field or the slider to the right. With a click on the Image images/Play16.pngStart button you start the first run. The simulation can always paused by using the Image images/Pause16.pngSuspend button. Some operations are only available while the run is suspended, such as editing the current schedule, modifying the speed limit, current run and current generation, or configuring views. Press the Image images/Play16.pngStart button again and the simulation is continued.


3.2 Watching Replays

FrEAK provides a replay mode to watch past batches, runs, and generations. To step back to an earlier time index, use the navigation buttons in the control panel or enter the desired time index in the information panel on the left. FrEAK automatically switches to replay mode and looks for the specified time index. This may eventually take some time because some runs and generations have to be simulated in the background to reach the desired time index. The Control menu as well as the navigation bar inside the control panel contain the following navigation commands.
Image images/StepBackFar.png
Go to Start go back to the start of the simulation.
Image images/StepBack16.png
Step Back go back to the last start of a run.
Image images/Pause16.png
Suspend pause the current Schedule.
Image images/Play16.png
Start start or continue the current Schedule.
Image images/StepForward16.png
Skip Run jump to the start of the next run.
Image images/StepForwardFar.png
Go to End jump forward to the last known generation.
You can also use the generation slider to quickly jump between generations. When replay is finished and the last simulated generation is reached, FrEAK automatically turns back to running mode and continues simulating new generations. \fbox{\parbox{15.3cm}{{\bf Note:} \newline \textup{FrEAK}\xspace uses a determin...
...e pseudo-random numbers as before. Thus, all the simulation can be reproduced.}}


3.3 Editing the Current Schedule

You can modify the setup of the current schedule to a certain degree depending on the progress of it. This is done via the same dialog that was used to create a new schedule. To open this dialog, select Edit Schedule... from the Control menu. The handling of this dialog is explained in detail in Chapter 2: chapter2 with the difference that several options are not available and you start with CreateBatches if your schedule was already started. % latex2html id marker 891
\fbox{\parbox{15.3cm}{{\bf Note:} \newline If you edi...
...ref{chapter2}. If it was already started, several components will be disabled.}}

Please refer to Chapter 2: chapter2 on how to work with the schedule editor.


3.4 Menu Items

The menu provides several functions which are described in detail here. Note that there are shortcuts for the most important functions.

3.4.1 File Menu

This menu is used for schedule management and to exit FrEAK.
New
Create a new schedule with the Schedule Editor. For details see Chapter 2: chapter2.
Open
Open an existing schedule.
Save
Save the current schedule.
Save as
Save the current schedule requesting a file name.
Exit
Exit FrEAK.

3.4.2 Edit Menu

Contains several operations from the control panel.
Edit
Edit the current schedule. For details see Section 3.3: EditingSchedule.
Configure Selected View
If the currently selected view is configurable and the current run is suspended, you can configure the view in the configuration dialog by choosing this menu item. For help on the configuration dialog see Section 2.6: configurationOfModules.

3.4.3 Control Menu

Contains several operations from the control panel. Most of them were already explained in Section modes.
Image images/Play16.png Start
start or continue the current Schedule.
Image images/Pause16.png Suspend
pause the current Schedule.
Image images/StepBack16.png Step Back
go back to the last start of a run.
Image images/StepForward16.png Skip Run
jump to the start of the next run.
Image images/StepBackFar.png Go to Start
go back to the start of the simulation.
Image images/StepForwardFar.png Go to End
jump forward to the last known generation.
Go to ...
jump to a specified generation.

3.4.4 Views Menu

This menu is used to manage the current views. If a schedule containing views is active, all views are listed in the upper part of the menu and can be activated by choosing the corresponding menu item. The lower part of the menu contains general window management functions for the views.
Tile
Tile the views on the desktop. Minimized and closed views are not considered.
Cascade
Reorder the views on the desktop in form of a cascade. Minimized and closed views are not considered.
Minimize All
Minimize all visible views.
Restore All
Restore all closed and minimized views.
Close All
Close all opened views. You can restore all view windows with the menu item Restore All or simply click on the menu item corresponding to the view you want to restore.

3.4.5 Help Menu

The Help menu offers you a global help.
Help
opens a HTML version of this document.
About
opens the about dialog where you can learn more about the current version and the developer team of FrEAK.