param V > 0, integer;
var b{1..V,1..V} binary;
subject to constraint5 {i in 3..V:i mod 2=1}: b[i,i-1] = sum{j in 2..V:j mod 2=0 and j != (i-1)} b[i-1,j];
But I do not know how to have {1} as a union to {2, 4,..} exclude {i-1}. I need to add 1 as the only odd value. As you can see from my AMPL declaration, I do not have {1} as a union because I could not find a tutorial for it. I used V instead of N.
Please help. Thank you
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.