AIMMS Knowledge Base Article – KB000047
Error : The element parameter … is not an index that can be given a scope.
The information in this article applies to:
- AIMMS 3.9
A new compile check has been introduced making sure that all identifiers in a binding domain of a for loop are indices. Previously element parameters were also allowed.
When opening an existing project in AIMMS 3.9 you run into the error “The element parameter … is not an index that can be given a scope.”
Your model contains element parameters in a binding scope of a for loop.
There are different possible resolutions:
- Remove the element parameter from the statement. These typically did not have any function anyway, as they had a fixed value within the for loop.
- Set the option ‘Require Binding Domain For To Be Indices Only’ to ‘Off’
See the help of option ‘Require Binding Domain For To Be Indices Only’ for more information.