<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    Hello David,<br>
    <br>
    Do the <a
      href="https://help.scilab.org/docs/6.0.0/en_US/leastsq.html">examples</a>
    work? I need to know if the problem is related to your scripts or
    leastsq.<br>
    Could you please reduce to a minimal reproducible use-case and
    report it on the <a href="http://bugzilla.scilab.org">bugzilla</a>?<br>
    <br>
    Regards,<br>
    Paul<br>
    <br>
    <div class="moz-cite-prefix">On 03/20/2017 11:48 AM, David Chèze
      wrote:<br>
    </div>
    <blockquote cite="mid:1490006900946-4035880.post@n3.nabble.com"
      type="cite">
      <pre wrap="">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: <a class="moz-txt-link-freetext" href="http://mailinglists.scilab.org/non-linear-optim-tp4035880.html">http://mailinglists.scilab.org/non-linear-optim-tp4035880.html</a>
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Paul BIGNIER
Development engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
<a class="moz-txt-link-freetext" href="http://www.scilab-enterprises.com">http://www.scilab-enterprises.com</a></pre>
  </body>
</html>