Fuzzy Logic Controller with Ruleviewer

Evaluate fuzzy inference system and view rules

  • Library:
  • Fuzzy Logic Toolbox

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

To create a fuzzy inference system, you can:

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.

Compatibility Considerations

expand all

Not recommended starting in R2018b

Extended Capabilities

Introduced before R2006a