Using Fminsearch to solve equation
20 views (last 30 days)
Show older comments
MAROUANE ENNAGADI
on 15 Apr 2019
Commented: Walter Roberson
on 3 May 2019
Hello,
I need your help to use fminsearch to solve this equation, I did not know how to solve it, because I'm a beginner in Matlab.

Best regard,
0 Comments
Accepted Answer
Walter Roberson
on 15 Apr 2019
Generally speaking,
f(x) = constant
can be solved by minimizing
(f(x) - constant)^2
This approach can be used with multiple variables.
The difficulty is in finding a starting point for the search. Different minimizers have different algorithms but in practice all of the local minimizer can get stuck in local minima. (Theory does say that Simulated Annealing will find the global minimum if given enough time but the time required might be many times the expected lifetime of the Universe)
3 Comments
More Answers (0)
See Also
Categories
Find more on Econometrics 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!