How can I solve the problem about "input 2 expects a value in range [-3 3]"with fuzzy logic controller?

34 Ansichten (letzte 30 Tage)
I used the fuzzy logic controller with 2 inputs.But there are many warnings about its range.
Please see the pictures.
I also used the Saturation to limit the value......
A more incomprehensible question was that after changing the setting "out of range input value" from "warning" to "error" ,No error occurred!!
Please help me to solve these problems.
Thank you for your reply!
微信图片_20190303175757.png
微信图片_201903031757571.png
微信图片_201903031757572.png
微信图片_201903031757573.png

Antworten (1)

Sanju
Sanju am 25 Apr. 2024
  • Normalize the dataset by dividing each input by its maximum value to ensure uniform scaling.
  • Ignore errors by turning off warnings or changing error settings in the fuzzy logic controller block in Simulink.
  • Manually adjust the upper and lower bounds for input and output membership functions to accommodate for the error.
  • Employ an additional set of fuzzy rules that consider error derivatives for better control over the fuzzy logic-based controller outputs. Note that this approach requires extra setup work and computation time..
  • Define fuzzy input membership functions capable of handling values outside the specified range to ensure the controller can handle a wider range of input values.
For further assistance please share your model.
You can also refer to the below documentation links for more information,
Hope this helps!

Kategorien

Mehr zu Fuzzy Logic in Simulink finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by