CFTool Parameter bounds dependent on Parameters from same run
2 views (last 30 days)
Show older comments
Hello, I am trying to use the CFTool command to get parameters for a function.
The fitting etc works alright and I managed to get the Code from the Curve Fitter in my Matlabcode.
I have 5 parameters (a,b,c,d,e) where the max value of "d" should be smaller than the value of "b".
Can anyone help me out here?
When I use "opts.Upper" it´s not possible to type in b for the max value.
Help would be appreciated.
Greetings
0 Comments
Answers (1)
Sarthak
on 21 Mar 2023
Hi Matthias,
As per my understanding, the opts.Upper parameter only allows you to set upper bounds on the parameters values. It should allow you to set the upper limit of d as b. I would advise you to double check your syntax and that you have provided the correct order in the opts.Upper option.
You can also refer to this documentation to verify whether you are following the correct steps.
However one other way to work around this is you can set the ‘d’ value to be much larger than the expected value and in the fitting function, you can manually enforce the constraints that ‘d’ must be less than ‘b’.
0 Comments
See Also
Categories
Find more on Interpolation 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!