Warning Exclamation Mark Equals is Start Comment
- Type
Selection
- Range
The settings listed below
- Default
Common_warning_default
This option determines what happens in case AIMMS encounters the string “!=” in the model text:
|
Do not issue a warning. |
|
Issue a warning and post it to the global error and warning collector. |
|
Take action depending on the option ‘Common warning default’. |
|
Issue a warning and post it to the nearest error handler. |
|
Take action depending on the option ‘Strict warning default’. |
|
Issue an error. |
|
In a developer system same as Error, in a deployment system same as Warning_handle |
|
In a developer system same as Error, in a deployment system same as Off |
|
In a developer system same as Warning_handle, in a deployment system same as Off |
Consider the following constraint:
Constraint someRestr {
IndexDomain: (i,j) | i != j;
Definition: ...
}
In this constraint, the “!” in the index domain starts a comment, it is not part of the “not equal” operator as seen in some other computer languages. Thus AIMMS will issue the message:
Warning: An exclamation mark in AIMMS starts a comment; the operator "!=" is not supported but the operator "<>" is.
This encourages the constraint to be written as:
Constraint someRestr {
IndexDomain: (i,j) | i <> j;
Definition: ...
}
Note
With the option Maximal Number of Warnings Reported you can set the maximal number of warnings that are shown in errors/warnings and message window.
Learn more about