ClauseParameters
Description
A ClauseParameters
object contains tunable settings for either
the antecedent or consequent of a fuzzy rule.
Creation
Create a ClauseParameters
object using the getTunableSettings
function. The
third output of getTunableSettings
contains RuleSettings
objects. The Antecedent
and Consequent
properties of
each RuleSettings
object are ClauseParameter
objects for
specifying the tunable settings of the corresponding rule.
Properties
Free
— Clause parameter values available for tuning
1
| 0
| array of logical values
Clause parameter values available for tuning, specified as a logical
1
or 0
, or an array of logical values. To apply
different settings to each clause parameter, specify an array of logical values. To
apply the same setting to all clause parameter values, specify a scalar logical
value.
When the ClauseParameters
object represents a rule antecedent, the
clause parameter values are the membership functions corresponding to each input
variable.
When the ClauseParameters
object represents a rule consequent, the
clause parameter values are the membership functions corresponding to each output
variable.
AllowNot
— Flag indicating whether to allow NOT logic in rule clauses
1
| 0
| array of logical values
Flag indicating whether to allow NOT logic in rule clauses, specified as a logical
1
or 0
, or an array of logical values. To apply
different settings to each clause parameter, specify an array of logical values. To
apply the same setting to all clause parameter values, specify a scalar logical
value.
AllowEmpty
— Flag indicating whether to allow ignoring inputs and outputs in rule clauses
1
| 0
| array of logical values
Flag indicating whether to allow ignoring inputs and outputs in rule clauses,
specified as a logical 1
or 0
, or an array of
logical values. To apply different settings to each clause parameter, specify an array
of logical values. To apply the same setting to all clause parameter values, specify a
scalar logical value.
Examples
Obtain Tunable Settings of Rules from FIS
Create two fuzzy inference systems, and define the connection between the two.
fis1 = mamfis('Name','fis1','NumInputs',2,'NumOutputs',1); fis2 = sugfis('Name','fis2','NumInputs',2,'NumOutputs',1); con = ["fis1/output1" "fis2/input1"];
Create a tree of fuzzy inference systems.
tree = fistree([fis1 fis2],con);
Obtain the tunable settings of rules of the fuzzy inference system.
[~,~,rule] = getTunableSettings(tree)
rule=18×1 object
16x1 RuleSettings array with properties:
Index
Antecedent
Consequent
FISName
⋮
You can use dot notation to specify the tunable settings of rules.
For the first rule, do not tune input 1 membership function index and do not ignore output 1 membership function index.
rule(1).Antecedent.Free(1) = false; rule(1).Consequent.AllowEmpty(1) = false;
For the second rule, allow NOT logic for input 2 membership function index.
rule(2).Antecedent.AllowNot(2) = true;
Version History
Introduced in R2019a
See Also
Beispiel öffnen
Sie haben eine geänderte Version dieses Beispiels. Möchten Sie dieses Beispiel mit Ihren Änderungen öffnen?
MATLAB-Befehl
Sie haben auf einen Link geklickt, der diesem MATLAB-Befehl entspricht:
Führen Sie den Befehl durch Eingabe in das MATLAB-Befehlsfenster aus. Webbrowser unterstützen keine MATLAB-Befehle.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)