Main Content

evalfisOptions

Option set for evalfis function

Description

Use an evalfisOptions object to specify options for the evalfis function.

Creation

Description

opt = evalfisOptions returns a default option set for evaluating a FIS using evalfis. To modify options, use dot notation.

example

opt = evalfisOptions(PropertyName=Value) specifies options using one or more name-value arguments. For example, opt = evalfisOptions(NumSamplePoints=51) sets the number of output fuzzy set samples to 51.

Properties

expand all

Number of sample points in output fuzzy sets, specified as an integer greater than 1.

To reduce memory usage while evaluating a Mamdani FIS, specify fewer samples. Doing so sacrifices the accuracy of the defuzzified output value.

Reducing the number of samples can make the output area for defuzzification zero. In this case, the defuzzified output value is the midpoint of the output variable range.

Dependencies

evalfis ignores this property when evaluating a Sugeno FIS.

Diagnostic message behavior when an input is out of range, specified as one of these values:

  • "warning" — Report the diagnostic message as a warning.

  • "error" — Report the diagnostic message as an error.

  • "none" — Do not report the diagnostic message.

When an input value is out of range, corresponding rules in the fuzzy system can have unexpected firing strengths.

Diagnostic message behavior when no rules fire, specified as one of these values:

  • "warning" — Report the diagnostic message as a warning.

  • "error" — Report the diagnostic message as an error.

  • "none" — Do not report the diagnostic message.

When NoRuleFiredMessage is "warning" or "none" and no rules fire for a given output, the defuzzified output value is set to its mean range value.

Diagnostic message behavior when an output fuzzy set is empty, specified as one of these values:

  • "warning" — Report the diagnostic message as a warning.

  • "error" — Report the diagnostic message as an error.

  • "none" — Do not report the diagnostic message.

When EmptyOutputFuzzySetMessage is "warning" or "none" and an output fuzzy set is empty, the defuzzified value for the corresponding output is set to its mean range value.

This diagnostic message applies only to Mamdani systems.

Object Functions

evalfisEvaluate fuzzy inference system

Examples

collapse all

Create option set object, specifying the number of sample points for output fuzzy sets.

options = evalfisOptions(NumSamplePoints=51)
options = 
  EvalFISOptions with properties:

                NumSamplePoints: 51
    OutOfRangeInputValueMessage: "warning"
             NoRuleFiredMessage: "warning"
     EmptyOutputFuzzySetMessage: "warning"

Alternatively, create a default option set, and configure properties using dot notation.

options = evalfisOptions;
options.NumSamplePoints = 51;

Extended Capabilities

expand all

Version History

Introduced in R2018a

expand all

See Also

Functions