I find that YALMIP may be not as convinient as imagine, so I write a piece of I LP to test the yalmip, Pardon my ignorance.
Min z=x1+x2+...+x100;
1) x_i is integer for i=1,2, ...,100;
2) x_i>0 for i=1,2, ...,100;
3) x_i<=x_{i+1}+x_{i+2} , i=1,2,...,98 (z_min=100)
I write the following precedures by yalmip:
x=intvar(1,100);
A=ones(100,1);f=A*X';
F=set(x>0)+set( ); solvesdp(F,-f); double(f); double(x)
My questions are that : (1) can we use for-lop in the "set( )''?
(2) how to definite the constraints condition conviniently.
Thanks!