How can I start with a specific city under a set of cities, rather than using x[i,j] I want to write such constraint x[1,2] + x[2,5] = 1
Moreover, how can I start from i=2, j=2 rather than start with i,j =1
Thanks, Haidar
How can I start with a specific city under a set of cities, rather than using x[i,j] I want to write such constraint x[1,2] + x[2,5] = 1
Moreover, how can I start from i=2, j=2 rather than start with i,j =1
Thanks, Haidar
I want to write such constraint x[1,2] + x[2,5] = 1
s.t. c1: x[1,2]+x[2,5]=1;
how can I start from i=2, j=2 rather than start with i,j =1
Define index sets that don't have 1 in them. For instance, if you have
set S := 1..s;
then you could either do:
set S_2 := 2..s;
or:
set S_2 := S diff {2};
and then create a constraint indexed on S_2.