Lookup table optmizer do not take the break point choise explicit
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Rahul
el 25 de Sept. de 2024
Hi @Paolo, can you provide the model that you're working on? That'll help in better understanding the issue.
Respuestas (1)
Rahul
el 4 de Oct. de 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 comentarios
Ver también
Categorías
Más información sobre Structures en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!