FREEDM-DGI / FREEDM

The distributed grid intelligence manages power transactions and attached physical devices.
http://www.freedm.ncsu.edu/
17 stars 18 forks source link

Cps debugging #367

Closed lfqt5 closed 10 years ago

lfqt5 commented 10 years ago

Invariant check code has been an option in freedm.cfg. The default setting is to disable the invariant check in DGI.

mcatanzaro commented 10 years ago

Looks mostly good

mcatanzaro commented 10 years ago

Fixes #369

mcatanzaro commented 10 years ago

Looks good

lfqt5 commented 10 years ago

Hi, Stephen. Could you please merge this to the master? The change will make check invariant as an option in freedm.cfg. I will update my doc related to this change. Thanks.

nickmame commented 10 years ago

After talking with Dr. McMillin, we've come up with a better solution for how to handle increasing the k value. We need this implemented tomorrow so we can test it on Friday morning.

1 - revert the changes that exclude demand nodes from the gross power calculation in the physical invariant (no longer set any of the values to 0) 2 - add another conditional to the guard over power migrations that uses the check invariant flag you added in the last commit; if the flag is set, then you should not do power migrations 3 - rename this flag to something more reasonable like 'no-migrations'

For the case where we need to increase the k-value, set the flag 'no-migrations' in freedm.cfg.We will no longer use fake adapters for this; all the DGI will use real adapters that are connected to PSCAD/RTDS. However, because the flag is set, one of the DGI will drop all of its migration messages and simulate an increase in k within the power system.

This change should make the k-value test case compatible with the other test cases we need to run for the site visit (and is a nicer solution than a flag that disables all the code in DGI). Again, we need this implemented tomorrow so we can test it on Friday.