If you are looking for something different, can you give a small example? Using just a few resources and reload points, list the sets that you would want to create, and the members that each set should have.
If you are looking for something different, can you give a small example? Using just a few resources and reload points, list the sets that you would want to create, and the members that each set should have.
In the indexing expression for CONSTRAINT2, you define the index “g”:
subject to CONSTRAINT2 {g in G, ...
But then, in the indexing expression for the summation in the constraint, you also define “g”:
sum {i in I, g in GG, ...
You are seeing the “syntax error” message because it is not permitted to redefine an index like “g” in a place where it is already defined. (Admittedly, the error message could be more informative.)
Probably the summation needs to be fixed, but I cannot say anything more definite, as I do not know how your model defines a and NUI.