Hi Frederico, You are right. Can you report an issue on GitLab (https://gitlab.com/scilab/scilab/-/issues/)?
Thanks. Vincent From: users <users-boun...@lists.scilab.org> On Behalf Of Federico Miyara Sent: Wednesday, August 7, 2024 9:09 AM To: Users mailing list for Scilab <users@lists.scilab.org> Subject: [Scilab-users] Error message for datafit() 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 [cid:image001.gif@01DAECE1.0C1D8970]<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