"Hold Value" of a Fuzzy Control while no rule is active

1 回表示 (過去 30 日間)
Daniel
Daniel 2025 年 3 月 3 日
回答済み: Sam Chak 2025 年 3 月 4 日
Hello!
Ist there a way to hold the Output Value of a FIS while there is no rule active?
Thanks!
BG Daniel

回答 (1 件)

Sam Chak
Sam Chak 2025 年 3 月 4 日
If none of the rules is triggered for any output, the defuzzified output value will default to its mean range value, which is obviously undesirable. Ideally, you should ensure that the membership functions cover the entire range of the input variable.
I am not entirely certain how you would implement this; however, to access historical information from the fuzzy output variable when a certain condition is met, you need to use a currentValue variable to store the evaluated fuzzy output value (using evalfis) before the conditional check, and then hold a previous value in the previousValue variable within the conditional statement. If the condition is not met, you can continue evaluating the fuzzy system.
You should decide whether the If–Else approach or the while loop approach is more effective.

カテゴリ

Help Center および File ExchangeFuzzy Logic in Simulink についてさらに検索

タグ

製品


リリース

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by