Re: [Scilab-users] non linear optim

2017-04-07 Thread paul . bignier
Hello David, As the documentation examples work, I can't do much of this info unless I get a reproducible use-case. Maybe you could send us a minimalistic failing example? Also, could you please fill a bug for this so we can fix it for Scilab 6.0.1? Thanks and regards, Paul On 2017-04-04 16:

Re: [Scilab-users] non linear optim

2017-04-04 Thread David Chèze
Hi all, I worked further on this issue and found that it's new (unwanted) behavior in scilab 6 since the script performs well when run under scilab 5.5.1 on the same machine WIN7_64bits. In scilab 6 it fails with the error message : User function 'costf' have not been setted. while in scilab 5.5.

Re: [Scilab-users] non linear optim

2017-03-20 Thread paul . carrico
Hi All I've ever been thinking that fminsearch uses Nelder-Mead algorthm i.e. it is an order 0 method (no gradient is needed to determine the local extremum) ; this is a personnal approach but I uses NeldeMead (with bounds and restarts) instead of fminsearch for a limited number of variables.

Re: [Scilab-users] non linear optim

2017-03-20 Thread Tim Wescott
On Mon, 2017-03-20 at 08:53 -0700, David Chèze wrote: > Hi Paul, > > the leastsq examples run properly on my machine, as well as other > tests with > simple functions inside. > > I looked at leastsq first because of the minimal request very simple > way to > express the problem f=costf(X) with fu

Re: [Scilab-users] non linear optim

2017-03-20 Thread David Chèze
Hi Paul, the leastsq examples run properly on my machine, as well as other tests with simple functions inside. I looked at leastsq first because of the minimal request very simple way to express the problem f=costf(X) with functions that are not quickly vectorizable. Otherwise I was used to dataf

Re: [Scilab-users] non linear optim

2017-03-20 Thread Paul Bignier
Hello David, Do the examples 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 ? Regards, Paul

[Scilab-users] non linear optim

2017-03-20 Thread David Chèze
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 endfunct