Commit 54b254ce authored by Gonzalo Belcredi's avatar Gonzalo Belcredi

storage

parent 5efcc65e
No preview for this file type
......@@ -11,7 +11,7 @@ SimulationTimeslots = int(t_end / step)
time = np.arange(t_start,t_end,step)
# NUMBER NODES AND GATEWAYS
NumberNodes = 2000
NumberNodes = 500
NumberGateways = NumberNodes / 20
# Problem data.
......@@ -39,9 +39,9 @@ eta = .1
#Energy
energy_model = 1
MinLevel = 0
energy_max_per_node = .3
energy_max_per_node = .8
energy_max = NumberNodes * energy_max_per_node
gamma_per_node = .32
gamma_per_node = .15
gamma = NumberNodes * gamma_per_node
energy_harvesting = 1
energy_tx = 1
......
......@@ -38,7 +38,7 @@ class Storage:
return self.Status
def update_state(self):
if self.Level > self.MinLevel:
if self.Level >= self.MinLevel:
self.Status = 'Charged'
else:
self.Status = 'Discharged'
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment