⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gaf.doc

📁 王小平《遗传算法——理论、应用与软件实现》随书光盘
💻 DOC
📖 第 1 页 / 共 4 页
字号:
Convention
    The following conventions are used throughout this document.
        'Enter' means the Enter key or the Return key.
        Type 'key'  means press the specified key without 'Enter'.
        Press F?    means press the specified function key without 'Enter'.
        Enter   means type in the specified text and followed by 'Enter' key.
        Select/Use an option:
                use cursor keys to move the highlighted option and press
                'Enter', or type the upper-cased character on the left.
        GAF is not case sensitive, use either upper or lower cased key.


System Menu
    The GAF system menu, at the top of the screen, is the primary user
    interface to the system.  System menu provides sub-menu function
    selection (function menus): File, Run, Display, Control, Adapt, Method,
    Segment, Feedback, Eval, and Help.  Following sections describe each
    function in detail.  Use the first character of each selection or use
    cursor keys (right/left arrows) to select the sub-menu.  When a system
    menu item is selected a pull down menu appears to provide function
    selection.  To select a function either by the character on the left of
    that function or move the cursor with up/down arrow keys and then
    "Enter".  When a function is selected, further menu selection or data
    entry menu may be provided by that function.  Press ESC in pull down menu
    will return to system menu.  Press ESC under system menu will bring up the
    Run menu, except when the system menu was ESCaped from any of the
    running mode (i.e. from adapting or simulation).  Before discussing each
    menu item in detail, the screen windows are explained for clarification.


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 sub-windows: rule text window (text window), trend
    plot window (plot window), combined result window (result window), and fuzzy
    rule firing window (firing window).

    Menu Window
        The menu window is at the top of the screen occupied by the system
        menu as 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 Segment section for selecting a segment.  The
        title window is located immediately above segment display window. 
        Example of title window:
            Segment  0   20 Symbols   2 Inp VAR: MOVEMENT POS_ERR
            Cycle 0.06   11 Rules     1 Out VAR: CURRENT
        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.  Example of adapt window:

        Iteration=50 Items=10 Best=0.95 Last=0.85 Worst=0.55 Good=11 Bad=39
        Generation=4 From=2 Method=ADJUST_INPUT_SET.INTENSIFY_DILUTE
           Mutated set NEG_LARGE defined for POS_ERROR
        Average=0.935  Result= 0.935  0.935  0.935  0.935
        Where:
            Iteration   indicates number of iterations
            Items       items in the best list (gene pool)
            Best        the best score in the gene pool
            Last        the last score in the gene pool
            Worst       the worst score of all iterations
            Good        number of good iteration
            Bad         number of bad iteration
            Generation  the generation of current iteration
            From        which one (in the pool) been picked for adapting
            Method      the method used to adapt
            Average     average score for all tests
            Result      score for each test
            The third line indicates what was changed for the new generation.

    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 "Display" section
        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 (see Display section) the local variables are displayed
        after input variables.  In run modes, 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 sub-section "Set
        Plot Time Frame" under Display for changing the frame duration.

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

    Rule Firing Window
        The firing window shows the fuzzy inference status (firing condition)
        of selected rules.  This feature along with the stepping mode, under
        simulation or check segment, 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 Display section for arranging display window, and Segment
        section for selecting rules.

File: File Functions
    The File menu provides the following functions:

    Q: Quit
        Select 'Q' or use ALT-Q to exit the program.

    O: Open segment
        Select this option to open a segment from the specified file, GAF will
        prompt for the name of the file.  The segment file can also be
        specified as the command arguments.  When open a new file segment a
        sequence number will be assigned to that segment as its segment ID. 
        Use this ID to select display segment.

    C: Close segment
        Use to close a segment.

    B: Report selected best list
    A: Report all items in list
    R: 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 'B' to select one out of the best list.

    L: Enable adapt log
    D: Enable detail log
    G: 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
        'G' to specify the log file name.

    E: Enable plot data
    P: 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 'P' option
        specifies the file name of the data file.

    S: Generate statistic log
    T: Statistic to
        These options allow user to generate statistic report about the
        adaptation.  Use 'T' to set the file name of the statistic log.  The log
        includes statistics for all methods.  Based on the statistic you may
        want to adjust the weight of the methods.


Run : 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 adaptation. 
    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.


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

    R: 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.

    M: 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. 
        See Simulation mode for detail user interfaces.

    C: 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.  See Simulation mode
        for detail user interfaces.

    S: 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 Feedback section 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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -