Lookup table optmizer do not take the break point choise explicit
9 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Rahul
2024 年 9 月 25 日
Hi @Paolo, can you provide the model that you're working on? That'll help in better understanding the issue.
回答 (1 件)
Rahul
2024 年 10 月 4 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Structures についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!