Hi.
for i = 1:M
for k = 1:size(idx{i},2)
const_z = [const_z, z(:,i) >= z(:,idx{i}(k))];
end
end
Basically, what I want to express is the inequality constraints of two binary variables in some predetermined pair.
For example, z_1_1 >= z_1_10, z_1_1 >= z_1_15 , z_1_2 > z_1_17 and so on. Here, 10, 15 and 17 are predetermined.
When I run with above loop expression, it never starts to solve the problem.
I think this is due to sparsity of constraints.
Is there any way I can make above expression efficient?
Interestingly, when M = 100, it starts to solve in less than 2-3 minutes.
Thanks.
-JS