Export a model using CPLEX to an LP file
To view the LP file in the IDE, first export a model that uses a CPLEX solver to an LP file.
Here we use the distributed example:
<Install_dir>\opl\examples\opl\models\EconPlanning\econPlanning.mod
- Create a new settings file
- Change the export format to LP
- Add the settings file to the default run configuration
- Run the run configuration
Create a new settings file
Right-click on the name of the project, econPlanning, and select to open the Settings File wizard.

Change the export format to LP
In the settings editor, change the export format to LP, then save the settings (.ops) file.

Add the settings file to the default run configuration
The settings file, econPlanning.ops is added to the
project. You need to copy this file to the default run configuration.
Right-click on
econPlanning.ops in the project and select
The settings file econPlanning.ops is copied to the default
run configuration.

Run the run configuration
When you run the default run configuration, the . lp file is added to the project.
Right-click on Basic Configuration (default) and select Run this.
The file Basic Configuration.lp is added to the project
econPlanning.

Double click Basic Configuration.lp to open the file in the
IDE.