Simulation Configuration
Last update: 16.07.2025The Simulation Framework command line interface (CLI) is the main user entry point for the execution of a simulation loop using the Simulation Framework. The reference simulation loop is configured with the following default components:
• A Traffic Participant Model (TPM), • A Key Performance Indicator (KPI) evaluator and • A Key Performance Indicator (KPI) logger.
After the simulation is executed, a detailed trace of the scenario execution and the KPI values will be available. Different arguments can be passed as options to configure the simulation:
Running Simulation Framework using the CLI executable
where -s <scenario.xosc> , -d, --scheduling <sim_config.json> and -o, --output <output_folder> are mandatory arguments.
Batch Mode Usage
If you want to execute the scenario and simply have the output, simfwk_cli can be executed using the command below:
If you want to control the execution of the simulation you should trigger the cli controller mode with the following option -c true,
Interactive Usage
Additionally, you can trigger the cli controller mode by option -c true
this enables the user control of simulation framework, instead of just running through of your scenario. With the cli controller , the user can send commands like run , pause , resume , restart , step or kill , to interact with simulation.
Interact with simulation using the cli_controller
When the -c true is applied, a server will be created for listening to the user command. To control the simulation, following command are available:
Supported commands:
Example
- First start your simulation and enable user control:
- Then you will see following message in the console, if the default controller port is not changed:
- Open a new terminal, and try trigger the simulation:
- After a successful execution, the console shows
Cli Controller Executation Status OK!. Then you can see the simulation started.
Note: In this control mode, the simulation process simfwk_cli will not terminate unless you send kill from the cli_controller or manually send ctrl+c.