matlab运行时,lsqcurvefit出现问题,出现问题提示如下:Local minimum possible.lsqcurvefit stopped because the final change in the sum of squares relative to its initial value is less than the selected value of the function tolerance.Optim

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 10:39:52

matlab运行时,lsqcurvefit出现问题,出现问题提示如下:Local minimum possible.lsqcurvefit stopped because the final change in the sum of squares relative to its initial value is less than the selected value of the function tolerance.Optim
matlab运行时,lsqcurvefit出现问题,
出现问题提示如下:
Local minimum possible.
lsqcurvefit stopped because the final change in the sum of squares relative to its initial value is less than the selected value of the function tolerance.
Optimization stopped because the relative sum of squares (r) is changing
by less than options.TolFun = 1.000000e-008.
Optimization Metric
Optionsrelative change r = 3.23e-009 TolFun = 1e-008 (selected)
我的原代码段如下:
X0=[m_x,a_x,omega0,0]; %X初始值
lb=[-1,0,0,0]; ub=[1,1,inf,2*pi]; %X取值上下限
options=optimset('MaxFunEvals',2^12,'MaxIter',2^14,'TolX',1e-8,'TolFun',1e-8);
X=lsqcurvefit(@myfun,X0,t2,cos(beita_t),lb,ub,options);

matlab运行时,lsqcurvefit出现问题,出现问题提示如下:Local minimum possible.lsqcurvefit stopped because the final change in the sum of squares relative to its initial value is less than the selected value of the function tolerance.Optim
你能把具体问题给我吗,看我能不能帮到你.lhmhz@qq.com