Complete the following steps to run a model in
Xpress Workbench:
In the Run Configurations drop-down list, select the source file that you want to run.
The Run Configurations drop-down list is located to the right of the main menu bar, near the top of the screen.
Click the Run button or press Ctrl+F5.
Note: Only source files that declare a Mosel model can be executed. Source files that declare a Mosel package cannot be run directly; instead, run the main Mosel source file, which begins and ends with the
model and
end-model keywords.
Check the Output window that opens at the bottom of the screen to see the output printed by the model. If the model expects some input, you can type in the output window, too.
Xpress Workbench compiles the source file and any packages that it imports before running the model. Any syntax errors are highlighted in the code window, and compilation errors are displayed in the
Output window. Packages can be compiled but not run, as a debugging step.
Highlighted syntax error
Note: If you are running a model on DMP, you might see the following message in the
Output window:
warning libmamba 'root_prefix' set with default value: