[SciPy-dev] SLSQP Constrained Optimizer Status

Rob Falck robfalck at gmail.com
Wed Dec 19 20:49:08 EST 2007


Thanks for the heads up.  Passing the constraints via f_eqcons and f_ieqcons
needs more work.  I'll get on that asap.

On Dec 18, 2007 3:44 PM, dmitrey <dmitrey.kroshko at scipy.org> wrote:

> Hi Rob, could you check the line 224 (slsqp.py)
>
> a = numpy.concatenate( (fprime_cons(x),zeros([la,1])),1)
>
> I found the problem is here (lines 163-165):
>    meq = len(eqcons)        # meq = The number of equality constraints
>    m = meq + len(ieqcons)   # m   = The total number of constraints
>    la = array([1,m]).max()  # la  =
>
>
> So when user pass for example f_eqcons instead of eqcons, there is no
> appropriate handling of the situation in the code above these lines, so
> it produces la = 1 and error in concatenate.
>
> I will try to continue connecting slsqp to OpenOpt after you'll inform
> about fixing the bug, ok?
>
> Regards, D.
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-dev
>



-- 
- Rob Falck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20071219/3578667b/attachment.html>


More information about the SciPy-Dev mailing list