フィルターのクリア

How to change TolFun?

2 ビュー (過去 30 日間)
Bestun
Bestun 2012 年 3 月 25 日
Dear All, Could one help me how to change TolFun ??
I look forward to hearing from you Regards Bestun

採用された回答

Geoff
Geoff 2012 年 3 月 25 日
You haven't said which solver you are using. Let's assume fzero:
opts = optimset('fzero');
opts = optimset( opts, 'TolFun', 1e-3 );
Then pass the options to your solver.
X = fzero( FUN, X0, opts );
This is all straight out of the documentation for optimset, by the way. =) Now that you know where to look, it's worth a read.

その他の回答 (1 件)

Bestun
Bestun 2012 年 3 月 25 日
many thanks Dear Geoff for your lovely answer regarding to my second question . I attached the code .Could you please see it The message error is Exiting: One or more of the residuals, duality gap, or total relative error has grown 100000 times greater than its minimum value so far: the primal appears to be infeasible (and the dual unbounded). (The dual residual < TolFun=1.00e-008.)

カテゴリ

Help Center および File ExchangeOptimization についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by