Monte-Carlo runs and designs of experiments
A Monte-Carlo campaign or a design of experiments runs the same simulation hundreds or thousands of times, with other parameters and other random seeds, and studies the spread of the results. This page looks at doing that with an HLA federation: when it is worth it, what has been published about it, what it asks of the RTI, and what MicroRTI offers for it.
When a campaign needs a federation
Most campaigns run one program. The data farming work of NATO, carried by the task groups MSG-088 and MSG-124 and their successors, runs standalone models, many of them agent-based, thousands of times on computing clusters (Horne and Schwierz, 2016; Huber et al., 2019). In engineering, co-simulation with FMI and SSP plays that part, and a common way to describe uncertain parameters for it is being written (OpenSCALING, 2025).
A federation becomes necessary when the models cannot be put into one program. A maritime missile defence study by five nations ran its national models as a geographically distributed HLA federation, because most of them could not be released to the other countries (van den Berg et al., 2009). A US Navy test bed for the LPD 17 ship planned 1 600 runs of an HLA federation that did not run in real time and included tactical hardware and software (Ortiz, 2006). The data farming summary cited above states the need in one sentence: “We need to make models interoperable with other models and easily data farmable.”
Signals from the HLA community
HLA time management was designed from the start for simulations that run as fast as possible as well as for real-time ones, with repeatability as a goal for analytic models (Fujimoto and Weatherly; Fujimoto). It is now reaching the reference FOM of training simulation. Version 3 of the RPR FOM (SISO-STD-001.1-2025) adds a mode that runs as fast as possible under HLA time management, which its authors present as suited to analysis, planning and Monte-Carlo simulation (Möller and Karlsson, 2026). The HLA 4 tutorial given at I/ITSEC 2024 lists Monte-Carlo runs as fast as possible among the uses of time management (Möller and Antelius, 2024).
What a campaign asks of the RTI
Of the accounts cited above, the missile defence study gives the most detail, and it points at three needs.
The same inputs must give the same result: otherwise the spread of the results measures the federation as much as the model. The study made every federate time-regulating and time-constrained and stamped its interactions, and noted that this conservative time management makes the runs slower.
The runs must go on with nobody watching. The study ran for at least 48 hours with hundreds of runs. Its authors wrote a controller federate that started and stopped each run with synchronization points and sent the scenario, the run number and the seeds to the federates. The LPD 17 team worked on automating its runs to need fewer operators.
Many runs must fit in the time available. With conservative time management, the time each step costs in coordination adds up over thousands of steps and thousands of runs.
What MicroRTI offers
Logical time costs little. On the machine of Speed and footprint (8 cores, 16 GB), 4 federates that each send one timestamped interaction per step make 2 300 steps per second, and 16 federates 325. A federate that computes for 1 ms per step pays about 0.45 ms of coordination per step, with 4 federates.
Every run gives the same results. The engine is deterministic, and getting the same results every run lists the four rules under which every federate receives the same timestamped messages and the same grants in every run. In the measurements of Speed and footprint, every federate was checked at every step: it had all the messages of the step before its grant, and all the federates computed the same sums.
Each run can have an RTI of its own, or none at all. The server starts in 14 ms and takes 8.6 MB of memory, so each run can have its own, started and stopped by whatever drives the campaign. When all the federates of a run are in Rust or Python, the RTI can run inside their process instead (an RTI inside your process).
Runs can go in parallel. On the same machine, runs of 4 federates and 10 000 steps each, where every federate sends one timestamped interaction per step, were started one at a time, then 8 at a time:
| How the runs are started | Computation per federate and step | Runs per hour, one at a time | Runs per hour, 8 at a time |
|---|---|---|---|
| One server for all the runs | none | 640 | 940 |
| One server per run | none | 640 | 1 010 |
| The RTI inside the process of each run | none | 1 880 | 4 880 |
| One server for all the runs | 0.5 ms | 305 | 566 |
| One server per run | 0.5 ms | 305 | 603 |
| The RTI inside the process of each run | 0.5 ms | 528 | 880 |
Every run passed the synchronisation checks. The figures count whole runs, from the start of the servers to the end of the last run, connections and joins included, and are medians of three passes. With 8 runs at a time, 32 federates and their RTIs share the 8 cores: the gain over one run at a time comes from filling the cores, and the machine is the limit, since one server for all the runs does almost as well as one server per run. Runs are independent of each other, so more machines can take more of them; that was not measured here.
The services a campaign controller needs are there. Synchronization points start each run together (synchronization points), interactions hand out parameters and seeds, and federation save and restore go back to a saved state, for example the end of a common initialisation, instead of starting every run from the beginning (save and restore). MicroRTI implements all of these services; with save and restore, each federate saves and restores its own state.
From one model to a federation
A model that runs in campaigns usually comes with a harness of its own: code that sets the parameters and the seed, runs the model and collects the results. If the model later has to join a federation, that harness has to be rebuilt around HLA. Written as a federate from the start, the same code serves both. In the campaign it runs at full speed with an RTI of its own or inside its process; in the federation it joins the shared RTI over the network; and the parameters and seeds that the harness passed by hand travel as HLA interactions.
What MicroRTI does not provide
- An experiment controller. What chooses the parameters, starts the runs and collects the results is yours to write.
- Figures for your models. The measurements were made with federates that compute almost nothing, on one machine; a real model sets its own pace.
- Federates that advance in logical time. A federate written for real time, paced by the wall clock, has to be changed to advance with Time Advance Request (8.8) or its variants.
- Certification. MicroRTI has not been through a formal conformance test (questions and answers).