Set parameterlimits while fitting with fminsearch

1 view (last 30 days)
Hello, I have a function with which I have estimated the parameters for two linked differential equations. I minimize with fminsearch the quadratic errors between original data and function data. However, I have now extended/changed my differential equation, so that the fit spits out no more justifiable values. Therefore, I would like to know if there is a possibility to determine an area in which the parameter must be located. I hope someone knows a solution

Accepted Answer

Matt J
Matt J on 21 Oct 2019
Edited: Matt J on 21 Oct 2019
Here is a fairly popular version of fminsearch that lets you apply constraints
I haven't had the occasion to use it myself, though.
  2 Comments
Matt J
Matt J on 22 Oct 2019
You're welcome, but please Accept-click the answer if you consider your question resolved.

Sign in to comment.

More Answers (0)

Categories

Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!