How to avoid going through unnecessary functions when tracing fmincon in Matlab to findout it call the right objective and constriant functions.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jamais avenir
le 6 Mar 2015
Réponse apportée : Brendan Hamm
le 18 Mar 2015
I want to trace fmincon function in Matlab to get sure it reads the objective function and constraints function from the right files. The problem is when I step in the fmincon function, it goes to other functions that are unnecessary for my tracing aim. I was wonder to ask, does anyone know which lines should I neglect in tracing to only find the part that How to avoid unnecessary functions for tracing of fmincon Matlab call my objective function and constraints function.
0 commentaires
Réponse acceptée
Brendan Hamm
le 18 Mar 2015
Sorry no one got to this one yet. The which command will tell you the location of the file which MATLAB finds first on its search path. If you objective is in a file myObjective.m, then:
which myObjective
will return to you the path of the file MATLAB would use for your objective in your call to fmincon. You can also return all of the files MATLAB finds on its path with the optional flag:
which myObjective -all
If you wish to view your MATLAB path their is an icon under the Environment Section of the Toolbar on your Home Tab. Just note that files in your current folder will always be found ahead of those in the search path.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!