I have a set called "Lines" and its respective index is "i"
I have an indexed paremeter called "Length(i)"
I have a scalar parameter called "best" that gives me a number representing whic is the best line.
I have a scalar parameter called "auxiliar"
When I try to change the value of the parameter inside a procedure there is no error:
Length(i | i=ElementCast(Lines, best)):= 0;
But when I try to change the value of another parameter with the expression Length(i | i=ElementCast(Lines, best)) on the other side of the assignment it shows an error.
auxiliar:=Length(i | i=ElementCast(Lines, best));
The error/warning that appears says: "The scope of index "c" has not been specified"