n**o 发帖数: 11 | 1 I need to minimize f = F(X,Y,Z), subject to two conditions
1) maximizing G(X,Y,Z) w.r.t Z (I can not diferientiate G(Z).)
and 2) f(X,Z) = 0.
It is easy to implement the second condition using fmincon in matlab. but have no idea about the first condition. finmincon does not has such a constrain condition. any suggestion? thanks a lot
******************* script?
[] = fmincon(@minF, initials(x0,y0,z0), [] .. @constr)
function minF()
F = F(X,Y,Z);
function constr
how to maximize G(Z) in the constraint function?
Thanks a lot!!! |
|