Lookup table optmizer do not take the break point choise explicit

11 visualizzazioni (ultimi 30 giorni)
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 Commento
Rahul
Rahul il 25 Set 2024
Hi @Paolo, can you provide the model that you're working on? That'll help in better understanding the issue.

Accedi per commentare.

Risposte (1)

Rahul
Rahul il 4 Ott 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:

Categorie

Scopri di più su Structures 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!

Translated by