Comments
Explains the syntax of comments in OPL.
Script supports two different styles of comments:
Single line comments: A single line comment starts with
//and stops at the end of the line.Example:
x = x+1 // Increment x, y = y-1 // then decrement y.Multiple line comments: To span on more than one line, comments must start with a /* and ends with a */; Nested multiple line comments are not allowed.
Example:
/* The following statement increments x. */ x = x+1 /* The following statement decrements y. */ y = y /* A comment can be inserted here */ -1