InterPSS-Project / ipss-plugin

InterPSS plugin projects
8 stars 11 forks source link

use network object copy to avoid loading and initializing the network object again in a loop #34

Open thuang opened 4 years ago

thuang commented 4 years ago

@jinjingfarm

Please see this example starting line#300, https://github.com/InterPSS-Project/ipss-plugin/blob/master/ipss.test.plugin.core/src/org/interpss/core/dstab/DStab_IEEE300Bus_Test.java

You will find the case is loaded and initialized for each dynamic contingency analysis. As we are using the same base case for the simulation in the loop, the case parsing and initialization process is repeated again and again. If a copy of it can be made after the first dynamic initialization ( in line#367 (dstabAlgo.initialization()), we can reused the copy of the network object for different contingencies withing loading from raw case files and even run them in parallel. Do you think this is doable? If so, can you give an example? You will need to update the ODM part to properly load the case files in this test case.