Cplex: Accessing help within Cplex

After starting Cplex, your system prompt should change from a basic UNIX prompt to a CPLEX> prompt. To access help type:

help

after the CPLEX> prompt. A list of the CPLEX commands will appear on the screen. Since all commands start with a unique character, you can also type just a single letter to execute most commands. For example, to access help, type:

h

After typing the help command, the following list of available commands will appear on the screen.

add             add constraints to the problem
baropt          solve using barrier algorithm
change          change the problem
display         display problem, solution or parameter settings
enter           enter a new problem
help            provide information on CPLEX commands
mipopt          solve a mixed integer program
netopt          solve the problem using network method
primopt         solve using the primal method
quit            leave CPLEX
read            read problem or basis information from a file
set             set parameters
tranopt         solve using the dual method
write           write problem or solution info. to a file
xecute          execute a command from the operating system

Enter enough characters to uniquely identify commands & options.
Commands may be executed in either of two formats:
1. Incremental entry--enter the command name, and CPLEX
   will prompt you for additional required information.
2. Single-line entry--CPLEX accepts single-line command
   strings, provided simple syntax rules are observed.

All cplex commands available to you will appear in this list. Notice that one command has already been used, the help command.

To find out more about a specific command, type help followed by the name of that command. For example, to learn more about the optimize command type:

help optimize

Remember that typing the full name is unnecessary. You could alternatively try:

h o

Print Article

Related Services / Offerings (1)

Submit a General Support request using the "Purdue IT Request" button to the right. The Purdue IT Service Desk will examine, follow-up and route as needed.