Infrastructure.__init__#
- Infrastructure.__init__(infrastructure_id='Infrastructure', update_policies=None, node_assets=None, edge_assets=None, include_default_assets=True, path_assets_aggregators=None, path_algorithm=None, resource_init='min', seed=None)[source]
Create a new Infrastructure.
- Parameters:
infrastructure_id (str) – The ID of the infrastructure.
update_policies (Callable | list[Callable] | None) – Graph update policies executed during
evolve().node_assets (dict[str, Asset] | None) – The assets of the nodes.
edge_assets (dict[str, Asset] | None) – The assets of the edges.
include_default_assets (bool) – Whether to include the default assets. Defaults to True.
path_assets_aggregators (dict[str, Callable[[list[Any]], Any]] | None) – The aggregators to use for the path assets.
path_algorithm (Callable[[nx.Graph, str, str], list[str]] | None) – The algorithm to use to compute the paths.
resource_init (InitPolicy) – The initialization method for the resources.
seed (int | None) – The seed for the random number generator.