matlab中fmincon的fun是矩阵运算怎么办?。
Mostrar comentarios más antiguos
想用优化算法求解一个矩阵运算式子的最小值,上网看了有关fmincon的资料,发现fmincon中的fun式子一般都是能写出x1,x2表达式的,比如
function y = fun1(x)
y = x(1)-0.25*x(2)+0.6;
如果我的fun是一个矩阵运算如:
min (h2-G2*phi2)'*W2*(h2-G2*phi2)
subject to: phi2>0
其中h2,G2,W2已知,phi2是一个3*1的向量,无法写出包含phi2(i)的具体式子,请问应该怎么办?
小弟初学优化算法,还请各位大虾多多指教~~
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre 编程 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!