Replies: 2 comments 5 replies
-
Hello, It is not yet possible to reset a syste, but as you mentioned, you can copy a system that has just been initialized. See the snapshot function here: https://docs.andes.app/en/latest/_generated/andes.utils.snapshot.html |
Beta Was this translation helpful? Give feedback.
-
I've come to this point, too, now and while I was able to create a "deep-copy" via saving and loading the snapshot, I found a problem: This SEEMS to only work once. I use this:
The first time this works without any problem. If I use that same code again, I get this error:
Is this something that obviously happens (at least if you know your way around pickle , etc.) or otherwise intendend behaviour? :) (Some context: In my case, I need to create a (deep) copy of the andes system in order to convert it into a pandapower system and run an OPF (if I use the original Andes system for that, the conversion-function changes the original system). I need to run the OPF in pandapower twice at different times of the TDS. Hence, I want to create a temporary copy of the original Andes system twice, too. Theoretically, the temporary copy is not needed any longer after the OPF is done) |
Beta Was this translation helpful? Give feedback.
-
Hi Prof. Cui,
I am interested about is there any way to copy or reset an Andes model (TDS initialized). Either of the following scenarios is what I want to achieve:
Looking forward to your comments.
Best
Beta Was this translation helpful? Give feedback.
All reactions