Convert a symbolic function in to optimization function
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Surrogate Optimization en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
