MATLAB: How to set the Parameter Pooling optimization in Real-Time Workshop 6.0 (R14)

simulink coder

In Real-Time Workshop 5.0 (R13) there was an optimization called "Parameter Pooling" which could be turned on and off for code-generation. In Real-Time Workshop 6.0 (R14) and later I cannot find this option in the Configuration Parameters dialog anymore.

Best Answer

As of Real-Time Workshop 6.0 (R14) the Parameter Pooling optimization is automatically turned on when you check the "Inline Parameters" option.
If you set the "Inline Parameters" option to on, parameters which have the same data and are not tunable will be pooled. If you do not use the "Inline Parameter" optimization Real-Time Workshop assumes that every parameter in your model is independently tunable. In this case parameter pooling would not work at all.