gym-examples 2.0.56__py3-none-any.whl → 2.0.57__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 CHANGED
@@ -6,4 +6,4 @@ register(
6
6
  max_episode_steps=50,
7
7
  )
8
8
 
9
- __version__ = "2.0.56"
9
+ __version__ = "2.0.57"
@@ -218,14 +218,14 @@ class WSNRoutingEnv(gym.Env):
218
218
  distance = np.linalg.norm(self.sensor_positions[i] - self.sensor_positions[action])
219
219
  transmission_energy = self.transmission_energy(self.number_of_packets[i], distance)
220
220
  reception_energy = self.reception_energy(self.number_of_packets[i])
221
- # total_energy = transmission_energy + reception_energy
222
- total_energy = transmission_energy
221
+ total_energy = transmission_energy + reception_energy
222
+ # total_energy = transmission_energy
223
223
 
224
224
  # Normalize the total energy consumption
225
225
  max_transmission_energy = self.transmission_energy(self.n_sensors * initial_number_of_packets, self.coverage_radius)
226
226
  max_reception_energy = self.reception_energy(self.n_sensors * initial_number_of_packets)
227
- # max_total_energy = max_transmission_energy + max_reception_energy
228
- max_total_energy = max_transmission_energy
227
+ max_total_energy = max_transmission_energy + max_reception_energy
228
+ # max_total_energy = max_transmission_energy
229
229
  normalized_total_energy = total_energy / max_total_energy
230
230
 
231
231
  return np.clip(1 - normalized_total_energy, 0, 1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gym-examples
3
- Version: 2.0.56
3
+ Version: 2.0.57
4
4
  Summary: A custom environment for multi-agent reinforcement learning focused on WSN routing.
5
5
  Home-page: https://github.com/gedji/CODES.git
6
6
  Author: Georges Djimefo
@@ -0,0 +1,7 @@
1
+ gym_examples/__init__.py,sha256=01VDdzN_SbYr_5dKx66uCyvGnM5ZLNPARRNolC5y5io,193
2
+ gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
+ gym_examples/envs/wsn_env.py,sha256=GWO7toTzhMb8_knk9IqylWYmKdMGIu-_vjUDaOy93wE,15946
4
+ gym_examples-2.0.57.dist-info/METADATA,sha256=xx2bmn5KT-dwZioEANxTHjglopFVesbUevoM6RPHzKk,411
5
+ gym_examples-2.0.57.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
+ gym_examples-2.0.57.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
+ gym_examples-2.0.57.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- gym_examples/__init__.py,sha256=-8H0EIk-T59ft4kFq7dzi45XB4wOWQCne41r8wfDGYE,193
2
- gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
- gym_examples/envs/wsn_env.py,sha256=-GO39UyP9QQtYfStnQt54T9y0AtdKiVfcT7xGWN9ZEc,15946
4
- gym_examples-2.0.56.dist-info/METADATA,sha256=opSMBzLox7YL6SlxOsWcQ86oELZseBAyq1w0O4_vGcU,411
5
- gym_examples-2.0.56.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
- gym_examples-2.0.56.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
- gym_examples-2.0.56.dist-info/RECORD,,