16 lines
421 B
Python
16 lines
421 B
Python
from neighborhood import Producer, Consumer, Neighborhood
|
|
|
|
# Anzahl Haushalte ohne PV-Anlagen
|
|
num_consumer = 5
|
|
|
|
# Anzahl Haushalte mit PV-Anlagen
|
|
num_producer = 5
|
|
|
|
|
|
# Instanzen für Erzeuger und Verbraucher anlegen
|
|
producer = Producer(num_producer)
|
|
consumer = Consumer(num_consumer)
|
|
|
|
# Instanz für Nachbarschaft anlegen und Ergebnis plotten
|
|
neighborhood = Neighborhood(producer, consumer)
|
|
neighborhood.plot_consumption() |