When I place the NCD Outport in a model with a stop time of 'Inf', the constraints do not appear in the NCD constraint viewer GUI when I open it. The following error is displayed when I press 'start' in the NCD constraint viewer GUI:
??? Error using ==> : Maximum variable size allowed by the program is exceeded. Error in ==> D:\applications\MATLAB6p5\toolbox\ncd\nlinopt.m On line 85 ==> timepts = [tstart:ncdStruct.Tdelta:tfinal]'; ??? Error while evaluating uicontrol Callback.
For example, the following procedure will create an invalid NCD Blockset setup:
1) Open a new Simulink model
2) Open the 'Simulation' menu and select 'Simulation Parameters'
3) Change the 'Stop time' to 'Inf'
4) Add an NCD Outport to the model
5) Double-click on the NCD Outport to open the NCD constraint viewer GUI
The constraint window will be blank, and attempting to start the optimization procedure will result in an error.
Best Answer