Convert a symbolic function in to optimization function
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Surrogate Optimization finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
