直接上代码, ops = sdpsettings('solver','mosek','verbose',0) solvesdp(F,object_fun,ops) 其中F是约束条件,object_fun是目标函数。