フィルターのクリア

Lsqnonlin failure optimization Global Local

1 回表示 (過去 30 日間)
DIMITRY
DIMITRY 2016 年 3 月 16 日
回答済み: Alan Weiss 2016 年 3 月 16 日
Hi world,
I have the following error using lsqnonlin to fo an optimization. I am running 5 optim in a for loop to fit as close as my objective function. At one step the solver return the following error while the previous optimizations where fine. The last step before the error was pretty close to the expectation I would expect the solver to get out without error.
Failure to solve for root in analytic expression.
My objective function is as a square of a relative difference ie (x-m)./m)^2 the solver's options are as follow: options = optimset('disp','iter','MaxFunEvals',1000,'TolX',1e-8,'TolFun',1e-5,'Algorithm','trust-region-reflective','UseParallel','always');
Can I kindly ask you how to hand over this issue?
Regards,

回答 (1 件)

Alan Weiss
Alan Weiss 2016 年 3 月 16 日
It sounds like the error is coming from your objective function. Can you show us your objective, please?
Alan Weiss
MATLAB mathematical toolbox documentation

カテゴリ

Help Center および File ExchangeSolver Outputs and Iterative Display についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by