[SciPy-Dev] scipy minimize with bound

Martin Hofsäß m.hofsaess at gmail.com
Mon Jan 26 03:00:49 EST 2015


Thanks,

it worked now.



2015-01-24 13:05 GMT+01:00 Pauli Virtanen <pav at iki.fi>:

> 24.01.2015, 04:33, Martin Hofsäß kirjoitti:
> > Hi all,
> >
> > I want to uses the minimize function with bounds,
> >
> > but I get an error:
> >
> > ValueError: _lbfgsb.setulb() 13rd argument (iprint) can't be converted to
> > int
> >
> > I call the function like this:
> >
> >
> spo.minimize(residuals,(3.9,40.,0.2),args=(k,puu,pvv,pww,cuw,stat),method='L-BFGS-B',options={'disp':'True','maxiter':100},tol=5.0e-7,bounds=((0,None),(0,None),(0,None)))
>
> Should have 'disp': True and not 'disp': 'True'
>
>
> >
> >
> > TNC and SLSQP worked with bounds.
> >
> >
> > I'm using linux 64bit python 2.7.3 with scipy 0.14.0.
> >
> > Thanks for your help.
> >
> >
> >
> > _______________________________________________
> > SciPy-Dev mailing list
> > SciPy-Dev at scipy.org
> > http://mail.scipy.org/mailman/listinfo/scipy-dev
> >
>
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20150126/15c99ca1/attachment.html>


More information about the SciPy-Dev mailing list