Commit a8910eac authored by Gonzalo Belcredi's avatar Gonzalo Belcredi

number nodes default 500

parent 58cbdd78
...@@ -9,7 +9,7 @@ SimulationTimeslots = int(t_end / step) ...@@ -9,7 +9,7 @@ SimulationTimeslots = int(t_end / step)
time = np.arange(t_start,t_end,step) time = np.arange(t_start,t_end,step)
# NUMBER NODES AND GATEWAYS # NUMBER NODES AND GATEWAYS
NumberNodes = 5 NumberNodes = 500
NumberGateways = NumberNodes / 20 NumberGateways = NumberNodes / 20
# Problem data. # Problem data.
......
...@@ -18,10 +18,10 @@ SimulationTimeslots = config.SimulationTimeslots ...@@ -18,10 +18,10 @@ SimulationTimeslots = config.SimulationTimeslots
nodos = [] nodos = []
for i in range(NumberNodes): for i in range(NumberNodes):
np.random.seed(i) np.random.seed(i)
nodos.append(node.IoTNode(config.SimulationTimeslots, config.mu, config.alfa, config.energy_tx, config.energy_pl, nodos.append(node.IoTNode(config.SimulationTimeslots, config.mu, config.alfa, config.energy_tx, config.energy_pl,
config.energy_harvesting,NodeId=i, ReceivingRate = config.RxRate, HarvestingRate = config.gamma, config.energy_harvesting,NodeId=i, ReceivingRate = config.RxRate, HarvestingRate = config.gamma,
BatteryCapacity=10)) BatteryCapacity=10))
ntx = np.zeros(SimulationTimeslots) ntx = np.zeros(SimulationTimeslots)
npl = np.zeros(SimulationTimeslots) npl = np.zeros(SimulationTimeslots)
......
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