title: What determines MaxAllowedNumWorkers?
body: <p>I want to <code>matlabpool open 24</code>. As the default value of NumWorkers in my machine is 12, I <a href="https://stackoverflow.com/a/24195409/395857">run</a>:</p>
  
  <pre><code>myCluster = parcluster('local');
  myCluster.NumWorkers = 12;  % 'Modified' property now TRUE
  saveProfile(myCluster);     % 'local' profile now updated,
                              % 'Modified' property now FALSE  
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code>Error using parallel.cluster.Local/hSetProperty (line 258)
  NumWorkers must be an integer from 1 to 12.
  </code></pre>
  
  <p>I comment out the bound check at parallel.cluster.Local/hSetProperty (line 258):</p>
  
  <pre><code>case 'NumWorkers'
  %                     if value &gt; obj.MaxAllowedNumWorkers
  %                         error(message('parallel:cluster:LocalInvalidNumWorkers', obj.MaxAllowedNumWorkers));
  %                     else
                          obj.LocalSched.setMaximumNumberOfWorkers( double( value ) );
  %                     end
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre class="lang-none prettyprint-override"><code>Error using parallel.cluster.Local/hSetProperty (line 260)
  Java exception occurred:
  java.lang.IllegalStateException: Too many licenses requested
  
      at com.mathworks.toolbox.distcomp.local.LocalScheduler.setMaximumNumberOfWorkers(LocalScheduler.java:89)
  </code></pre>
  
  <p>I am surprised by the error "Too many licenses requested". On one of my machine MaxAllowedNumWorkers is 512 (R2014a, Windows 7 SP1 x64 Ultimate), while on the two other one MaxAllowedNumWorkers is 12 only (R2012a, Ubuntu 12.04).</p>
  
  <p>Did MaxAllowedNumWorkers change from R2012a to R2014a? Does there exist different kind of licenses with a different MaxAllowedNumWorkers? Also, on the machine where MaxAllowedNumWorkers is 12 only, I can use the license on many other machines (over 100)at the same time (computer cluster), so I don't understand the hash restriction on MaxAllowedNumWorkers.</p>