pnnl / ExaGO

High-performance power grid optimization for stochastic, security-constrained, and multi-period ACOPF problems.
Other
64 stars 8 forks source link

Do not ouptut individual load parameters if not in original network #112

Closed wperkins closed 7 months ago

wperkins commented 9 months ago

Merge request type

Relates to

This MR updates

Summary

Load shedding parameters can be individually by each load using the mpc.loadcost field in the MATPOWER network. These individual load loss parameters were added to the output even if they were never specified or used. This fixes that. Individual load shedding parameters are output only if they were read from the input network. Closes #109.

If load shedding parameters are not read from the input network, they are initialized with the OPFLOW blanket cost (-opflow_loadloss_penality), but only if needed (-opflow_include_loadloss_variables).