RuleSettings
Tunable parameter settings of fuzzy rules
Description
Use a RuleSettings
object to specify the tunable parameter
settings for the rules of a fuzzy inference system.
Creation
Create a RuleSettings
object using getTunableSettings
. The third
output argument of getTunableSettings
contains a
RuleSettings
object for each rule in a fuzzy system.
Properties
This property is read-only.
Name of fuzzy inference system, represented as a string.
This property is read-only.
Index of rule in fuzzy inference system, represented as an integer.
Antecedent parameter settings, specified as a ClauseParameters
object with the following properties. The antecedent clause parameter values are the
membership functions corresponding to each input variable.
Property | Description | Default |
---|---|---|
Free | Available for tuning, specified as a logical | 1 for all elements |
AllowNot | Allow NOT logic in rule clauses, specified as a logical
| 0 for all elements |
AllowEmpty | Allow ignoring inputs and outputs in rule clauses, specified as a
logical | 1 for all elements |
Consequent parameter settings, specified as a ClauseParameters
object with the following properties. The consequent clause parameter values are the
membership functions corresponding to each output variable.
Property | Description | Default |
---|---|---|
Free | Available for tuning, specified as a logical | 1 for all elements |
AllowNot | Allow NOT logic in rule clauses, specified as a logical
| 0 for all elements |
AllowEmpty | Allow ignoring inputs and outputs in rule clauses, specified as a
logical | 1 for all elements |
Object Functions
setTunable | Set specified parameter settings as tunable or nontunable |
Examples
Create a fuzzy inference system.
fis = mamfis(Name="fis1",NumInputs=2,NumOutputs=1);
Obtain rule parameter settings from the FIS.
[~,~,rule] = getTunableSettings(fis);
Each rule parameter setting includes the FIS name, the index of the rule in the FIS, and parameter settings for the rule antecedent and consequent (the rule clauses). For each clause, you can specify the tunability settings.
View the default tunable settings for the antecedent of the first rule.
rule(1).Antecedent(1)
ans = ClauseParameters with properties: AllowNot: [0 0] AllowEmpty: [1 1] Free: [1 1]
You can use dot notation to specify the tunable settings for each rule.
Allow NOT logic in the antecedent of rule 1.
rule(1).Antecedent.AllowNot = true;
Make the consequent of rule 2 not available for tuning.
rule(2).Consequent.Free = 0;
Do not allow absence of a variable in the consequent of rule 3.
rule(3).Consequent.AllowEmpty = false;
Version History
Introduced in R2019a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)