Open ojdo opened 8 years ago
A new numeric, "timestep indexer" pyomo.Set
can be introduced such as:
m.timestepsnum = range(1,len(timesteps))
m.tnum= pyomo.Set(initialize=m.timestepsnum,ordered=True)
and then the required storage/DSM rules and corresponding pyomo variables such as m.e_sto_con
can be defined over m.tnum
rather than m.tm
, regardless of the input timesteps
are numeric or not?
This first needs a minimal prototype that examines which "ripple" effects a change of t = [1, 2, 3, ...]
to t = [2001-01-01 00:00, 2001-01-01 01:00, ...]
would have on the different model steps:
w
and m.dt
must be derived and could possibly change per time step. Or not, then this should trigger warnings/errors.)
The storage state equation
def_storage_state
(and an upcoming PR #52 for demand side management) assume(s) that time step labels are numeric and allow for arithmetic operations like:However, nothing in the input prevents time steps to have textual or (in future preferably) datetime type. The code should be changed to remove that assumption.
doc/contributing.rst
)