フィルターのクリア

fminsearch with boundary conditions on parameters

18 ビュー (過去 30 日間)
mark wentink
mark wentink 2012 年 6 月 20 日
hello everyone,
I am using fminsearch to find three parameters for theoretical values of my data, but matlab occasionally gives me negative values as the best fit, which is experimentally impossible. I was wondering if it was possible to set conditions for the parameters. In the following,I want the three values in p to be strictly positive:
[p1, c1]=fminsearch(@(p)chi2S(p,testConc,testIL202, testEdraw), p0)
thanks for your help, Mark

採用された回答

Sargondjani
Sargondjani 2012 年 6 月 21 日
in the file exchange there is an fminsearch with boundaries (fminsearchbnd)
i assume you dont have the optimization toolbox, otherwise you could use fmincon

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by