Add ev tutorial #1833
Annotations
4 errors and 3 warnings
/home/runner/work/oemof-solph/oemof-solph/tutorials/introductory/ev_charging.py#L46
and consists of a Battery (partly charged in the beginning)
and an electricity demand.
"""
b_el = solph.Bus(label="Car Electricity")
+
def create_base_system():
energy_system = solph.EnergySystem(
timeindex=time_index,
infer_last_interval=False,
|
/home/runner/work/oemof-solph/oemof-solph/tutorials/introductory/ev_charging.py#L92
# %%[solve_and_plot]
"""
Solve the model and show results
"""
+
def solve_and_plot():
model = solph.Model(es)
model.solve(solve_kwargs={"tee": False})
results = solph.processing.results(model)
|
/home/runner/work/oemof-solph/oemof-solph/tutorials/introductory/ev_charging.py#L113
plt.step(energy_leaves_battery.index, energy_leaves_battery, "r-")
plt.ylabel("Power (kW)")
plt.gcf().autofmt_xdate()
plt.show()
+
solve_and_plot()
# %%[charging]
"""
Now, let's assume the car battery can be charged (11 kW).
This, of course, can only happen while the car is present.
"""
+
+
def create_unidirectional_loading_until_defined_timestep():
energy_system = solph.EnergySystem(
timeindex=time_index,
infer_last_interval=False,
)
|
docs
Process completed with exit code 1.
|
clean
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
docs
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|