Mean arrivals: 101.805479

Mean loss: 0.430137

Mean cost: 53.705168

Mean net cost: 38.978296

Max PV stored energy: 143.439802

Cost per service: 0.529766

Mean consumption: 1559307.383338

Mean grid consumption: 845036.100503

Mean SPV: 714271.282835

Mean saving: 14.726871

-

PV: 500 , NBSS: 17 , BTH: 18000.0 , WMAX: 15 , F: 0 , TMAX: 0

Mean arrivals: 101.805479

Mean loss: 0.227397

Mean cost: 54.507516

Mean net cost: 39.915277

Max PV stored energy: 143.439802

Cost per service: 0.536607

Mean consumption: 1577038.641008

Mean grid consumption: 857232.222901

Mean SPV: 719806.418107

Mean saving: 14.592238

-

Traceback (most recent call last):

File "/home/daniela/anaconda3/lib/python3.7/site-packages/IPython/core/formatters.py", line 341, in __call__

return printer(obj)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/IPython/core/pylabtools.py", line 244, in <lambda>

png_formatter.for_type(Figure, lambda fig: print_figure(fig, 'png', **kwargs))

File "/home/daniela/anaconda3/lib/python3.7/site-packages/IPython/core/pylabtools.py", line 128, in print_figure

fig.canvas.print_figure(bytes_io, **kw)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/backend_bases.py", line 2056, in print_figure

**kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py", line 527, in print_png

FigureCanvasAgg.draw(self)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py", line 388, in draw

self.figure.draw(self.renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/artist.py", line 38, in draw_wrapper

return draw(artist, renderer, *args, **kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/figure.py", line 1709, in draw

renderer, self, artists, self.suppressComposite)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/image.py", line 135, in _draw_list_compositing_images

a.draw(renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/artist.py", line 38, in draw_wrapper

return draw(artist, renderer, *args, **kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/axes/_base.py", line 2647, in draw

mimage._draw_list_compositing_images(renderer, self, artists)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/image.py", line 135, in _draw_list_compositing_images

a.draw(renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/artist.py", line 38, in draw_wrapper

return draw(artist, renderer, *args, **kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/text.py", line 2355, in draw

xy_pixel = self._get_position_xy(renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/text.py", line 1905, in _get_position_xy

return self._get_xy(renderer, x, y, self.xycoords)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/text.py", line 1761, in _get_xy

y = float(self.convert_yunits(y))

TypeError: only size-1 arrays can be converted to Python scalars

<Figure size 432x288 with 1 Axes>

Traceback (most recent call last):

File "/home/daniela/anaconda3/lib/python3.7/site-packages/IPython/core/formatters.py", line 341, in __call__

return printer(obj)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/IPython/core/pylabtools.py", line 244, in <lambda>

png_formatter.for_type(Figure, lambda fig: print_figure(fig, 'png', **kwargs))

File "/home/daniela/anaconda3/lib/python3.7/site-packages/IPython/core/pylabtools.py", line 128, in print_figure

fig.canvas.print_figure(bytes_io, **kw)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/backend_bases.py", line 2056, in print_figure

**kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py", line 527, in print_png

FigureCanvasAgg.draw(self)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py", line 388, in draw

self.figure.draw(self.renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/artist.py", line 38, in draw_wrapper

return draw(artist, renderer, *args, **kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/figure.py", line 1709, in draw

renderer, self, artists, self.suppressComposite)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/image.py", line 135, in _draw_list_compositing_images

a.draw(renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/artist.py", line 38, in draw_wrapper

return draw(artist, renderer, *args, **kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/axes/_base.py", line 2647, in draw

mimage._draw_list_compositing_images(renderer, self, artists)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/image.py", line 135, in _draw_list_compositing_images

a.draw(renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/artist.py", line 38, in draw_wrapper

return draw(artist, renderer, *args, **kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/text.py", line 2355, in draw

xy_pixel = self._get_position_xy(renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/text.py", line 1905, in _get_position_xy

return self._get_xy(renderer, x, y, self.xycoords)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/text.py", line 1761, in _get_xy

y = float(self.convert_yunits(y))

TypeError: only size-1 arrays can be converted to Python scalars

<Figure size 432x288 with 1 Axes>

Traceback (most recent call last):

File "/home/daniela/anaconda3/lib/python3.7/site-packages/IPython/core/formatters.py", line 341, in __call__

return printer(obj)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/IPython/core/pylabtools.py", line 244, in <lambda>

png_formatter.for_type(Figure, lambda fig: print_figure(fig, 'png', **kwargs))

File "/home/daniela/anaconda3/lib/python3.7/site-packages/IPython/core/pylabtools.py", line 128, in print_figure

fig.canvas.print_figure(bytes_io, **kw)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/backend_bases.py", line 2056, in print_figure

**kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py", line 527, in print_png

FigureCanvasAgg.draw(self)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py", line 388, in draw

self.figure.draw(self.renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/artist.py", line 38, in draw_wrapper

return draw(artist, renderer, *args, **kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/figure.py", line 1709, in draw

renderer, self, artists, self.suppressComposite)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/image.py", line 135, in _draw_list_compositing_images

a.draw(renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/artist.py", line 38, in draw_wrapper

return draw(artist, renderer, *args, **kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/axes/_base.py", line 2647, in draw

mimage._draw_list_compositing_images(renderer, self, artists)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/image.py", line 135, in _draw_list_compositing_images

a.draw(renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/artist.py", line 38, in draw_wrapper

return draw(artist, renderer, *args, **kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/text.py", line 2355, in draw

xy_pixel = self._get_position_xy(renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/text.py", line 1905, in _get_position_xy

return self._get_xy(renderer, x, y, self.xycoords)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/text.py", line 1761, in _get_xy

y = float(self.convert_yunits(y))

TypeError: only size-1 arrays can be converted to Python scalars

<Figure size 432x288 with 1 Axes>

In [399]:

In [399]:

In [399]:

In [399]: runfile('/home/daniela/Documents/politecnico/research_activity/research_topics/Battery_Switching_Stations/BSS-main_Dany/main.py', wdir='/home/daniela/Documents/politecnico/research_activity/research_topics/Battery_Switching_Stations/BSS-main_Dany')

Reloaded modules: sim, config, components.socket, components.battery, components.ev, components.bss, components.pv_surplus_handler, data_manager, statistics_GC, plot

PV: 500 , NBSS: 10 , BTH: 18000.0 , WMAX: 15 , F: 0 , TMAX: 0

Mean arrivals: 101.805479

Mean loss: 5.320548

Mean cost: 45.314803

Mean net cost: 28.462111

Max PV stored energy: 143.439802

Cost per service: 0.469657

Mean consumption: 1352379.859521

Mean grid consumption: 719800.233809

Mean SPV: 632579.625712

Mean saving: 16.852692

-

PV: 500 , NBSS: 11 , BTH: 18000.0 , WMAX: 15 , F: 0 , TMAX: 0

Mean arrivals: 101.805479

Mean loss: 3.789041

Mean cost: 47.218643

Mean net cost: 30.926588

Max PV stored energy: 143.439802

Cost per service: 0.481742

Mean consumption: 1401469.149362

Mean grid consumption: 747940.820919

Mean SPV: 653528.328443

Mean saving: 16.292054

-

PV: 500 , NBSS: 12 , BTH: 18000.0 , WMAX: 15 , F: 0 , TMAX: 0

Mean arrivals: 101.805479

Mean loss: 2.621918

Mean cost: 48.879261

Mean net cost: 33.059173

Max PV stored energy: 143.439802

Cost per service: 0.492816

Mean consumption: 1443994.794619

Mean grid consumption: 772622.776894

Mean SPV: 671372.017726

Mean saving: 15.820088

-

PV: 500 , NBSS: 13 , BTH: 18000.0 , WMAX: 15 , F: 0 , TMAX: 0

Mean arrivals: 101.805479

Mean loss: 1.794521

Mean cost: 50.369153

Mean net cost: 34.934749

Max PV stored energy: 143.439802

Cost per service: 0.503636

Mean consumption: 1480734.304584

Mean grid consumption: 794832.517228

Mean SPV: 685901.787356

Mean saving: 15.434404

-

PV: 500 , NBSS: 14 , BTH: 18000.0 , WMAX: 15 , F: 0 , TMAX: 0

Mean arrivals: 101.805479

Mean loss: 1.194521

Mean cost: 51.669628

Mean net cost: 36.531067

Max PV stored energy: 143.439802

Cost per service: 0.513559

Mean consumption: 1511939.864222

Mean grid consumption: 814309.403999

Mean SPV: 697630.460223

Mean saving: 15.138561

-

PV: 500 , NBSS: 15 , BTH: 18000.0 , WMAX: 15 , F: 0 , TMAX: 0

Mean arrivals: 101.805479

Mean loss: 0.756164

Mean cost: 52.764296

Mean net cost: 37.869323

Max PV stored energy: 143.439802

Cost per service: 0.522164

Mean consumption: 1537881.570659

Mean grid consumption: 830781.424927

Mean SPV: 707100.145732

Mean saving: 14.894973

-

PV: 500 , NBSS: 16 , BTH: 18000.0 , WMAX: 15 , F: 0 , TMAX: 0

Mean arrivals: 101.805479

Mean loss: 0.430137

Mean cost: 53.705168

Mean net cost: 38.978296

Max PV stored energy: 143.439802

Cost per service: 0.529766

Mean consumption: 1559307.383338

Mean grid consumption: 845036.100503

Mean SPV: 714271.282835

Mean saving: 14.726871

-

PV: 500 , NBSS: 17 , BTH: 18000.0 , WMAX: 15 , F: 0 , TMAX: 0

Mean arrivals: 101.805479

Mean loss: 0.227397

Mean cost: 54.507516

Mean net cost: 39.915277

Max PV stored energy: 143.439802

Cost per service: 0.536607

Mean consumption: 1577038.641008

Mean grid consumption: 857232.222901

Mean SPV: 719806.418107

Mean saving: 14.592238

-

PV: 500 , NBSS: 18 , BTH: 18000.0 , WMAX: 15 , F: 0 , TMAX: 0

Mean arrivals: 101.805479

Mean loss: 0.109589

Mean cost: 55.142724

Mean net cost: 40.650589

Max PV stored energy: 143.439802

Cost per service: 0.542232

Mean consumption: 1591010.757343

Mean grid consumption: 866954.142582

Mean SPV: 724056.614761

Mean saving: 14.492135

-

PV: 500 , NBSS: 19 , BTH: 18000.0 , WMAX: 15 , F: 0 , TMAX: 0

Mean arrivals: 101.805479

Mean loss: 0.046575

Mean cost: 55.615071

Mean net cost: 41.201987

Max PV stored energy: 143.439802

Cost per service: 0.546538

Mean consumption: 1601485.881382

Mean grid consumption: 874204.189598

Mean SPV: 727281.691784

Mean saving: 14.413084

-

PV: 500 , NBSS: 20 , BTH: 18000.0 , WMAX: 15 , F: 0 , TMAX: 0

Mean arrivals: 101.805479

Mean loss: 0.024658

Mean cost: 55.997661

Mean net cost: 41.637631

Max PV stored energy: 143.439802

Cost per service: 0.550179

Mean consumption: 1609649.748941

Mean grid consumption: 880176.058732

Mean SPV: 729473.690209

Mean saving: 14.360030

-

Traceback (most recent call last):

File "/home/daniela/anaconda3/lib/python3.7/site-packages/IPython/core/formatters.py", line 341, in __call__

return printer(obj)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/IPython/core/pylabtools.py", line 244, in <lambda>

png_formatter.for_type(Figure, lambda fig: print_figure(fig, 'png', **kwargs))

File "/home/daniela/anaconda3/lib/python3.7/site-packages/IPython/core/pylabtools.py", line 128, in print_figure

fig.canvas.print_figure(bytes_io, **kw)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/backend_bases.py", line 2056, in print_figure

**kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py", line 527, in print_png

FigureCanvasAgg.draw(self)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py", line 388, in draw

self.figure.draw(self.renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/artist.py", line 38, in draw_wrapper

return draw(artist, renderer, *args, **kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/figure.py", line 1709, in draw

renderer, self, artists, self.suppressComposite)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/image.py", line 135, in _draw_list_compositing_images

a.draw(renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/artist.py", line 38, in draw_wrapper

return draw(artist, renderer, *args, **kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/axes/_base.py", line 2647, in draw

mimage._draw_list_compositing_images(renderer, self, artists)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/image.py", line 135, in _draw_list_compositing_images

a.draw(renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/artist.py", line 38, in draw_wrapper

return draw(artist, renderer, *args, **kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/text.py", line 2355, in draw

xy_pixel = self._get_position_xy(renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/text.py", line 1905, in _get_position_xy

return self._get_xy(renderer, x, y, self.xycoords)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/text.py", line 1761, in _get_xy

y = float(self.convert_yunits(y))

TypeError: only size-1 arrays can be converted to Python scalars

<Figure size 432x288 with 1 Axes>

Traceback (most recent call last):

File "/home/daniela/anaconda3/lib/python3.7/site-packages/IPython/core/formatters.py", line 341, in __call__

return printer(obj)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/IPython/core/pylabtools.py", line 244, in <lambda>

png_formatter.for_type(Figure, lambda fig: print_figure(fig, 'png', **kwargs))

File "/home/daniela/anaconda3/lib/python3.7/site-packages/IPython/core/pylabtools.py", line 128, in print_figure

fig.canvas.print_figure(bytes_io, **kw)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/backend_bases.py", line 2056, in print_figure

**kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py", line 527, in print_png

FigureCanvasAgg.draw(self)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py", line 388, in draw

self.figure.draw(self.renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/artist.py", line 38, in draw_wrapper

return draw(artist, renderer, *args, **kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/figure.py", line 1709, in draw

renderer, self, artists, self.suppressComposite)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/image.py", line 135, in _draw_list_compositing_images

a.draw(renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/artist.py", line 38, in draw_wrapper

return draw(artist, renderer, *args, **kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/axes/_base.py", line 2647, in draw

mimage._draw_list_compositing_images(renderer, self, artists)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/image.py", line 135, in _draw_list_compositing_images

a.draw(renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/artist.py", line 38, in draw_wrapper

return draw(artist, renderer, *args, **kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/text.py", line 2355, in draw

xy_pixel = self._get_position_xy(renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/text.py", line 1905, in _get_position_xy

return self._get_xy(renderer, x, y, self.xycoords)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/text.py", line 1761, in _get_xy

y = float(self.convert_yunits(y))

TypeError: only size-1 arrays can be converted to Python scalars

<Figure size 432x288 with 1 Axes>

Traceback (most recent call last):

File "/home/daniela/anaconda3/lib/python3.7/site-packages/IPython/core/formatters.py", line 341, in __call__

return printer(obj)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/IPython/core/pylabtools.py", line 244, in <lambda>

png_formatter.for_type(Figure, lambda fig: print_figure(fig, 'png', **kwargs))

File "/home/daniela/anaconda3/lib/python3.7/site-packages/IPython/core/pylabtools.py", line 128, in print_figure

fig.canvas.print_figure(bytes_io, **kw)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/backend_bases.py", line 2056, in print_figure

**kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py", line 527, in print_png

FigureCanvasAgg.draw(self)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py", line 388, in draw

self.figure.draw(self.renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/artist.py", line 38, in draw_wrapper

return draw(artist, renderer, *args, **kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/figure.py", line 1709, in draw

renderer, self, artists, self.suppressComposite)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/image.py", line 135, in _draw_list_compositing_images

a.draw(renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/artist.py", line 38, in draw_wrapper

return draw(artist, renderer, *args, **kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/axes/_base.py", line 2647, in draw

mimage._draw_list_compositing_images(renderer, self, artists)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/image.py", line 135, in _draw_list_compositing_images

a.draw(renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/artist.py", line 38, in draw_wrapper

return draw(artist, renderer, *args, **kwargs)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/text.py", line 2355, in draw

xy_pixel = self._get_position_xy(renderer)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/text.py", line 1905, in _get_position_xy

return self._get_xy(renderer, x, y, self.xycoords)

File "/home/daniela/anaconda3/lib/python3.7/site-packages/matplotlib/text.py", line 1761, in _get_xy

y = float(self.convert_yunits(y))

TypeError: only size-1 arrays can be converted to Python scalars

<Figure size 432x288 with 1 Axes>

In [400]:

In [400]:

In [400]:

In [400]: