我想使用 Mosek 解决以下 LP(从 Matlab 调用)
max wrto b A'b where -1<=b<=1
A,b 的长度为 L。
这就是我实现它的方式。
clear
rng default
L=5;
A= 1.0e-03 *[0;0;0.8217;0;0]';
prob.blx=-ones(L,1); %lower bound unknowns
prob.ulx=ones(L,1); %upper bound unknowns
prob.c=A; %objective function
param_MOSEK.MSK_IPAR_LOG = 0;
[~,res] = mosekopt('maximize echo(0)',prob, param_MOSEK);
我收到此错误:Error(1200): prob.a not specified
我该如何解决?