title: Error while passing two arguments to scipy.optimize.minimize
body: <p>I am trying to find a local minimum of a 2 variables function, but I am struggling with the syntax of scipy.optimize.minimize, as it looks like it is not accepting how I am passing the initial point:</p>
  <pre><code>import scipy.optimize as sop
  function = lambda x,y: 2*(x**2)*(y**2)+3*x*x+2*x+4*y+7
  p0 = [0,0]
  min_ = sop.minimize (function,x0=p0)
  </code></pre>
  <p>Resulting in the following error:</p>
  <p><code>TypeError: &lt;lambda&gt;() missing 1 required positional argument: 'y'</code></p>
  <p>passing the values directly to the function, such as:</p>
  <pre><code>function(0,0)
  </code></pre>
  <p>works without issue.</p>
  <p>But, if I pass an array or a tuple, it results in the same error:</p>
  <pre><code>x0 = (0,0)
  function(x0)
  </code></pre>
  <p><code>TypeError: &lt;lambda&gt;() missing 1 required positional argument: 'y'</code></p>
  <p>Help appreciated!</p>
  <p>Thank you</p>