Building Cluster Recovery#
Description
The code creates two output files building-recovery.csv and cluster-recovery.csv
Input Parameters
key name |
type |
name |
description |
---|---|---|---|
|
|
Result name |
Name of the result dataset. |
|
|
Uncertainty |
Additional randomness. |
|
|
Sample size |
Number of buildings to be considered from buildings dataset. |
|
|
Sample size |
Number of iterations for the Monte Carlo simulation. |
|
|
Number weeks |
Number of weeks to run the recovery model. |
|
|
Number of CPUs |
Number of CPUs used for parallel computations. Default 1. |
Input Datasets
key name |
type |
name |
description |
---|---|---|---|
|
Building dataset |
A building dataset. |
|
|
Occupancy mapping |
An occupancy of buildings dataset. |
|
|
Building damage |
A building damage. |
|
|
Damage ratios |
Mean repair by occupancy and building type. |
|
|
Utility availability |
Utility availability at utility service area. |
|
|
Utility availability |
Partial utility availability at utility service area. |
|
|
Initial coefficients |
Correlation coefficient of initial functionality. |
Output Datasets
key name |
type |
name |
description |
---|---|---|---|
|
Results |
A dataset containing results (format: CSV). |
(* required)
Execution
code snippet:
# Create instance
bldg_cluster_recovery = BuildingClusterRecovery(client)
# Load input datasets
bldg_cluster_recovery.load_remote_input_dataset("building_data", bldg_data_dataset)
bldg_cluster_recovery.load_remote_input_dataset("occupancy_mapping", occupancy_dataset)
bldg_cluster_recovery.load_remote_input_dataset("building_damage", bldg_damage_dataset)
bldg_cluster_recovery.load_remote_input_dataset("dmg_ratios", mean_repair_dataset)
bldg_cluster_recovery.load_remote_input_dataset("utility", utility_dataset)
bldg_cluster_recovery.load_remote_input_dataset("utility_partial", utility_partial_dataset)
bldg_cluster_recovery.load_remote_input_dataset("coefFL", coefFL_dataset)
# Set parameters
bldg_cluster_recovery.set_parameter("uncertainty", True)
bldg_cluster_recovery.set_parameter("sample_size", 35) # default none. Gets size form input dataset
bldg_cluster_recovery.set_parameter("random_sample_size", 50) # default 10000
bldg_cluster_recovery.set_parameter("no_of_weeks", 100) # default 250
# Creates two output files building-recovery.csv and cluster-recovery.csv
bldg_cluster_recovery.run_analysis()
full analysis: building_cluster_recovery.ipynb