Dear all,

There is a problem with function datafit(). When for some reason the solution 
doesn't converge, you get the following error message:

--> [pp,err] = datafit(GG, Z, ppo)
at line   243 of function datafit ( C:\Program 
Files\scilab-2024.1.0\modules\optimization\macros\datafit.sci line 255 )

costf: Wrong type for output argument #1: Real scalar expected.

This is misleading since the user doesn't really know the internals of 
datafit()'s code. Indeed I wasted considerable time trying to investigate the 
function's code in an attempt to figure out what might be going on, to no 
avail. Finally I tried luck changing the initial guess and was successful.

It would be more informative if some cue regarding what the user can do to get the desired solution 
were provided, for instance: "The initial guess is too far from a solution" or 
"Fitting process failed. Try another initial guess or another fitting model".

Regards,

Federico Miyara

[https://s-install.avcdn.net/ipm/preview/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
      Libre de 
virus.www.avast.com<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

_______________________________________________
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users

Reply via email to