Skip to content

Perform Multi-Run Experiments🔗

Modelon Impact offers the possibility to create and run multi-experiments for a given model. This lets the user investigate the parameter space of the model and gain an understanding of its behavior relative to certain parameters.

We can now perform the multi-runs in two different views:

  • Diagram view
  • Experiment setup view

If the user prefers utilizing multi-runs via the Diagram view, please follow the steps below:

  1. Go to Experiment layer.

  2. Press the + New experiment link to add a new Experiment. Give it a suitable name using the context menu of the list item.

  3. Experiments are saved automatically when edited. In order to rename an Experiment, click on the Edit icon that appears when hovering over the Experiment name or select "Rename" by right-clicking on the Experiment.

  4. Select a component on the canvas by clicking on it.

  5. There are two operators to help set up multi-execution experiment:

    • range(start_value, end_value, no_of_steps)
    • choices(value_1, value_2, value_n)
  6. The range and choices operator can only be set in experiment mode. Applying it in another mode will result in an error message.

    • range

    Set a range of values for a parameter range(start_value, end_value, no_of_steps). Notice how it appears in the Modifications tab in the Experiment widget.

    In the case below, the J parameter will be swept from 1 to 5 in 10 steps.

    • choices

    choices define an arbitrary sequence to sweep, that enables different values for a parameter regardless of its relationship to each other.

    With choices the user can run multiple experiments setting free and arbitrary set of values. Choices are applied to parameters on the component level and, when possible, on the model level.

    Select a component and set values to be simulated for parameter choices(value_1, value_2, value_n)**.

    By using choices on another parameter, Modelon Impact will combine the number of values and produce the equivalent number of simulations.

Note

Range can be set for as many parameters as you like. Note, however, that all combinations of settings are simulated so the number of simulations increases rapidly with the number of range parameters.

  • Parameter_1: choices(a1, a2, a3)
  • Parameter_2: choices(b1, b2)
  • Simulations: a1b1, a1b2,a2b1, a2b2, a3b1, a3b2.

    values_a x values_b = 3 x 2 = 6 simulations.

  1. Use the Simulate button to run the multi-execution.

  2. The results can be viewed in plots and stickies just like a single simulation. Plots will show the curves from all simulation cases for each variable.

If users opt to utilize multi-runs via the Experiment Setup view, Impact supports two varieties of multi-run experiments. Please follow the provided links for instructions:

Multi-execution plot

  1. Running an experiment shifts the canvas mode from Experiment mode to Result layer as soon as the execution is completed. It is not possible to access the Experiment widget from Result layer. To run other defined experiments, go back to Experiment layer.

  2. A case slider is activated next to the time slider to select which case is shown on stickies. Together with the time slider, values for a specific time can be viewed for a selected case.

Warning

A syntax error will generate an error message and the experiment will not run. Note that a red exclamation mark next to the result means that one or more cases failed. Right-click on the case to show the simulation log.

Distributed computing and Productivity licenses🔗

Execution of a multi-run experiment can be distributed to significantly reduce the overall execution time.

These are the prerequisites to use distributed computing:

  1. Access to productivity licensing

    • Without productivity licensing, simulation is limited to sequential execution.
  2. Access to computational hardware

    • At impact.modelon.cloud, users who purchase Productivity licensing will get access to more computing through a pre-configured machine profile selection page.

    • At customer hosted installations (Private cloud and On-premises), the customer admin configures the machine configuration. The operation manual describes the additional configuration needed to enable distributed computing.

As a user, do I need to specify any settings to run my multi-experiments in parallel?

No, Modelon Impact takes care of this automatically. Once a user starts the execution of a multi-run experiment (by pressing the PLAY button inside the user-interface or starting a script or an app), a corresponding REST-API call is executed. The experiment is first expanded into cases and then distributed according to the available computational capacity (defined here as the number of CPUs).

What happens if the computational capacity is fully occupied?

Once the computational capacity is fully occupied, executions will be queued and waiting for computational capacity to be available. Queued execution jobs are marked as PENDING.

Can I continue to work before a multi-run is finished?

Yes, by opening Impact in a new tab, a user can continue to work and run a single simulation. Modelon Impact will reserve capacity for interactive work (one single simulation) to avoid blocking the user from any further work while waiting for the multi-experiment to finish.

Will the speed-up vary between experiments?

In the general case, speed-up is proportional to the computational capacity*. But as the computational capacity shares resources, there are cases where the speed-up is affected:

The following things will affect performance:

  • Availability of a cached FMU – If a cached FMU is available, parallelization starts directly; otherwise, it starts after a compilation is finished.

  • Workload on storage – A high load on result writing can slow down performance. The recommendation is to limit the result size by using an output filter.

  • Workload on memory or CPU. This can be due to:

    • Usage of large models. Small models are less memory-intensive than large models.
    • Multiple simultaneous compilations. This may be caused by an experiment sweeping over structural parameters.
    • User activity that requires computational resources such as running scripts, exporting workspace, etc.

Dynamic Simulation | Steady State | Cancelled Simulation | Experiment Types | Parameter sweep | Statistical analysis