Invoking the Interactive Optimizer
You can invoke the Interactive Optimizer in various ways.
The tutorial about the Interactive Optimizer in Getting Started with CPLEX explains the conventional way of launching the Interactive Optimizer in a default installation from a prompt of your operating system. In case that approach is not your preferred way of working, the following topics document how to configure an integrated development environment (IDE) to launch the Interactive Optimizer, how to launch the Interactive Optimizer from certain file browsers, or how to launch the Interactive Optimizer from a command-line interface.
If you use an integrated development environment (IDE) based on Eclipse, such as IBM ILOG CPLEX Optimization Studio or Rational Team Concert (RTC), you can configure your IDE to launch the Interactive Optimizer of CPLEX. To do so, follow these steps.
- Open your IDE.
- Click Run (the menu item) and select External Tools > External Tools Configurations.
- In the dialog, supply a Name for your new configuration.
For example, type
CPLEX Interactive Optimizer. - On the Main tab of the dialog, supply the Location, that is, the path to the executable file of
the CPLEX Interactive Optimizer in your installation on your platform. For example, on a typical
Windows installation, the default path is:
On a typical GNU/Linux installation, the default path resembles:C:\IBM\ILOG\CPLEX Optimization Studio\cplex\bin\x64_win64\cplex.exe
On macOS, the default path is:/opt/IBM/ILOG/CPLEX_Optimization_Studio/cplex/bin/<port>/cplex/Applications/CPLEX_Studio<version>/cplex/bin/<port>/cplex - Still on the Main tab, you can optionally supply a Working Directory, that is, a directory or folder where you have write permission and where you want CPLEX to write logs and to search for data.
- After completing the dialog, click Apply and Run.
After those steps, the new run configuration appears in the list of Run Configurations in your IDE. There, you can run the new configuration from your IDE in the usual way to launch the executable file of CPLEX Interactive Optimizer.
C:\IBM\ILOG\CPLEX Optimization Studio\cplex\bin\x64_win64\cplex.exe or
/opt/IBM/ILOG/CPLEX_Optimization_Studio/cplex/bin/<port>/cplex or
/Applications/CPLEX_Studio<version>/cplex/bin/<port>/cplexC:\IBM\ILOG\CPLEX Optimization Studio\cplex\bin\x64_win64\cplex.exe or
/opt/IBM/ILOG/CPLEX_Optimization_Studio/cplex/bin/<port>/cplexor
/Applications/CPLEX_Studio<version>/cplex/bin/<port>/cplex Then execute
the file, such as cplex.exe on Windows or cplex on GNU/Linux.