KB000046

AIMMS Knowledge Base Article – KB000046

Warning: The local parameter … is not allowed in the interface attribute of module … because it is a local identifier, see also option “warning local in identifier collection”

The information in this article applies to:

  • AIMMS 3.9

Summary

A new compile check has been introduced on the interface attribute of a module. From AIMMS 3.9 onwards AIMMS will check whether interface attributes contain any local identifiers.

Symptoms

When opening an existing project in AIMMS 3.9 you run into the error or warning “The local parameter … is not allowed in the interface attribute of module … because it is a local identifier, see also option “warning local in identifier collection”.”. In AIMMS 3.9.0 this will be an error, from AIMMS 3.9.1 onwards this will be a warning.

Cause

Your model contains interface attributes with local identifiers. Local identifiers are identifiers that are declared local within a procedure or function.

Resolution

There are different possible resolutions:

  • Remove all local identifiers from interface attributes. Locals cannot be accessed from outside the procedure or functions in which they are declared, so their presence in the interface attribute didn’t have any use.
  • In AIMMS 3.9.1 or newer switch the option ‘Warning Local in Identifier Collection’ to ‘Off’. AIMMS 3.9.0 does not have this option.

More information

 See the help of option ‘Warning Local in Identifier Collection’ for more information.

 

Last reviewed: 04-06-2009