powertac / powertac-server

Power TAC simulation server
www.powertac.org
Apache License 2.0
44 stars 35 forks source link

EvCharger model assumes a single subscription when saving bootstrap storage state #1164

Open jecollins opened 8 months ago

jecollins commented 8 months ago

The set of PowerTypes the EvCharger model can subscribe to includes both CONSUMPTION and STORAGE types, so it occasionally happens that the boot session ends with EvCharger having two subscriptions.

There appear to be two possible solutions to this:

  1. Ensure that the sim session starts with the same two subscriptions from the DefaultBroker, or
  2. Combine multiple StorageState instances into a single state in the boot record.

Alternatively we could just set a default state at the start of a sim session.

jecollins commented 8 months ago

Commit now does not log an error, but storage states are not merged.