Main Content

Fuzzy Logic Controller with Ruleviewer

Evaluate fuzzy inference system and view rules

  • Library:
  • Fuzzy Logic Toolbox

  • Fuzzy Logic Controller with Ruleviewer block

Description

The Fuzzy Logic Controller with Ruleviewer block implements a fuzzy inference system (FIS) in Simulink® and displays the fuzzy inference process in the Rule Viewer during the simulation. You specify the FIS to evaluate using the FIS matrix parameter. To change the time between Rule Viewer updates, specify the Refresh rate in seconds.

For more information on fuzzy inference, see Fuzzy Inference Process.

The Fuzzy Logic Controller with Ruleviewer block does not support all the features supported by the Fuzzy Logic Controller block. The Fuzzy Logic Controller with Ruleviewer block:

  • Only supports double-precision data.

  • Uses 101 points for discretizing output variable ranges.

  • Only supports Interpreted execution simulation mode.

  • Does not have additional output ports for accessing intermediate fuzzy inference results.

Ports

Input

expand all

For a single-input fuzzy inference system, the input is a scalar. For a multi-input fuzzy system, combine the inputs into a vector signal using blocks such as:

Output

expand all

For a single-output fuzzy inference system, the output is a scalar. For a multi-output fuzzy system, the output is a vector. To split system outputs into scalar signals, use the Demux (Simulink) block.

Parameters

expand all

Fuzzy inference system to evaluate, specified as a mamfis or sugfis object. Specify the name of a FIS object in the MATLAB® workspace.

Programmatic Use

Block Parameter: fismatrix
Type: string, character vector
Default: "fis"

Time between rule viewer updates in seconds, specified as a scalar. During simulation, the Rule Viewer display updates at the specified rate to show the inference process for the latest input signal values.

Programmatic Use

Block Parameter: Ts
Type: string, character vector
Default: "2"

Compatibility Considerations

expand all

Warns starting in R2019b

Extended Capabilities

Introduced before R2006a