PowerModels.jl icon indicating copy to clipboard operation
PowerModels.jl copied to clipboard

In-place Data Computations

Open ccoffrin opened this issue 5 years ago • 1 comments

Make variants of calc_branch_flow_ac,calc_branch_flow_dc,calc_power_balance that update the given data in-place.

ccoffrin avatar May 27 '20 15:05 ccoffrin

The proposed implementation should avoid allocating new memory when these quantities already exist in the given data dict. These variants should update the data directly instead of making a separate dict that can be merged with update_data!.

ccoffrin avatar Jan 25 '21 17:01 ccoffrin