Simulations
The Multiverse can either run a single
simulation or a montecarlo
simulation (for more information about Monte Carlo simulations available here).
You can configure your simulation either via the SDK directly or by providing a configuration.yaml
file.
Below are high-level examples showing how you can run a simulation.
# Run a single simulation via in-code configuration
simulation_result = client.simulations.simulation.run(
config={"type": "single", "parameters": {...}}
)
# Run a single simulation via a configuration file
simulation_result = client.simulations.simulation.run(
config={"type": "single", "parameters": {...}}, config_file=...
)
# Run a Monte Carlo simulation via in-code configuration
monte_carlo_result = client.simulations.MonteCarlo.run(
config={"iterations": 1000, "parameters": {...}}
)