Running a model

Contents

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.

Imports#

from polaris import Polaris

We identify the folder in our PC where the model is located

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)

Gallery generated by Sphinx-Gallery