matlab cvx求解凸优化问题发现出错,希望能帮我解决一下

问题遇到的现象和发生背景

想运行一下文献的程序,下载了cvx,mosek,yalmip及gurobi,但是运行不出来
报错内容如下:
错误使用 + (第 83 行)
Disciplined convex programming error:
Illegal operation: {real affine} - {invalid}

出错 - (第 21 行)
z = plus( x, y, true, cheat );

出错 DRCVaR_Model>mosek_opt (第 146 行)
Dual1:[G -(p+G*u-(w-w.S)/2);(-(p+Gu-(w-w.*S)/2))' -r+a-C'*w-S'*w] == semidefinite(n+1);