"Hold Value" of a Fuzzy Control while no rule is active
1 回表示 (過去 30 日間)
古いコメントを表示
Hello!
Ist there a way to hold the Output Value of a FIS while there is no rule active?
Thanks!
BG Daniel
0 件のコメント
回答 (1 件)
Sam Chak
2025 年 3 月 4 日
Hi @Daniel
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Fuzzy Logic in Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!