Correct way to save and load battery stateful (marshal and unmarshal)

  • ajszilasi@gmail.com
  • Topic Author
More
04 May 2023 12:54 #12102 by ajszilasi@gmail.com
Hello,

I am writing some code with the intent to execute battery stateful save its state (marshal) and then load it again (unmarshal) to execute another timestep (1 minute in this case). I intend to do this through hundreds of time steps with each timestep being a minute.

The script attached shows 3 timesteps (3 minutes)

This script appears to be working fine but Id like to confirm that this is the correct way to do this. Could someone kindly confirm many thanks!

Please Log in or Create an account to join the conversation.

  • pgilman
More
04 May 2023 21:50 #12105 by pgilman
Hi Anton,

This looks good to me, but I will have a colleague who is more familiar with the BatteryStateful module look as well.

Best regards,
Paul.

Please Log in or Create an account to join the conversation.

Moderators: pgilman
Powered by Kunena Forum