Why are my fuzzy rules and mf are not updating?
7 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a problem with my fuzzy logic system: Any update to my rulebase or membership functions is not showing any effect on the simulation. My simulink file is somehow pulling the rules and mf from somewhere else, because even when I delete all the rules and mf, the simulation still shows the same results.
Any help is appreciated.
Thank you
2 个评论
回答(1 个)
Aman Banthia
2023-10-7
Hi Julian,
It appears you are facing issues with your fuzzy logic system in MATLAB, specifically with the `artificialPancreasWithFISTreeControl` example from the Fuzzy Logic Toolbox. You are trying to modify the rule base and membership functions of your Fuzzy Inference System (FIS), but these changes do not seem to affect the simulation results. Even when you save your .slx and .mlx files, the rules and membership functions are sometimes saved and sometimes not.
Here are some steps to help troubleshoot your problem:
1. Saving Changes: After making changes in the rule viewer, ensure to save your changes. You can do this by clicking on "File" -> "Save System" or "File" -> "Export System". If this step is omitted, your changes may not be saved.
2. Updating FIS in Workspace: If you're making changes to the FIS using the rule viewer, you need to make sure that the updated FIS is being used in your Simulink model. You can export the updated FIS to the workspace (using "File" -> "Export System" in the rule viewer), and then update the FIS in your Simulink model to use this exported FIS.
3. Simulink Model Reference: Ensure that your Simulink model is referencing the updated FIS. If the FIS is defined in a MATLAB script or function, you'll need to rerun that script or function to update the FIS in the workspace.
4. Clearing Workspace: Consider clearing your MATLAB workspace before rerunning your simulation. This can help ensure that your Simulink model is using the latest version of the FIS.
5. Caching Issues: MATLAB might be using a cached version of your fuzzy inference system. Try clearing the cache using the `clear all` command before running your simulation.
Hope the above suggestions work.
Best Regards,
Aman Banthia
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!