Entering the example
This example appears throughout this tutorial about the Interactive Optimizer.
As an example, this manual uses the following problem:
| Maximize | x 1 + 2x 2 + 3x 3 |
| subject to | –x1
+ x2
+ x3
x1
– 3x2
+ x3
|
| with these bounds | 0 0 0 |
This problem has three variables (x1, x2, and x3) and two less-than-or-equal-to constraints.
The enter command is used
to enter a new problem from the keyboard. The procedure is almost
as simple as typing the problem on a page. At the CPLEX> prompt
type:
enter
A prompt appears on the screen asking you to give a name to the problem that you are about to enter.
Naming a problem
The problem name may be anything that is allowed as a
file name in your operating system. If you decide that you do not
want to enter a new problem, just press the <return> key
without typing anything. The CPLEX> prompt
will reappear without causing any action. The same can be done at
any CPLEX> prompt. If you do not want
to complete the command, simply press the <return> key.
For now, type in the name example at the
prompt.
Enter name for problem: example
The following message appears:
Enter new problem ['end' on a separate line terminates]:
and the cursor is positioned on a blank line below it where you can enter the new problem.
You can also type the problem name directly after the enter command
and avoid the intermediate prompt.
Summary
The syntax for entering a problem is:
enter problem name