Skip to content
Discussion options

You must be logged in to vote

Hi @Bramtimm ,

is it more performant to include a SymLoad (or AsymLoad) object for every node in the topology with zero-valued p_specified/q_specified for inactive nodes, or to only include load objects for nodes that carry an actual load?
Specifically: does PGM benefit from a static, pre-allocated input array of uniform size for appliances (all nodes, some zeroed), or does reducing the number of active load objects for the solver outweigh the overhead of dynamically copying/resizing/reindexing the input between calculations?

Having additional inactive loads leads to almost no loss in performance.
And as you mention, there is indeed cost involved in first of all changing the input array…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Bramtimm
Comment options

Answer selected by Bramtimm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants