in-place optimization

15 ビュー (過去 30 日間)
qun
qun 2023 年 4 月 13 日
回答済み: Muskan 2023 年 4 月 19 日
i have found that the simulink has automatically generate global variables for model outputs with this comment. struggle with what does this in-place optimization performed and trying to generated code without these automatically generated global variables.

回答 (1 件)

Muskan
Muskan 2023 年 4 月 19 日
Hi qun,
As per my understanding of the question 'in-place optimization' is a memory optimization technique that uses a single buffer, that is, the same memory to store the input and output data. Every time there is an intermediary output value in the algorithm, the same buffer is overwritten to store this value. This technique optimizes the memory usage and generates code that uses very less memory.
You can refer to the following documentation for a better understanding of the question:
Thanks

カテゴリ

Help Center および File ExchangeAUTOSAR Blockset についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by