ILOG CPLEX 11.0 Getting Started > Tutorials > Interactive Optimizer Tutorial > Entering a Problem > Entering Data

You can use the <return> key to split long constraints, and ILOG CPLEX still interprets the multiple lines as a single constraint. When you split a constraint in this way, do not press <return> in the middle of a variable name or coefficient. The following is acceptable:

time: -x1 + x2 + <return>
x3 <= 20  <return>
labor:  x1 - 3x2 + x3 <= 30  <return>

The entry below, however, is incorrect since the <return> key splits a variable name.

time: -x1 + x2 + x <return>
3 <= 20  <return>
labor:  x1 - 3x2 + x3 <= 30  <return>

If you type a line that ILOG CPLEX cannot interpret, a message indicating the problem will appear, and the entire constraint or objective function will be ignored. You must then re-enter the constraint or objective function.

The final thing to remember when you are entering a problem is that after you have pressed <return>, you can no longer directly edit the characters that precede the <return>. As long as you have not pressed the <return> key, you can use the <backspace> key to go back and change what you typed on that line. After <return> has been pressed, the change command must be used to modify the problem. The change command is documented in Changing a Problem .