fminsearch with boundary conditions on parameters
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Simulink Design Optimization finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!