-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpv.py
More file actions
17 lines (14 loc) · 724 Bytes
/
pv.py
File metadata and controls
17 lines (14 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""A small example with a fixed electricity demand (eDem), an electricity grid (EG), a
photovoltaic system (PV), and the Main component which contains the objective function and the
energy balances. There is no controllable component, so the operation is determined and cannot be
optimized. That means the Solver will solve the problem in pre-solve.
"""
import draf
from draf.components import *
def main():
cs = draf.CaseStudy(name="min_imp", year=2019, freq="60min", country="DE", coords=(49.01, 8.39))
cs.set_time_horizon(start="Apr-01 00:00", steps=24 * 2)
sc = cs.add_REF_scen(doc="no BES", components=[eDem, EG(c_buyPeak=50), PV, Main])
cs.add_scens(nParetoPoints=2)
cs.optimize()
return cs