I have a simevents model that can only be run in normal mode. I need to run 100 simulations using different initial seeds. To speed up the process, I would like to run it in parallel on my multi-core computer and store the output of those 100 simulations. The initial seed is denoted N and it takes the value from workspace. I used the following code:
mdl = 'simModel';
output1 = zeros(1,100); % preallocate memory
n = round(normrnd(1000,100));
output1(1,i) = max(broj);
??? Error using ==> parallel_function at 598 Error in ==> parallel_function>make_general_channel/channel_general at 894 Error occurred in 'simModel/Time-Based Entity Generator'. Error in 'simModel/Time-Based Entity Generator': Initialization commands cannot be evaluated.
Error in ==> uspelo2 at 7 parfor ii=1:100
I would greatly appreciate your help on this.