You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are dealing with system state in an inconsistent manner, which means that while pre-specified planning decisions are included in every year of the state file, outputs from previous years of a decision module are not rewritten to a state file.
Solutions:
TLDR; either write separately and read in a bundle, or read separately and write in a bundle;
only write pre-specified planning in base timestep state file and accumulate state through successive years for each decision iteration/timestep path followed, rewriting only the current decisions in each state file, reading them all in through the data_handle.get_state method
the statefile in each timestep holds the complete history, so only the most recent statefile is needed to see a history of all the interventions that took place in a particular timestep/iteration path.
The text was updated successfully, but these errors were encountered:
data_handle.get_state should read state from three sources - initial conditions, pre-specified planning and decision_module decisions
decision module needs to read the state in the previous year (consisting of only available interventions and accumulated from the base year) and write state for the current decision timestep
Strip out all concept of multiple strategies and pre-specified planning - both initial conditions and pre-specified planning can be handled using the existing concept of state. They should be read in and filtered by the get_state method for the current timestep.
this may require interventions to drop lifetime attribute, and the state to be pre-computed so that an intervention is present in the state for each timestep during its lifetime
Decision module creates a register of available interventions. These should contain the set of interventions minus the subset of interventions installed in pre-specified and initial condition states.
We are dealing with system state in an inconsistent manner, which means that while pre-specified planning decisions are included in every year of the state file, outputs from previous years of a decision module are not rewritten to a state file.
Solutions:
TLDR; either write separately and read in a bundle, or read separately and write in a bundle;
data_handle.get_state
methodThe text was updated successfully, but these errors were encountered: