Code covered by the BSD License  

Highlights from
Alghorithm of Karge Thompson

from Alghorithm of Karge Thompson by katysusyrico Schenone
Calcolate the best combination of N-jobs for minimize the time setup.

setup(A,TemporyCombination)
function [SumTimeSetup] = setup(A,TemporyCombination)

L=length(TemporyCombination);
SumTimeSetup=0;
%calculate all time setup for every combination
for i=1:L-1;    
       SumTimeSetup=SumTimeSetup + A(TemporyCombination(1,i),TemporyCombination(1,i+1));   
end
end

Contact us at files@mathworks.com