ValueError: too many values to unpack in fmin_l_bfgs_b
<p>I have the following code that is running to run xfoil to get me optimum values of weights in an aerofoil.</p>

<pre><code>def four_dim_opt(x0, weight_limits, cl, file_path, xfoil_path):
opt_out = fmin_l_bfgs_b(run_xfoil_wcl, x0, args = (cl, file_path, xfoil_path), bounds =    weight_limits, epsilon = 0.01, approx_grad = True)
return opt_out
</code></pre>

<p>where run_xfoil_wcl is a functionreturning coefficient of drag values (float).</p>

<p>The error I keep getting is:</p>

<pre><code>Traceback (most recent call last):
File "&lt;pyshell#13&gt;", line 1, in &lt;module&gt;
four_dim_opt(x0, weight_limits, 1.2, file_path, xfoil_path)
File "H:/appliedlab4 - Copy(2).py", line 157, in four_dim_opt
opt_out = fmin_l_bfgs_b(run_xfoil_wcl, x0, args = (cl, file_path, xfoil_path), bounds =     weight_limits, epsilon = 0.01, approx_grad = True)
</code></pre>

<p>File "C:\Python27\lib\site-packages\scipy\optimize\lbfgsb.py", line 166, in fmin_l_bfgs_b
    l,u = bounds[i]
ValueError: too many values to unpack</p>

<p>Please help me out asap. THanks alot :D</p>
