[SciPy-Dev] Possible bug in SLSQP

Nils Wagner nwagner@iam.uni-stuttgart...
Tue Feb 28 14:01:38 CST 2012


On Tue, 28 Feb 2012 14:30:53 -0500
  Denis Laxalde <denis.laxalde@mcgill.ca> wrote:
> Nils Wagner a écrit :
>> I tried slsqp to solve an optimization problem.
>> 
>> Traceback (most recent call last):
>>    File "test_slsqp.py", line 63, in <module>
>>      x_opt=fmin_slsqp(func2,x0,bounds=bounds)
>>    File 
>> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/optimize/slsqp.py", 
>> line 184, in fmin_slsqp
>>      full_output=full_output)
>>    File 
>> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/optimize/slsqp.py", 
>> line 309, in _minimize_slsqp
>>      raise IndexError('SLSQP Error:  If bounds is 
>> specified, '
>> IndexError: SLSQP Error:  If bounds is specified, 
>> bounds.shape[1] == len(x0)
> 
> 
> That's a bug. I just pushed a fix in master.
> Thanks for reporting.
> 
> 
> -- 
> Denis

BTW, is this another issue ?

   File 
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/optimize/lbfgsb.py", 
line 157, in fmin_l_bfgs_b
     options=opts, full_output=True)
   File 
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/optimize/lbfgsb.py", 
line 270, in _minimize_lbfgsb
     isave, dsave)
ValueError: failed to initialize intent(inout) array -- 
input not fortran contiguous

Nils


More information about the SciPy-Dev mailing list