Initializing help system before first use

Running Submodels and Parallel Solving

Xpress Workbench supports running Mosel models that load and run submodels. Before your master model can load and run a submodel, you must ensure that the submodel has been compiled. Complete the following steps to run a model that uses submodels:

  1. Open the submodel source file by double-clicking its filename.
  2. Open the Run menu and click Build.
    If compilation is successful, a BIM file appears alongside the source file in the file tree.
  3. Ensure that the submodel BIM file is located in the working directory of the master model.
  4. Select the master model source file in the Run Configurations drop-down list.
  5. Click the Run button, which is the second button to the right of the Run Configurations drop-down list.
  6. If a submodel encounters a runtime error, the master model will be suspended on whichever line was being executed when the error occurred. Click Resume to continue executing the master model.
    If you change the submodel source file, make sure you recompile it before running the master model.
    Note Manually compiling the submodel is not needed if your master model compiles it programmatically using the compile function in Mosel.
    Note You cannot debug a submodel while it is running within the master model. Breakpoints set in submodel source files are ignored. To debug a submodel in standalone mode, select the main source file for the submodel in the Run Configurations drop-down list and run it as usual.
    Note (FAC edition only) Remote instances of Mosel are not supported. Submodels must be loaded and run in the main Mosel process.