lanl-ansi / PowerModels.jl

A Julia/JuMP Package for Power Network Optimization
https://lanl-ansi.github.io/PowerModels.jl/stable/
Other
399 stars 149 forks source link

In-place Data Computations #721

Open ccoffrin opened 4 years ago

ccoffrin commented 4 years ago

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

ccoffrin commented 3 years ago

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!.