pypsa.optimization.optimize.OptimizationAccessor.optimize_with_rolling_horizon#
- OptimizationAccessor.optimize_with_rolling_horizon(snapshots: Sequence | None = None, horizon: int = 100, overlap: int = 0, **kwargs: Any) Network #
Optimizes the network in a rolling horizon fashion.
- Parameters:
n (pypsa.Network)
snapshots (list-like) – Set of snapshots to consider in the optimization. The default is None.
horizon (int) – Number of snapshots to consider in each iteration. Defaults to 100.
overlap (int) – Number of snapshots to overlap between two iterations. Defaults to 0.
**kwargs – Keyword argument used by linopy.Model.solve, such as solver_name,
- Return type:
None