One trick to have an equation only for the M-1 elements is by using the cardinal of a set (the number of elements): card(m) and the order:
myconstraint(m$(ord(m) ne card(m))..
With respect to your second question: A variable is defined over a set, e.g. X(i), but can’t be defined over a variable itself like you do X(Y).
Correct, but I don’t know if this is what you are looking for, is:
thanks a lot for the response.
Regarding the first question I’m sorry, I uploaded the wrong picture. So here is the right one:
So this is not possible?
I think I have the same problem regarding this constraint:
So there is no chance to implement constraints like this?