-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from openEDI/large_feeder
Use sparse matrices to cut down on memory usage
- Loading branch information
Showing
9 changed files
with
520 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ RUN --mount=type=secret,id=gadal_github_key pip install git+ssh://[email protected] | |
WORKDIR /simulation | ||
|
||
COPY test_full_systems.py . | ||
COPY docker_system.json . | ||
COPY scenarios/docker_system.json docker_system.json | ||
COPY AWSFeeder AWSFeeder | ||
COPY LocalFeeder LocalFeeder | ||
COPY README.md . | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
{ | ||
"name": "test_state_estimator", | ||
"components": [ | ||
{ | ||
"name": "recorder_voltage_real", | ||
"type": "Recorder", | ||
"parameters": {"feather_filename": "../../outputs/voltage_real.feather", | ||
"csv_filename": "../../outputs/voltage_real.csv" | ||
} | ||
}, | ||
{ | ||
"name": "recorder_voltage_imag", | ||
"type": "Recorder", | ||
"parameters": {"feather_filename": "../../outputs/voltage_imag.feather", | ||
"csv_filename": "../../outputs/voltage_imag.csv" | ||
} | ||
}, | ||
{ | ||
"name": "recorder_voltage_mag", | ||
"type": "Recorder", | ||
"parameters": {"feather_filename": "../../outputs/voltage_mag.feather", | ||
"csv_filename": "../../outputs/voltage_mag.csv" | ||
} | ||
}, | ||
{ | ||
"name": "recorder_voltage_angle", | ||
"type": "Recorder", | ||
"parameters": {"feather_filename": "../../outputs/voltage_angle.feather", | ||
"csv_filename": "../../outputs/voltage_angle.csv" | ||
} | ||
}, | ||
{ | ||
"name": "state_estimator", | ||
"type": "StateEstimatorComponent", | ||
"parameters": { | ||
"algorithm_parameters": {"tol": 1e-5} | ||
} | ||
}, | ||
{ | ||
"name": "feeder", | ||
"type": "AWSFeeder", | ||
"parameters": { | ||
"smartds_region": "P9U", | ||
"smartds_feeder": "p9uhs16_1247/p9uhs16_1247--p9udt12866/", | ||
"smartds_scenario": "solar_medium_batteries_none_timeseries", | ||
"smartds_year": "2017", | ||
"start_date": "2017-05-01 00:00:00", | ||
"increment_value": 900, | ||
"number_of_timesteps": 2, | ||
"topology_output": "../../outputs/topology.json", | ||
"use_sparse_admittance": true | ||
} | ||
}, | ||
{ | ||
"name": "sensor_voltage_magnitude", | ||
"type": "MeasurementComponent", | ||
"parameters": { | ||
"gaussian_variance": 0.0, | ||
"random_percent": 0.0, | ||
"measurement_file": "../feeder/voltage_ids.json" | ||
} | ||
}, | ||
{ | ||
"name": "sensor_power_real", | ||
"type": "MeasurementComponent", | ||
"parameters": { | ||
"gaussian_variance": 0.0, | ||
"random_percent": 0.0, | ||
"measurement_file": "../feeder/real_ids.json" | ||
} | ||
}, | ||
{ | ||
"name": "sensor_power_imaginary", | ||
"type": "MeasurementComponent", | ||
"parameters": { | ||
"gaussian_variance": 0.0, | ||
"random_percent": 0.0, | ||
"measurement_file": "../feeder/reactive_ids.json" | ||
} | ||
} | ||
|
||
], | ||
"links": [ | ||
{ | ||
"source": "feeder", | ||
"source_port": "voltages_magnitude", | ||
"target": "sensor_voltage_magnitude", | ||
"target_port": "subscription" | ||
}, | ||
{ | ||
"source": "feeder", | ||
"source_port": "powers_real", | ||
"target": "sensor_power_real", | ||
"target_port": "subscription" | ||
}, | ||
{ | ||
"source": "feeder", | ||
"source_port": "powers_imag", | ||
"target": "sensor_power_imaginary", | ||
"target_port": "subscription" | ||
}, | ||
{ | ||
"source": "feeder", | ||
"source_port": "topology", | ||
"target": "state_estimator", | ||
"target_port": "topology" | ||
}, | ||
{ | ||
"source": "sensor_voltage_magnitude", | ||
"source_port": "publication", | ||
"target": "state_estimator", | ||
"target_port": "voltages_magnitude" | ||
}, | ||
{ | ||
"source": "sensor_power_real", | ||
"source_port": "publication", | ||
"target": "state_estimator", | ||
"target_port": "powers_real" | ||
}, | ||
{ | ||
"source": "sensor_power_imaginary", | ||
"source_port": "publication", | ||
"target": "state_estimator", | ||
"target_port": "powers_imaginary" | ||
}, | ||
{ | ||
"source": "feeder", | ||
"source_port": "voltages_real", | ||
"target": "recorder_voltage_real", | ||
"target_port": "subscription" | ||
}, | ||
{ | ||
"source": "feeder", | ||
"source_port": "voltages_imag", | ||
"target": "recorder_voltage_imag", | ||
"target_port": "subscription" | ||
}, | ||
{ | ||
"source": "state_estimator", | ||
"source_port": "voltage_angle", | ||
"target": "recorder_voltage_angle", | ||
"target_port": "subscription" | ||
}, | ||
{ | ||
"source": "state_estimator", | ||
"source_port": "voltage_mag", | ||
"target": "recorder_voltage_mag", | ||
"target_port": "subscription" | ||
} | ||
] | ||
} |
Oops, something went wrong.