Using Fminsearch to solve equation
13 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
MAROUANE ENNAGADI
il 15 Apr 2019
Commentato: Walter Roberson
il 3 Mag 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 Commenti
Risposta accettata
Walter Roberson
il 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)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Econometrics Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!