MATLAB: Can I tune a structure field or a parameter type of non-double with Simulink Design Optimizer 1.1(R2009b)

Simulink Design Optimization

I have a parameter in a model that is the field of a structure. For example, for the "Value" field in the dialog box of a Gain block, I may dereference a structure such as struct.gainval. I wish to use Simulink Design Optimizer on this field but I am not able to select it from the tunable parameters list because it is not there.

Best Answer

It is not possible to select a structure or the field of a structure for a tunable parameter in Simulink Design Optimizer 1.1 (R2009b).
As a workaround, you must create a scalar double from the structure and use the parameter of type double in the dialog box.