TimeWindow

class flexops.core.time_block.TimeWindow(start_index: int, indices: range, start_time: Timestamp, end_time: Timestamp)

Metadata for a slice of a TimeBlock’s horizon.

Pure metadata (no Pyomo components) describing a contiguous run of time points, used by the rolling-horizon driver to step through a TimeBlock window by window.

start_index

First time-point index in the window.

Type:

int

indices

The window’s time-point indices, clipped to the block’s horizon (shorter than requested if the window runs past the end).

Type:

range

start_time

Timestamp of start_index.

Type:

pandas.Timestamp

end_time

Exclusive end timestamp of the window.

Type:

pandas.Timestamp