pypsa.Network.snapshot_weightings#
- property Network.snapshot_weightings: DataFrame#
Weightings applied to each snapshots during the optimization (LOPF).
Objective weightings multiply the operational cost in the objective function.
Generator weightings multiply the impact of all generators in global constraints, e.g. multiplier of GHG emmissions.
Store weightings define the elapsed hours for the charge, discharge standing loss and spillage of storage units and stores in order to determine the state of charge.
Examples
>>> n = pypsa.Network() >>> n.add("Bus", "bus") >>> n.snapshots = pd.date_range("2015-01-01", freq="h", periods=3) >>> n.snapshot_weightings objective stores generators snapshot 2015-01-01 00:00:00 1.0 1.0 1.0 2015-01-01 01:00:00 1.0 1.0 1.0 2015-01-01 02:00:00 1.0 1.0 1.0
Change the snapshot weightings: >>> n.snapshot_weightings.objective = [5, 7, 9] >>> n.snapshot_weightings
objective stores generators
snapshot 2015-01-01 00:00:00 5 1.0 1.0 2015-01-01 01:00:00 7 1.0 1.0 2015-01-01 02:00:00 9 1.0 1.0