title: Supply different arguments for scipy.minimize in each iteration
body: <p>I want to supply a different arguments for each iteration in <code>scipy.minimize</code>.</p>
  
  <p>What I am trying to do is:</p>
  
  <pre><code>res = minimize(func, x0, method='BFGS', args=(a,b,c))
  </code></pre>
  
  <p>Here, <code>func</code> is some large function. Inside <code>func</code>, there is a routine that outputs a log file. I want to take a log file from each iteration of the minimization process and carry out some analysis. However, in order to save log files with different names, I need to supply an iteration number to <code>func</code>. Is there any clever way to do it?</p>