有没有大神能帮忙看一下下面的程序段,总在f=set(A*x<=B)+set(x>=lb)+set(x<=ub); 这一部分报错,是不是我约束条件的格式问题,如果有问题的话应该怎么改?还有关于intvar(m,n)函数的用法,m和n是数组大小么?
c=[1,1.5];
lb=[0;0];
ub=[maxa;25];
x=intvar(2,1);
A=[-8,-12
0 1
0 8
4 8
-4 -4];
B=[-(n1+n2+n3+n4)
sum(jiaoyun2(:,5))
n1
n1+n3
-n2-n4];
fval=c*x;
f=set(A*x<=B)+set(x>=lb)+set(x<=ub);
solvesdp(f,fval)
x=double(x);
x1=x(1);x2=x(2);
下面是错误提示:>> T2SET has been considered obsolete for many years, and the time has come...Update your code. 错误使用 constraintfile:///C:\Users\asus\AppData\Local\Temp\V7(XMWRN]{G8~CI}BCCR3QC.gift (line 6)Obsolete command
出错 T2 (line 56)f=set(A*x<=B)+set(x>=lb)+set(x<=ub);