[SciPy-Dev] Possible bug in SLSQP

Nils Wagner nwagner@iam.uni-stuttgart...
Tue Feb 28 12:42:47 CST 2012

Hi all,

I tried slsqp to solve an optimization problem.

Traceback (most recent call last):
   File "test_slsqp.py", line 63, in <module>
line 184, in fmin_slsqp
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)

How should I define the box constraints for slsqp ? It 
seems to be not unique for different optimizers in scipy.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_slsqp.py
Type: text/x-python
Size: 1569 bytes
Desc: not available
Url : http://mail.scipy.org/pipermail/scipy-dev/attachments/20120228/06788db7/attachment.py 

More information about the SciPy-Dev mailing list