convert a function into optimization expressions
Mostrar comentarios más antiguos
Dear ,
I am writting a code on optimization based on problem based approach; ie;
syms x,y
fun=a/b; % where a and b have a large value combination of random complex no of x and y.(it is nonlinear and non convex)
x = optimvar('x');
y = optimvar('y');
prob.Objective = fcn2optimexpr(fun,x,y); -----> showing error in this line
prob.Constraints.cons1 =norm(cr)^2<=10; ------> showing error in this line
How I can proceed from here.
Thank you.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Conversion Between Symbolic and Numeric 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!