📄 gaf.doc
字号:
S: Shift fuzzy set
The shift method shifts the membership set along the value
without changing its shape.
T: Change truth
This method alters the truth value of the selected fuzzy
membership set.
K: 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.
A: 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.
E: En/dis-able rule
This method disable (or enable) rule to form a new segment.
T: 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.
G: Alter output gain
This method adjusts the output gain to form a new generation.
1: Max cycle time
2: Min cycle time
These two values clamp the sample rate, the cycle time of the
segment. GAF will not exceed these limits during adaptation when
adapting of cycle time is enabled (the weight for alter cycle time is
greater than 0).
3: 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.
Function Keys
F1: Get help
GAF provides context sensitive help. Press F1 to call up the on-line
help. Inside help you can jump to other topic by selecting listed
topic.
F2: Display the system info
Press F2 to see the system limits. The system info shows the version
of GAF, 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)
Number of best genes
the maximum limit of the gene pool (best list)
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. The system
reset is defined in each segment's INITIALIZATION declaration. GAF
goes through all segments executes the initialization defined in each
segment and reset the segment scheduler.
Configuration
When starts up, GAF searches configuration file "GAF.CFG" under current
directory or where GAF.EXE resides. The configuration file is a text file
for setting up the GAF environment. The format of the configuration file
is a series of "attribute = attribute_value;". The attribute can be in any
order and can be defined multiple times with the latter value overrides
the previous value. The configuration attribute can also be included
inside FCL module file by enclosing it within "CONFIGURATION" and
"END_CONFIGURATION;" keywords. Because FCL modules are proce( *(after
GAF.CFG, so FCL's configuration will override GAF.CFG. The following
configuration attributes are provided by GAF.
COLOR_MODE
Enable/disable color display. Valid values are YES and NO. The
default is COLOR_MODE = YES;
MENU_COLOR
Sets the color for the system menu and pulldown menus. Available
colors are: BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN,
LIGHTGRAY, DARKGRAY, LIGHTBLUE, LIGHTGREEN, LIGHTCYAN, LIGHTRED,
LIGHTMAGENTA, YELLOW, WHITE. The default is MENU_COLOR = CYAN;
MENU_TEXT_COLOR
Sets the foreground text color for the system menu and pulldown
menus. The default is MENU_TEXT_COLOR = BLUE;
HIGHLIGHT_COLOR
Sets the color for the highlight bar. The default is HIGHLIGHT_COLOR
= GREEN;
HIGHLIGHT_TEXT_COLOR
Sets the foreground text color for the highlighted entry.
The default is HIGHLIGHT_TEXT_COLOR = RED;
DISPLAY_MODE
Initializes the display mode. Available values are: NORMAL_DISPLAY,
DISPLAY_PLOT_ONLY, DISPLAY_WHOLE, DISPLAY_NO_PLOT,
DISPLAY_TEXT_ONLY. Please refer to Display section for details.
The default is DISPLAY_MODE = NORMAL_DISPLAY;
WINDOW_SPLIT
Initializes the size of the text window. The value is in percentage of
the screen. Please refer to Display section for details.
The default is WINDOW_SPLIT = 55;
PLOT_DURATION
Assigns the duration of the trend plot in seconds.
The default is PLOT_DURATION = 5.0;
TEXT_FONT
FONT_SIZE
Configures the text font. Available font are: NORMAL and SMALL. The
size should be 1 for normal font and 4 for small font.
The default is TEXT_FONT = NORMAL; FONT_SIZE = 1;
DISPLAY_LOCAL_VARIABLE
This attribute determines whether local variables will be displayed
along with input/output variables.
The default is DISPLAY_LOCAL_VARIABLE = NO;
SIM_SCHEDULE_RATE
The SIM_SCHEDULE_RATE determines the simulated schedule rate. The
value should be a floating number in seconds.
The default is SIM_SCHEDULE_RATE = 0.06;
SIM_INC_RATE
The SIM_INC_RATE attribute defines the increment of + and - keys
during simulation mode. The default is SIM_INC_RATE = 0.005;
EVAL_SAMPLE
This attribute defines how many samples should GAF take for
calculating average evaluation result during adaptation.
The default is EVAL_SAMPLE = 3;
GENE_WEIGHT_INC
Defines the proportion weight increment for gene pool.
The default is GENE_WEIGHT_INC = 2;
MAX_BEST_ITEM
Initializes the gene pool size, i.e. number of best genes saved in the
best list. The default is MAX_BEST_ITEM = 10;
TEST_TIME
The TEST_TIME attribute initializes the duration for each evaluation
cycle for adaptation. The value is in seconds, and default is
TEST_TIME = 2.0;
MIN_SCORE
This attribute sets the minimum evaluation score for the adaptation
mode. The default is MIN_SCORE = 0.6;
CHG_RULE_WEIGHT
ADJ_INPSET_WEIGHT
ADD_RULE_WEIGHT
ABLE_RULE_WEIGHT
CHG_CYCLE_WEIGHT
CHG_GAIN_WEIGHT
These attributes are used to assign the weight for genetic adapting
methods. The values should be in integer, and the defaults are 1.
Please refer Method section for details.
ADJ_INPSET_MUTATE_WEIGHT
ADJ_INPSET_CROSSOVER_WEIGHT
ADJ_INPSET_INTENSIFY_WEIGHT
ADJ_INPSET_BROADEN_WEIGHT
ADJ_INPSET_SHIFT_WEIGHT
ADJ_INPSET_CHG_TRUTH_WEIGHT
ADJ_INPSET_SCALE
These attributes are used to assign the weight for adjusting the
input fuzzy membership set. The values should be in integer, and the
defaults are 1. Please refer Method section for details.
MAX_RULE
The MAX_RULE defines the maximum number of rules allowed during
adaptation. The default is zero, i.e. there is no limit for number of
rules.
MAX_CYCLE_RATE
MIN_CYCLE_RATE
These two attributes define the limit of cycle rate for the
adaptation. The default are:
MAX_CYCLE_RATE = 0.50;
MIN_CYCLE_TIME = 0.03;
EVAL_NULL_BAND
Defines the null band for the score of evaluation result. The default
is EVAL_NULL_BAND = 0.02;
ENABLE_ADAPT_LOG
ENABLE_DETAIL_ADAPT_LOG
ENABLE_PLOT_DATA_LOG
These attributes initialize the status of enable or disable adapt log,
adapt detail log, or the plot data log. Valid values are: YES to enable
and NO to disable. The defaults are NO.
ADAPT_LOG_FILE
PLOT_DATA_FILE
ADAPT_REPORT_FILE
STATISTIC_REPORT_FILE
These attributes define the file names for the adapt log, plot data,
adapt report, or the statistic report. The defaults are:
ADAPT_LOG_FILE = "adaptlog.log";
PLOT_DATA_FILE = "adaptlog.dat";
ADAPT_REPORT_FILE = "adaptlog.rpt";
STATISTIC_REPORT_FILE = "adaptlog.sta";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -