gym-examples 3.0.687__py3-none-any.whl → 3.0.689__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gym_examples/__init__.py +1 -1
- gym_examples/envs/wsn_env.py +1 -15
- {gym_examples-3.0.687.dist-info → gym_examples-3.0.689.dist-info}/METADATA +1 -1
- gym_examples-3.0.689.dist-info/RECORD +7 -0
- gym_examples-3.0.687.dist-info/RECORD +0 -7
- {gym_examples-3.0.687.dist-info → gym_examples-3.0.689.dist-info}/WHEEL +0 -0
- {gym_examples-3.0.687.dist-info → gym_examples-3.0.689.dist-info}/top_level.txt +0 -0
gym_examples/__init__.py
CHANGED
gym_examples/envs/wsn_env.py
CHANGED
@@ -262,21 +262,7 @@ class WSNRoutingEnv(gym.Env):
|
|
262
262
|
def get_avail_actions(self):
|
263
263
|
return [list(range(self.n_sensors + 1)) for _ in range(self.n_sensors)]
|
264
264
|
|
265
|
-
|
266
|
-
'''
|
267
|
-
We would like to compute the similarity score between the agents and the base station:
|
268
|
-
For this, we consider that each agent is represented by a vector constituted of:
|
269
|
-
- number of packets after the action
|
270
|
-
- remaining energy after the action
|
271
|
-
- distance to the base station
|
272
|
-
The vector of the base station is constituted of:
|
273
|
-
- number of packets after the action: all the times, we consider is equal to 0
|
274
|
-
- remaining energy after the action: all the times, we consider is equal to initial_energy
|
275
|
-
- distance to the base station: all the times, we consider is equal to 0
|
276
|
-
'''
|
277
|
-
vector_referee = [0, 0, 1] # Vector of the base station
|
278
|
-
|
279
|
-
|
265
|
+
|
280
266
|
def update_sensor_energies(self, i, delta_energy):
|
281
267
|
self.remaining_energy[i] -= delta_energy
|
282
268
|
|
@@ -0,0 +1,7 @@
|
|
1
|
+
gym_examples/__init__.py,sha256=dKUh0z2iWKJwjEIZlvD7ZKKTJ36FFi1HxXYvPBksxWU,166
|
2
|
+
gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
|
3
|
+
gym_examples/envs/wsn_env.py,sha256=D3EaMLo38IBUfq0CCGX8kmDnwwBtyKTEaNv4iIzxyn4,25477
|
4
|
+
gym_examples-3.0.689.dist-info/METADATA,sha256=43jxmXamncUEXsOTI6HGRiRcSwDB7Aj7tvOyI4igi9s,412
|
5
|
+
gym_examples-3.0.689.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
6
|
+
gym_examples-3.0.689.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
|
7
|
+
gym_examples-3.0.689.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
gym_examples/__init__.py,sha256=D-VbRfF9ddjRlfDdDlzb7ZanVt-Ps2fBPlRm2YFPun0,166
|
2
|
-
gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
|
3
|
-
gym_examples/envs/wsn_env.py,sha256=Cw2SipW9j5Wcsv8HYx3gohpAW8xEKVcEwQqm9bpykOw,26264
|
4
|
-
gym_examples-3.0.687.dist-info/METADATA,sha256=yiNE3ZTcyurYP3GSdXQCBDBgBgWwcP5LgwOzWxMqYzg,412
|
5
|
-
gym_examples-3.0.687.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
6
|
-
gym_examples-3.0.687.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
|
7
|
-
gym_examples-3.0.687.dist-info/RECORD,,
|
File without changes
|
File without changes
|