[SciPy-Dev] scipy minimize with bound

Pauli Virtanen pav at iki.fi
Sat Jan 24 07:05:14 EST 2015


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
> 





More information about the SciPy-Dev mailing list