![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1754754/image.png)
Permanent zero on Fuzzy block output P&O mppt algorithm
39 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Dear Staff and members,
I have an issue on my Fuzzy block which display only zero value on Matlab R2017b in a P&O MPPT algorithm model. If anyone can help. Thanks in advance.
2 Commenti
Sam Chak
il 17 Ago 2024 alle 19:51
Can't help without seeing the Simulink file and the FIS file. Can you put them in a zipped file and attach it by clicking that paperclip icon
?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1754754/image.png)
Risposte (1)
Sam Chak
il 18 Ago 2024 alle 8:50
From Scope 1, you can observe that the "error" value is -25; however, this value lies outside the range of the "error" fuzzy set. Therefore, I suspect that the defuzzified "output1" value was set to its mean range value (−1 + 1)/2 = 0. To address this issue, ensure that the operating values lie within the ranges of the fuzzy sets {'error' and 'change_in_error'} by properly scaling them. This will resolve the problem.
Unfortunately, your MPPT model contains an algebraic loop that cannot be solved. If you examine the loop highlighted in yellow, you will see that the computation in the 'Division × ÷' block requires the input value of Vd. However, the computation of Vd in the 'Addition' block depends on values derived from the output of the 'Division × ÷' block. This complex 'static' mathematical operation creates the "Algebraic Loop" issue.
In normal circumstances, 'dynamic' math operations are supplied with initial state values to prevent the "Algebraic Loop" issue that use the input value for the current time step to calculate the output value for the current time step.
Figure 1: Comparing the actual input values to the FIS and the ranges of Fuzzy Sets {'error' and 'change_in_error'}
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1754874/image.png)
Figure 2: Test if the FIS returns a non-zero output value if the input value lies in the range of the fuzzy set.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1754879/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1754884/image.png)
Figure 3: The ranges of the fuzzy sets are rescaled.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1754889/image.png)
Figure 4: The Fuzzy System issue is fixed, but the MPPT model contains an algebraic loop that cannot be solved.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1754894/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1754899/image.png)
5 Commenti
Sam Chak
il 19 Ago 2024 alle 17:03
My rhetorical question was intended to suggest that you insert a relatively fast dynamic first-order "Transfer Function" or "State-Space" block directly after the "Addition" block to break the unrealizable instantaneous algebraic loop.
With the "State-Space" block, you can specify the initial Vd freely. If you use the "Transfer Function" block, the solver assumes that the initial Vd is 0 by default.
Please test it and let me know if it works.
Vedere anche
Categorie
Scopri di più su Sources in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!