Main Content

MembershipFunctionSettings

Tunable parameter settings for fuzzy membership functions

Description

Use a MembershipFunctionSettings object to specify the tunable parameter settings for a type-1 membership function.

For more information on the tunable settings of a type-2 membership function, see MembershipFunctionSettingsType2.

Creation

Create MembershipFunctionSettings objects using the getTunableSettings function with a mamfis, sugfis, or fistree object. The first and second outputs of getTunableSettings contain VariableSettings objects for input and output variables, respectively. If a VariableSettings object corresponds to a variable with type-1 membership functions, then its MembershipFunctions property contains MembershipFunctionSettings objects.

Properties

expand all

Membership function parameter tunable settings, specified as a NumericParameters object with the following properties.

PropertyDescriptionDefault
Free

Parameter values available for tuning, specified as a vector of logical values where each element specifies whether the corresponding membership function parameter is available for tuning.

1 for all elements
Minimum

Minimum parameter values, specified as a vector where each element specifies the minimum value for the corresponding membership function parameter.

-Inf for all elements
Maximum

Maximum parameter values, specified as a vector where each element specifies the maximum value for the corresponding membership function parameter.

Inf for all elements

Object Functions

setTunableSet specified parameter settings as tunable or nontunable

Examples

collapse all

Create a fuzzy inference system.

fis1 = mamfis(Name="fis1",NumInputs=2,NumOutputs=1);

Obtain the tunable settings of input and output variables of the fuzzy inference system.

[in,out] = getTunableSettings(fis1);

You can use dot notation to specify the tunable settings of input and output variables.

For the first membership function of input 1, set the first and third parameters to tunable.

in(1).MembershipFunctions(1).Parameters.Free = [1 0 1];

For the first membership function of input 2, set the minimum parameter range to 0.

in(2).MembershipFunctions(1).Parameters.Minimum = 0;

For the first membership function of the output variable, set the maximum parameter range to 1.

out(1).MembershipFunctions(1).Parameters.Maximum = 1;

Version History

Introduced in R2019a