Borrar filtros
Borrar filtros

fmincon and optimization with a symbolic matrix

2 visualizaciones (últimos 30 días)
ali akbar
ali akbar el 14 de Sept. de 2020
Comentada: ali akbar el 14 de Sept. de 2020
I am working on the following optimization problem
syms t [1 16]
tt=reshape(t,[4],[4]);
a=tril(tt);
chi1=trasnpose(a)*a;
chi=randn(4,4);
fun=(chi1-chi).^2;
g=matlabFunction(fun)
gs=GlobalSearch;
opts=optimoption(@fmincon,'Algorithm','interior-point');
problem = createOptimProblem('fmincon','x0',[],'objective',g,'lb',[],'ub',[],'options',opts)
and I am getting an error
Undefined function 'optimoption' for input arguments of type 'function_handle'.
opts=optimoption(@fmincon,'Algorithm','interior-point');
I read on forum that fmincon doesn't solve symbolic problem so I tried another solver 'lsqnonlin' and lsqlin, but encountering a similar problem. Any help will be appreciated.

Respuesta aceptada

Steven Lord
Steven Lord el 14 de Sept. de 2020
The function is optimoptions (plural) not optimoption (singular).
  1 comentario
ali akbar
ali akbar el 14 de Sept. de 2020
Einstein was right, human stupidity has no bounds. Silly me. It solved the problem.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Nonlinear Optimization en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by