cvx_begin
cvx_quiet(true);
variable C(10)
minimize sum©
subject to
for i=1:10
C(i)==0||C(i)==1;
end
cvx_end
http://cvxr.com/cvx/doc/basics.html#variables
variable C(10) binary
1 Like
cvx_begin
cvx_quiet(true);
variable C(10)
minimize sum©
subject to
for i=1:10
C(i)==0||C(i)==1;
end
cvx_end
http://cvxr.com/cvx/doc/basics.html#variables
variable C(10) binary