[Scilab-users] non linear optim

Paul Bignier paul.bignier at scilab-enterprises.com
Mon Mar 20 12:27:57 CET 2017


Hello David,

Do the examples <https://help.scilab.org/docs/6.0.0/en_US/leastsq.html> 
work? I need to know if the problem is related to your scripts or leastsq.
Could you please reduce to a minimal reproducible use-case and report it 
on the bugzilla <http://bugzilla.scilab.org>?

Regards,
Paul

On 03/20/2017 11:48 AM, David Chèze wrote:
> Hi,
>
> I'm running scilab 6.0 on WIN7_64 and I failed to run optimisation based on
> 'optim' functions (leastsq) while fminsearch performed well. The call in my
> code are summarized below :
>
> -----
> function RMSE=evaloptiM1D(X)
> ... calls to other macros to calculate the "cost"=RMSE returned value
> endfunction
>
> x0= [1.27 ; 0.8]
>
> [fopt, xopt]=leastsq(evaloptiM1D,x0)   //fail
>
> [x, fval]=fminsearch(evaloptiM1D,x0',opt)  //run ok
>
>
> ----------
> fminsearch returns successfully X = 1.22 0.77
> while
> leastsq starts then fails with :
>
> User function 'costf' have not been setted.
>
> Any idea about what it means and where it could comes from ?
>
> Thanks for your advice
>
>
> David
>   
>
>
>
>
> --
> View this message in context: http://mailinglists.scilab.org/non-linear-optim-tp4035880.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

-- 
Paul BIGNIER
Development engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170320/830146a0/attachment.htm>


More information about the users mailing list