unsafe lsqrsolve : it may crash scilab without error message
Reported by David Chèze (@davcheze)
BUG DESCRIPTION:
----------------
I try to run a parameter fitting optimization with lsqrsolve : 2 parameters to calibrate and quite complex but stable (thermal transfers physical laws in background) non linear function(=physical model that is compared to experimental result dataset). I can't show the function.
lsqrsolve example ran properly on my machine (WIN7_64bits, scilab 6.0.0) but it crashes scilab (no intermediate message in the console) after only one call to my function evaloptiM1Dm where i set a "pause" to check what's going wrong (a direct call of my function with initial value performs well so I don't suspect any issue here).
I will look at tolerance and other tricks to try to get a solution from lsqrsolve : any suggestion ?
--> exec('opticoefM1D.sce', -1)
--> x0= [1.27 ; 0.8]
x0 =
1.27
0.8
--> selt= 1:7 //sélection de tests pour l'optimisation
selt =
1. 2. 3. 4. 5. 6. 7.
--> [xsol,v]=lsqrsolve(x0,evaloptiM1Dm,calctailleopt(selt))
Saisissez 'resume' ou 'abort' pour revenir au niveau de prompt standard.
> crash, scilab restart <
evaloptiM1Dm ok:
--> e=evaloptiM1Dm(x0,calctailleopt(selt));
-1-> resume
-->
ERROR LOG:
----------
HOW TO REPRODUCE THE BUG:
-------------------------
OTHER INFORMATION:
------------------