Random start on esfit with command line

A place to report and discuss potential bugs
Post Reply
Hironobu Tahara
Newbie
Posts: 2
Joined: Mon Jun 18, 2018 12:34 am

Random start on esfit with command line

Post by Hironobu Tahara »

Hi, I have a problem of Random Start on esfit without GUI.
I used EasySpin 5.2.16 on MATLAB 2016a on Widows 10 x64.
As described in the manual, FitOpt.RandomStart = 0 should mean the fitting starts with a center value.
But esfit does not accept FitOpt.RandomStart = 0, it always starts with random values.
If I did not set FitOpt.RandomStart field, esfit started with a center value.
If the field RandomStart in FitOpt structure, esfit starts with random values independent on the value of FitOpt.RandomStart.

For example, the following settings always gives me a random start in the esfit calculation.

Code: Select all

SimOpt = [];
FitOpt.Method = 'levmar fcn';
FitOpt.Scaling = 'lsq0';
FitOpt.RandomStart = 0;
FitOpt.PrintLevel = 1;
FitOpt.TolFun = 1e-6;
FitOpt.lambda = 1e-3;
FitOpt.delta = 1e-6;
BestSys = esfit('chili',Spc_exp,Sys,Vary,Exp,SimOpt,FitOpt);
Is that a bug?
Stefan Stoll
EasySpin Creator
Posts: 1050
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: Random start on esfit with command line

Post by Stefan Stoll »

Yes, this is a bug - thanks for reporting! This will be fixed in the next patch release.
Stefan Stoll
EasySpin Creator
Posts: 1050
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: Random start on esfit with command line

Post by Stefan Stoll »

This is fixed in 5.2.17
Hironobu Tahara
Newbie
Posts: 2
Joined: Mon Jun 18, 2018 12:34 am

Re: Random start on esfit with command line

Post by Hironobu Tahara »

The 5.2.17 is working as I have expected!
Thank you for your fixing!
Post Reply