AIMMS Knowledge Base Article – KB000045
Error/Warning: Emptying the parameter/variable … is a range violation because the default … is outside the range […,…], see also option “warning [variable] range violation”
The information in this article applies to:
- AIMMS 3.9
A new range check has been introduced when emptying an identifier. From AIMMS 3.9 onwards upon executing an empty statement AIMMS will check whether the default is within the allowed range.
When running an existing project in AIMMS 3.9 you run into the error or warning “Emptying the parameter/variable … is a range violation because the default … is outside the range […,…], see also option “warning [variable] range violation”.”
Your model contains empty statements on parameters or variables for which the default is not within the allowed range. In AIMMS 3.9 the execution engine has an extra check that results in this error (in case of parameters) or warning (in case of variables).
There are different possible resolutions:
- Make sure all defaults are within the range. There is a new option “Warning Default Outside Bounds”, which you can switch to ‘Warning’ or ‘Error’ to help you identifier inconsistent default and range combinations.
- If you have no problem with the identifiers getting values outside the range when executing an empty statement, you can switch the options ‘Warning Range Violation’ and ‘Warning Variable Range Violation’ ‘Off’, in which case the range check will also be switched off during normal assignment execution.
See the help of options ‘Warning Default Outside Bounds’, ‘Warning Range Violation’ and ‘Warning Variable Range Violation’ for more information.