Note
Go to the end to download the full example code.
Running a model#
In this example we show how to run a Polaris model for which we have already built our supply and demand files.
Photo credit for icon: [Martin Michlmayr](https://www.cyrius.com/debian/2510p/gallery/)
Imports#
from polaris import Polaris
We identify the folder in our PC where the model is located sphinx_gallery_thumbnail_path = ‘../../examples/running/running.jpg’
model_folder = "/tmp/Grid"
# And open the model
model = Polaris.from_dir(model_folder)
Running the model is a matter of using a single command This command accepts all parameters a Polaris configuration accepts Parameters that are not provided default to those found in the convergence_config.yaml and scenario_abm.json
model.run(num_threads=4, do_abm_init=True, do_skim=True, num_abm_runs=1)