KB000047

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

Summary

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.

Symptoms

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.”

Cause

Your model contains element parameters in a binding scope of a for loop.

Resolution

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’

More information

See the help of option ‘Require Binding Domain For To Be Indices Only’ for more information. 

 

Last reviewed: 04-06-2009