https://ch.mathworks.com/help/simulink/slref/setactiveconfigset.html
setActiveConfigSet - Specify active configuration set or configuration reference for model - MATLAB
This MATLAB function activates the configuration set or configuration reference that is attached to model and is named configObjName.
specifyactiveconfigurationsetreference