@System Menu
The GAF system menu is the primary user interface
to the system.  System menu provides sub-function
selections: Info, Run, Display, Control, Adapt,
Method, Segment, Feedback, Eval, Other, and Help. 
Use the first character of each selection or use
cursor keys (right/left) to select proper function,
or 'Enter' to select highlighted function.  When a
function is selected, a pull down menu appears to
provide further selections.  Press ESC under system
menu will bring Run function menu, except when the
system menu was ESCaped from any of the running
screen.  Refer to the System Run mode for more
information.  Press ESC in any other function menu
will return to system menu.

1: The Windows
2: About GAF System
3: System Run Modes
4: Simulation mode
5: Adapt mode
6: Change Simulation Parameters
7: Change segment and value
8: Arrange Display Windows
9: Setup adapt environment
A: Setup feedback module
B: Setup evaluation module
C: Control Genetic Algorithm
D: Report and Other Functions
E: Function Keys

@The Windows
There are five types of system windows and four
types of display windows.  The system windows are:
menu window, hint window, adapt status window,
segment title window, and segment display window. 
The segment display window contains four types of
windows: rule text window (text window)
         trend plot window (plot window)
         combined result window (result window)
         fuzzy rule firing window (firing window).

Menu Window
  The menu window is on the top of the screen to
  provide system menu described above.  In any of the
  run mode, the menu window is closed; use ESC or F10
  to get back to system menu.

Hint Window
  The hint window is at the bottom of the screen to
  provide user hints (available keys or functions) to
  the user.  Note that in run modes the hint window
  also displays the current schedule rate.

Segment Title Window
  The segment title window (title window) shows the
  information for the selected segment, see topic
  "Change Segment and Value" for selecting a segment.
  The title window is located immediately above
  segment display window.  Where, the first line
  shows the segment ID, number of fuzzy membership
  symbols, number of input variables, and the names
  of input variables.  The second line shows the
  cycle rate of the segment, number of rules, number
  of output variables, and the names of output
  variables.

Adapt Status Window
  The adapt status window (adapt window) shows the
  status of genetic adaptation.  Adapt window only
  exists under genetic adapting mode, it is
  immediately above the title window.

Segment Display Window
  The segment display window (display window) displays
  important status and information of the selected
  segment.  The display window occupies the most part
  of the screen immediately above the hint window. 
  There are four types of sub-windows inside display
  window for showing fuzzy rules and running status:
  rule text window (text window), trend plot window
  (plot window), combined result window (result
  window), and fuzzy rule firing window (firing window). 
  The place and area of these sub-windows can be
  rearranged by the user, please see topic
  "Arrange Display Windows" for rearranging display
  windows.

Text Window
  The text window shows the rules and status of the
  rules for current selected segment.  Each rule is
  presented in a row with several columns associated
  with it.  The first column indicates whether the rule
  is disabled (marked with 'x') or fired (marked with
  '*'). The second column shows the rule number.  The
  rest of columns display the content of the rule, i.e.,
  the fuzzy membership set symbol for corresponding
  inputs and outputs.  These content columns are
  presented, in different color, with inputs first then
  the outputs as the same sequence shown in the title
  window above.  if local variables are selected the
  local variables are displayed after input variables.
  Use cursor keys to scroll up, down, right, and left
  for undisplayed contents.
  
Trend Plot Window
  The plot window draws the trend graph for all
  inputs, outputs, and selected local variables with
  time in x-axis and value in y-axis.  Each variable
  has its own sub-window, started from top to bottom,
  with the same sequence and color as in the text
  window.  See topic "Arrange Display Windows"
  for changing the frame duration.

Combined Result Window
  The result window depicts the result for selected
  output of the segment.  In the upper portion of the
  window the trapezoid result of all fired rules, rules
  generate non-zero output, are drawn.  In the lower
  portion of the window the defuzzified result
  (combined result) and the output value are
  displayed.  Multiple outputs can be selected with
  splited display area.

Rule Firing Window
  The firing window shows the fuzzy inference status
  (firing condition) of selected rules.  This feature
  along with the stepping mode, in simulation and
  check modes, is the best way to tuneup or debug the
  control system.  You'll find the selected rule's
  fuzzy sets are displayed to the left of the combined
  result.  The corresponding input value for each set
  is plotted vertically in the same window.  Note that
  each fuzzy set input has the same color as in the
  text window.  Refer to topic "Arrange Display Windows"
  for arranging display window, and "Change Segment and
  Value" for selecting rules.

0: System Menu
2: About GAF System
3: System Run Modes
4: Simulation mode
5: Adapt mode
6: Change Simulation Parameters
7: Change segment and value
8: Arrange Display Windows
9: Setup adapt environment
A: Setup feedback module
B: Setup evaluation module
C: Control Genetic Algorithm
D: Report and Other Functions
E: Function Keys

@About GAF System
The Info menu shows the version, system wide limits,
and current free memory status.
  IO length (in bits)
    the supported analog IO bits
  Number of IO channels
    maximum number of IO channels supported
  Number of sets per segment
    maximum number of fuzzy input sets in a segment
  Number of rules per segment
    maximum number of rules in a segment
  Total variables per segment
    maximum number of variables (IN, OUT, and LOCAL)
    in a segment
  Number of segments
    maximum number of segments in the system
  Number of fuzzy symbols
    maximum number of fuzzy symbols in a segment
  Name length (IO & symbol)
    number of characters for names (variable name
    or symbol name)

0: System Menu
1: The Windows
3: System Run Modes
4: Simulation mode
5: Adapt mode
6: Change Simulation Parameters
7: Change segment and value
8: Arrange Display Windows
9: Setup adapt environment
A: Setup feedback module
B: Setup evaluation module
C: Control Genetic Algorithm
D: Report and Other Functions
E: Function Keys

@System Run Modes
The Run menu provides different modes for running
GAF system.  GAF offers following five running
modes: control, monitor, check segment, simulation,
and adapt.  Also provided is to terminate (quit) the
program.  Although there are five running modes,
they can be divided into two categories: the control
(simulation) portion and the automatic adapt
portion.  While in any of the running modes, use ESC
or F10 to escape back to system menu for other
functions, then ESC again will bring you back to
original running mode.  Use Alt-Q to quit the
program.


Control Mode
  The control mode provides users for online control
  and limited user interfaces for interacting with the
  real control environment and fuzzy rule segments. 
  The output of all segments are routed through
  output channels, and the inputs are brought in
  through the input channels.

Monitor Mode
  The monitor mode provides users for online
  monitoring and analyzing the real control
  environment and fuzzy rules.  The output of all
  segments are for display only, they are NOT routed
  through output channels, but the inputs are brought
  in through the input channels.

Check Segment
  This feature allows user to examine one segment at
  a time.  Combined with other segment functions, i.e.
  preset and modify variables, user can check the
  response of the selected segment with fixed
  (constant) or manual values for inputs and local
  variables.

Simulation Mode
Adapt Mode
  See related topics.

Quit the program
  Select this option or type 'Q' to quit the program.

0: System Menu
1: The Windows
2: About GAF System
4: Simulation mode
5: Adapt mode
6: Change Simulation Parameters
7: Change segment and value
8: Arrange Display Windows
9: Setup adapt environment
A: Setup feedback module
B: Setup evaluation module
C: Control Genetic Algorithm
D: Report and Other Functions
E: Function Keys

@Simulation Mode
The simulation mode offers user to simulate the
system with feedback segment(s) for integration
test.  The feedback can be user defined segment(s)
with FEEDBACK keyword or user provided measured
data set.  Refer to topic "Setup Feedback Module"
for details about setting up feedback.  In
simulation mode GAF automatically closes the
control and feedback loop with the same
variable names.  For example, if there
is an input variable "POS_ERR" defined in the
control segment, and it is also declared as an
output in the feedback segment.  Then GAF
automatically use the result value from the
feedback segment as the input value of the control
segment.  On initialization GAF searches through all
segments to find matches among normal (control) and
feedback segments.

For monitor, check segment, and simulation modes,
the following interactive user interfaces are
supported.
  C     : toggles on/off continuous mode
  F     : continue until the end of the plot frame
  1 ~ 9 : run 1 ~ 9 steps
  0     : run 10 steps
  + -   : increase/decrease sample rate (see below)
  enter : single step
  alt-Q : quit the program
  cursor keys to scroll up, down, right, and left of
        text window
  All other keys, while not in continuous mode, are
        treated as "Enter" for single step.

Another major feature in GAF is that you can tune
your system by trying different schedule rate
(or cycle time defined in each segment).  There are
different time modes offered by simulation mode and
check mode.  These time modes are: real time mode,
simulated time mode, sim- schedule mode, and 24
hours clock mode.  Please refer to topic "Change
Simulation Parameter" for details about these time
modes.  There is an easy way to change the
sampling rate in sim-schedule and simulated
time mode.  That is to use the '+' and '-' keys.
By press '+' or '-' key, GAF adjusts the schedule
rate or cycle time by increasing or decreasing the
amount set with the Control section.
The current sample rate value will be displayed 
in the hint window.

0: System Menu
1: The Windows
2: About GAF System
3: System Run Modes
5: Adapt mode
6: Change Simulation Parameters
7: Change segment and value
8: Arrange Display Windows
9: Setup adapt environment
A: Setup feedback module
B: Setup evaluation module
C: Control Genetic Algorithm
D: Report and Other Functions
E: Function Keys

@Adapt mode
The genetic-adapt mode is an offline adaptation
mode.  While fuzzy logic mimics the human's imprecise
reasoning, the genetic algorithm mimics the
evolution of the nature.  The genetic algorithm uses
randomization techniques to optimize in a local
space without exhausting searching through the
state solution space.  With randomization, genetic
algorithm is also capable of escaping from local
optimum and hopping into a new better state.  GAF
uses genetic algorithm to derive proper rules and
fuzzy sets from the initial rules.  By changing,
adding, deleting rules and fuzzy membership sets of
the fuzzy system, the genetic algorithm
automatically adapts and optimizes the fuzzy
control system.

Besides the feedback segment, the adapt mode also
needs an evaluation segment for evaluating the
result of adaptation.  There are two ways to
specify evaluation segment, canned evaluation
or user defined segment.  See topic "Setup
Evaluation Module" for detail.

The evaluation process for genetic-adapt is
defined as follow.  GAF runs through all preset
cycles, which are preset conditions defined in
segments.  After each cycle the result score from
the evaluation segment (see Evaluation for defining
result) is compared against the minimum score.  If it
is below the minimum GAF stops further evaluation
of any unfinished cycles.  The final evaluation
result will be the average score of all the preset
cycles.

The creating of a new generation is described as
follow.  In order to produce a new generation GAF
picks, with weighed random, one or two out of a best
list, best generations, based on genetic algorithm
and availability in the list.  Then applies the
selected genetic algorithm to the picked item(s) to
create a new generation.

After starting adapt, GAF evaluates the selected
adapt segment and saves it on the top of the best
list.  The best list can save up to ten best
adaptations (or generations) in the order of their
performance -- the evaluation result.  GAF then
produces a new generation and evaluates this new
generation.  The evaluation result is compared with
those in the list, and the new generation will be
either inserted in the list or thrown away.  GAF
repeats this process -- creation, evaluation, and
judging the result, until reaches a pre-specified
maximum iteration or quit from the user.

User can specify the test time for preset test
cycle and number of samples should be taken for
evaluation.  The test time is used to run each
preset test, then GAF samples the score result for
the specified number of times.  The preset
evaluation result will be the average of all
samples, and the final result will be the average of
all preset cycles.  For example, if the test time is
two seconds and the number of samples is 4 (with 0.1
sample rate), the total time for a preset cycle will
be 2.3 seconds.  See "Setup Evaluation Module" for
how to define evaluation result.

The following interactive interfaces are supported
in adapt mode.
  C     : continue
  Alt-C : switch to continuous mode
  Alt-P : turn on iteration pause
  Alt-A : turn on preset cycle pause
  Alt-Q : quit the program
  cursor keys to scroll up, down, right, and left of
        text window
  All other keys will halt adapting temporary.

0: System Menu
1: The Windows
2: About GAF System
3: System Run Modes
4: Simulation mode
6: Change Simulation Parameters
7: Change segment and value
8: Arrange Display Windows
9: Setup adapt environment
A: Setup feedback module
B: Setup evaluation module
C: Control Genetic Algorithm
D: Report and Other Functions
E: Function Keys

@Change Simulation Parameters
The control menu allows user to change the control
and simulation environment.  Currently only
following functions are supported.

Real time mode
Simulated time mode
Sim-schedule mode
  As we mentioned, there are four different time
  modes: real time mode, simulated time mode, sim-
  schedule mode, and 24 hours clock mode.  The real
  time mode uses actual system clock (computer clock)
  for scheduling the segments.  This is the best way
  to tell whether you can use the development system,
  with the display mode, for online control or not. 
  This mode is the only allowed mode for running in the
  control mode.  The following is an example of how
  real time mode scheduling a three segments system
  with 0.1, 0.2, and 0.3 cycle time.  Assume that each
  segment takes 0.05 second to run.  GAF scheduling
  table will be:
        #   Time  Seg 1 Seg 2 Seg 3
      ----  ----  ----- ----- -----
        1   0.00    Run   Run   Run
        2   0.15    Run   ---   ---
        3   0.20    ---   Run   ---
        4   0.25    Run   ---   ---
        5   0.30    ---   ---   Run

  Instead of using real system time, the simulated
  time mode uses fixed time interval to simulate the
  schedule rate for the system.  For example if the
  user specified schedule interval is 0.1 second.
  Then the above scheduling table will be:
        #   Time  Seg 1 Seg 2 Seg 3
      ----  ----  ----- ----- -----
        1   0.0   Run   Run   Run
        2   0.1   Run   ---   ---
        3   0.2   Run   Run   ---
        4   0.3   Run   ---   Run
        5   0.4   Run   Run   ---

  The sim-schedule mode resembles to the simulated
  time mode, except that it does not use the cycle
  time of each segment for scheduling.  Instead the
  sim-schedule mode uses the schedule rate for all
  segments, i.e. runs all segments all the time. 
  Therefor, the scheduleing table will be:
        #   Time  Seg 1 Seg 2 Seg 3
      ----  ----  ----- ----- -----
        1   0.0   Run   Run   Run
        2   0.1   Run   Run   Run
        3   0.2   Run   Run   Run
        4   0.3   Run   Run   Run
        5   0.4   Run   Run   Run

Set simulated schedule rate
  Use this option to set desired time interval in
  seconds for either simulated time mode or sim-
  schedule mode.

Simulated clock mode
  The simulated clock mode is a variation of sim-
  schedule mode.  This mode allows user to simulate 24
  hours clock within a single plot frame.

Set increment/decrement value
  As mentioned, an easy way to change the simulated
  schedule rate is to use the '+' and '-' keys to
  increase and decrease the schedule rate.  This
  option allows user to set the amount of
  increasing/decreasing, the default value is 0.005
  second.

0: System Menu
1: The Windows
2: About GAF System
3: System Run Modes
4: Simulation mode
5: Adapt mode
7: Change segment and value
8: Arrange Display Windows
9: Setup adapt environment
A: Setup feedback module
B: Setup evaluation module
C: Control Genetic Algorithm
D: Report and Other Functions
E: Function Keys

@Change segment and value
The segment menu offers user three major
functions:
    Select a segment for display or for actions
    Change/modify the segment
    Control/change the display of the segment

Select segment
  Use this option to select a segment.  The default
  selected segment is the first segment (the segment
  0).  The selected segment is displayed in the
  display window and title window.

Change cycle time
  Change the cycle time for the selected segment. 
  Note that the real cycle time may depend on the
  running mode and time mode been selected.

Set input value
Set output value
Set local variable value
  These options allow user to manually set a
  variable's value.  After select one of these
  options, GAF popups a window with all available
  variable names alone with their variable number. 
  Select a variable, GAF then requests for new value. 
  Enter the new desired value will close all windows. 
  Note that you can use F7 to reset the system, see
  function key for detail.

Set output gain
  Use this selection to change the gain of selected
  output.  Again, just like setting variable value, GAF
  asks for output variable and then the new gain
  value.

Enable rule
Disable rule
  GAF allows you to enable or disable the rule(s) in
  any of the running modes.  The disabled rules are
  marked with 'x' at the first column in text window. 
  Select one of these options, GAF then highlights the
  first rule at the second column in text window.  Use
  cursor keys to move highlighted cursor and then
  press 'Enter' to enable or disable the rule.

Enable all rules
  This option gives user an easy way to enable all
  rules.

Select output to display result
  After changing the Display window's arrangement,
  i.e. selecting whole display or no plot mode, use
  this option to select the desired output you want to
  display.  GAF automatically selects the first output
  for displaying.

Select rule for firing window
  The above option (P) allows user to specify the
  output to display, this allows user to select
  rule(s) to be displayed with its detail inferencing
  in firing window.  When select this option, just
  like disable/enable rule, GAF uses the text window
  for selecting menu.  Note that selected rules are
  marked with 'x'.

Combined result only
  When this option is selected, GAF deselects all
  rules from displaying its inference (firing window). 
  So only the combined result will be displayed.

0: System Menu
1: The Windows
2: About GAF System
3: System Run Modes
4: Simulation mode
5: Adapt mode
6: Change Simulation Parameters
8: Arrange Display Windows
9: Setup adapt environment
A: Setup feedback module
B: Setup evaluation module
C: Control Genetic Algorithm
D: Report and Other Functions
E: Function Keys

@Arrange Display Windows
The display menu allows user to arrange and select
the screen layout, text font, and color of the
screen display.  In future version, GAF will also
allow user to put all these features in a
configuration file, which will be read in at
initialization.

Use standard font
Use small font
  With these two options, you can switch between
  normal text display or small font text display.

Select normal display mode
  The normal display mode displays the text window on
  the left portion of the display window and the plot
  window on the right.  See window split for changing
  the size of text window.

Select whole display mode
  In this mode the text window still occupies the left
  portion, but the right portion of the display window
  splits into two parts, the upper half shows the plot
  window, and the lower half displays the combined
  result and firing window.  See "Change Segment and
  Value" for more information about selecting rules
  and outputs.  See window split for changing size of
  text window.

Select plot only mode
  This option allows you to see only the plot.  GAF
  dedicates the entire display window to plot sub-
  window except reduces the text window to only first
  two columns on the left.

Select no plot mode
  This display mode removes plot window from the
  right portion.  So the combined result and firing
  window are displayed on the right along with text
  window on the left.

Select text only mode
  This mode shows the text window only.  Because
  graphics, trend plot draw result, and draw firing
  condition, takes much of CPU time, this mode allows
  you to speed up the test or control.

Set plot duration
  The default plot frame period is five seconds
  (except in auto clock mode).  Use this option to
  change the frame duration, the value is specified in
  seconds.

Change to color/mono display
  Use this option to switch between color and mono
  mode.

Window split (Change size of text window)
  Allows user to change the size of the text window to
  fit application.  The value is specified in percent,
  i.e. 60 means that text window occupies 60% of the
  display window.  If the value is greater than 90, GAF
  automatically switches to text only mode.  If the
  value is less than 10, GAF shuts text window off
  (except the left most two columns).

Display local variable
  The default display mode is to display/plot IN, OUT,
  and INOUT variables. The LOCAL variables are not
  displayed.  Use this option to enable LOCAL
  variables.

Change menu and highlight color
  These options allow user to modify some of the
  color attributes.  The next version will have more
  user control of the screen colors with a
  configuration file.

0: System Menu
1: The Windows
2: About GAF System
3: System Run Modes
4: Simulation mode
5: Adapt mode
6: Change Simulation Parameters
7: Change segment and value
9: Setup adapt environment
A: Setup feedback module
B: Setup evaluation module
C: Control Genetic Algorithm
D: Report and Other Functions
E: Function Keys

@Setup adapt environment
The adapt menu is used to change the overall
environment for genetic adaptation.  See topic
"Control Genetic Algorithm" for more information
about controlling the genetic algorithm.

Continuous mode
  Set the adaptation to continuous mode without
  pause or delay, unless user interferes.

Iteration pause
Pause per cycle
  These two options allow user to halt the adapting
  process in order to examine it.  The iteration pause
  is to halt at the end of each iteration.  The preset
  pause is to halt at the end of each preset cycle. 
  Type 'C' to continue, press Alt-C to switch back to
  continuous mode.

Number of samples
  Specifies number of samples should be taken for
  calculating each preset test's evaluation result.

Max best items
  The number of items kept in the best list.  The limit
  of this value is 1 to 10.

Max iteration
  This allows user to specify the number of
  iterations.  GAF stops after this number of
  iterations is reached.  If the value is less than or
  equal to 0, there be no limit.

Test time
  As explained the test time is the time for each
  preset test before evaluate the result.  Use this
  to set the proper value, in general it should be
  greater than the rising time for the longest
  response in all preset tests.

Iteration delay
Cycle delay
  Instead pause for each iteration/preset cycle,
  users can specify time delay between iterations or
  preset cycles.  Zero value means continuous.

Minimum score
  This value defines the minimum score for a
  successful preset test cycle.  GAF tries to go
  through all preset tests, but stops after any
  preset test failed to score the minimum value.  The
  default value is 0.6.

Adapt segment
  Use this option to change the segment you want to
  adapt.  The name of the selected adapt segment is
  shown on the next line.  Note that the selected
  adapt segment may not be the same as the selected
  display segment.

Use best list
Use original segment
  The first option allows user to pick one adaptation
  out of the best list and then switch to simulation
  mode for testing or debugging.  The "Use original
  segment" option allows user to switch back to the
  original segment, which is loaded from the file.

0: System Menu
1: The Windows
2: About GAF System
3: System Run Modes
4: Simulation mode
5: Adapt mode
6: Change Simulation Parameters
7: Change segment and value
8: Arrange Display Windows
A: Setup feedback module
B: Setup evaluation module
C: Control Genetic Algorithm
D: Report and Other Functions
E: Function Keys

@Setup feedback module
GAF supports two kinds of feedback modules for
simulation.  The first one is using user data, from
field measured data or generated from higher level
model.  The other choice is to use user defined
feedback segment.

A user defined segment is just like a control
segment with FEEDBACK keyword instead of SEGMENT. 
You can define the feedback segment with fuzzy
rules or with math formulas.  Multiple feedback
segments are allowed.  The outputs from feedback
segment(s) are routed to all segments' inputs if
they have the same variable name.  Please refer to
Fuzzy Control Language (FCL) guide for constructing
a GAF segment.

To use user data as feedback, user simply put data
in a text file with spread sheet like format, i.e., one
column per variable, one row per data set.  The data
must be an evenly distributed complete data set
with both input and output variables specified like
a feedback segment.  GAF only has limited capability
to handle non-evenly distributed data set.  The
output variables defined in this file will be treated
as output of a feedback segment.  Besides put data
in the text file, user can specify following options
in the same file or interactively.
    whether to compress data or not
    type of fuzzy set
    bandwidth of fuzzy set

Use feedback data
  With this option to select the use of feedback data
  specified in a text data file.  This option and the
  option 'U' are mutually exclusive.

Reload data
  Use this option to load or reload data from
  specified data file.

Feedback data file
  This option specifies the file name of the text
  feedback data file.

Examine feedback
  Use this option to check/examine the response of
  the feedback.  When selected, GAF uses check
  segment mode for user to examine its response.

User feedback
Feedback segment
  These two options are used to specify user defined
  feedback segment.  Use 'U' to select user feedback. 
  This will deselect feedback data option.  The 'S'
  option specifies which one is the feedback segment.

0: System Menu
1: The Windows
2: About GAF System
3: System Run Modes
4: Simulation mode
5: Adapt mode
6: Change Simulation Parameters
7: Change segment and value
8: Arrange Display Windows
9: Setup adapt environment
B: Setup evaluation module
C: Control Genetic Algorithm
D: Report and Other Functions
E: Function Keys
  
@Setup evaluation module
The Eval menu provides user for specifying type of
evaluations and related parameters.  There are two
types of evaluation: one is user defined evaluation
segment, the other one is using GAF supported
default evaluation.  With user evaluation segment,
the user has to specify which segment is the
evaluation segment and what is the final result (an
output variable) of the evaluation.  The default
evaluation segment name is "EVALUATION", and the
default result variable is "EVAL_RESULT".  When
user starts adapt mode, GAF tries to find both
evaluation segment and result variable, if not
defined GAF stops.  With GAF supported canned
evaluation the user must specify following
information:
    variable(s) to evaluate
    the target of those variable(s)
    the deadbands of those variable(s)
    the rising time
User can use non-symmetric deadband to achieve
overshoot or undershoot requirements.

Default evaluation
  To select default (canned) evaluation.  This will
  deselect user evaluation.  After select canned
  evaluation, user must specify output variable(s)
  for evaluation.

Variable to eval
  Use this option to specify the variable to evaluate
  and its target, rising time, and dead bands for
  selected display segment.  GAF pops up a window for
  user to select and fill in all parameters.

User evaluation
Eval segment
Eval result variable
  These three options are used to specify user
  defined segment.  Use 'U' to select user evaluation. 
  This will deselect default evaluation.  The 'E' option
  specifies which one is the evaluation segment, and
  the 'R' option specifies the evaluation result
  variable.

0: System Menu
1: The Windows
2: About GAF System
3: System Run Modes
4: Simulation mode
5: Adapt mode
6: Change Simulation Parameters
7: Change segment and value
8: Arrange Display Windows
9: Setup adapt environment
A: Setup feedback module
C: Control Genetic Algorithm
D: Report and Other Functions
E: Function Keys

@Control Genetic Algorithm
GAF uses weight random to select one of the genetic
algorithms for creating next generation.  The
method menu allows user to control these
algorithms by setting new weight factor.  A method
can be disabled by setting zero weight.  For example,
if no new rules are allowed then set "adding rules"
to zero.

Zero all weights
  This option zeros all weights in the upper
  half adapting methods.

Change rules
  The change rules method adapts the existing
  rules inside that generation.  The first
  option (in the upper half) changes the overall
  weight for adapting existing rules.  The second
  option is used to change the detail adapting
  weights inside change rules.  When the second
  option is selected, GAF pops up a sub menu
  under method menu.  The followings are options
  in the sub menu.

Adjust input set
  The adjust input set method alters the fuzzy
  membership sets defined in the segment.  The
  first option (in the upper half) changes the
  overall weight for adapting input fuzzy
  membership set. The second option is used to
  change the detail adapting weights inside
  input set adaptation.  When the second option
  is selected, GAF pops up a sub menu under
  method menu.  The followings are options in
  the sub menu.

    Mutate
      The mutate method randomly change one or
      two "cell" in the membership set.  Use this
      option to set the weight of mutation.

    Crossover
      The crossover method uses two parent genes
      (two generations from the gene pool) to
      generate next generation by inheriting
      cells from either parent.

    Intensify/dilute
      The intensify method intensifies the
      membership set, the dilute method dilutes
      the membership set.

    Broaden/restrict
      This method either broaden or restrict the
      fuzzy membersip set.

    Shift fuzzy set
      The shift method shifts the membership set
      along the value without changing its shape.

    Change truth
      This method alters the truth value of the
      selected fuzzy membership set.

    Scale (0 - 1)
      The scale factor defines how much the above
      methods, except mutate and crossover, would
      change the set's value.  One means 100% and
      zero means none.

Adding new rule
  This method creates new generation by adding new
  rule to the segment.  The new rule is created
  with the same way as described in change rule.

En/dis-able rule
  This method disable (or enable) rule to form a
  new segment.

Alter cycle time
  This method creates new generation by modifying
  the cycle time of the old segment.  The range of
  cycle time can be specified with max and min under
  adapt menu.

Alter output gain
  This method adjusts the output gain to form a new
  generation.

Max cycle time
Min cycle time
  These two values clamp the sample rate, the cycle
  time of the segment, so GAF will not exceed these
  limits during adaptation, if adapting of cycle time
  is enabled via Method menu.

Maximum rules
  This option allows user to set a limit for number
  of rules is allowed during adaptation.  If the
  number is less than 1 there will be no limit.


0: System Menu
1: The Windows
2: About GAF System
3: System Run Modes
4: Simulation mode
5: Adapt mode
6: Change Simulation Parameters
7: Change segment and value
8: Arrange Display Windows
9: Setup adapt environment
A: Setup feedback module
B: Setup evaluation module
D: Report and Other Functions
E: Function Keys

@Report and Other Functions
The Other menu provides the following functions:

Report selected best list
Report all items in list
Report file
  These options allow user to generate report about
  the item(s) in the best list.  Use 'R' to set the file
  name of the report.  Use 'A' to report all items in
  the list, and use 'P' to select one out of the list.

Enable adapt log
Enable detail log
Log file to
  In adapt mode, GAF can generate a log file for user
  to review.  Use 'L' to enable (disable) the log, use
  'D' to switch on (off) detail log.  Use 'O' to
  specify the log file name.

Enable plot data
Plot data to
  When enabled, GAF generates a data file for the
  result of each iteration.  The data file can be used
  by MyPlot to plot.  The 'T' option specifies the file
  name of the data file.

0: System Menu
1: The Windows
2: About GAF System
3: System Run Modes
4: Simulation mode
5: Adapt mode
6: Change Simulation Parameters
7: Change segment and value
8: Arrange Display Windows
9: Setup adapt environment
A: Setup feedback module
B: Setup evaluation module
C: Control Genetic Algorithm
E: Function Keys

@Function Keys

F1 - Get help
  Press F1 to call up the on-line help screen.  Inside
  help you can jump between topics by typing the
  corresponding number listed in main help, type '0'
  (zero) always gets you back to main help menu.

F2 - Display the system info
  Press F2 to see the system limits.

F3 - Next segment
  Press F3 to switch the display segment.

F4 - View segment information
  Press F4 to see the variable definition,
  initialization and run functions, and other
  information for the selected display segment.

F5 - View symbol definition
  Press F5 to see the fuzzy set symbols' definition
  for this segment.

F6 - View preset definition
  Press F6 to see the preset definition for this
  segment.

F7 - Reset the system
  The F7 function key allows you to reset the system
  -- that is to zero all inputs and outputs and reset
  the segment scheduler.  The system reset is
  actually defined in each segment's INITIALIZATION
  declaration.  GAF goes through all segments
  executes the initialization defined in each segment.

0: System Menu
1: The Windows
2: About GAF System
3: System Run Modes
4: Simulation mode
5: Adapt mode
6: Change Simulation Parameters
7: Change segment and value
8: Arrange Display Windows
9: Setup adapt environment
A: Setup feedback module
B: Setup evaluation module
C: Control Genetic Algorithm
D: Report and Other Functions
