Creating Model Templates

In order to set up your model, you start by creating a new folder for your case study that will all input data. Specify the path to this folder and pass it to the create_optimization_templates() method.

import adopt_net0 as adopt

path = "path_to_your_input_data_folder"

adopt.create_optimization_templates(path)

This creates two templates in the form of json files: one for the model configuration and one for the topology. Before you can continue with retrieving the templates for the input data, you will first have to adjust Topology.JSON to define the system topology. The configuration can be defined anytime before solving the model in ModelConfig.JSON.

Note: See a complete documentation of all template creation functions in the source code documentation.

create_optimization_templates(path: pathlib.Path | str)

Creates an examplary topology and model configuration json file in the specified path.

Parameters:

path (str/Path) – path to folder to create Topology.json