Convert a symbolic function in to optimization function
Afficher commentaires plus anciens
Hello dear Matlab Community,
I need to convert the following code automatically in the new form in order to optimize it automatically. This needs be done a couple of hundret times so there is no chance of doing it manually.
This is the symbolic function:
M1=10*sin(x1)*sin(x2) - 2*cos(x1)*sin(x2) - 12*cos(x2) - 3
This is how i would need in in order to work:
M1=@(x)10*sin(x(1))*sin(x(2)) - 2*cos(x(1))*sin(x(2)) - 12*cos(x(2)) - 3
Thank you for your help.
Greetings Richie
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Surrogate Optimization dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
