Lookup table optmizer do not take the break point choise explicit

조회 수: 11 (최근 30일)
Paolo
Paolo 2024년 9월 25일
답변: Rahul 2024년 10월 4일
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
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
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:

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by