Lookup table optmizer do not take the break point choise explicit
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I'm trying to run the lookup table optimizer for 2d map. I need a lookup with explicit breakpoints, but even if i specify it, the tool always return an evenly spaced solution. Is there any way to force the choise?
thanks,
Paolo
1 commentaire
Rahul
le 25 Sep 2024
Hi @Paolo, can you provide the model that you're working on? That'll help in better understanding the issue.
Réponses (1)
Rahul
le 4 Oct 2024
Hi Prasanna,
As per the problem description, it seems like you have a 2D mapped data as 1-D Lookup Table in Simulink, which needs to be optimized for improved memory or approximated breakpoints.
Assuming you have two set of values which are mapped using some function (say ‘yPoints’ = f(‘xPoints’)), you can create a 1D Lookup Table and specify mapped output as Table Data and mapping input data as explicit breakpoints specification:
In this case, the Breakpoints Specification could have been set to “Even Spacing” leading to even the optimized table resembling evenly spaced breakpoints.
Post-Optimization Adjustments: If the optimizer is necessary for the function values but changes the breakpoints, you can run the optimization first and then reapply your breakpoints afterward. This ensures that the table values are optimized, but the breakpoints remain as desired.
You can refer to the following documentation on “Optimize Look-up Tables for Memory-Efficiency Programmatically” regarding usage of Lookup Table Optimizers:
0 commentaires
Voir également
Catégories
En savoir plus sur Structures dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!