Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

energy contribution #51

Open
vkrajnak opened this issue Jan 6, 2025 · 2 comments
Open

energy contribution #51

vkrajnak opened this issue Jan 6, 2025 · 2 comments

Comments

@vkrajnak
Copy link

vkrajnak commented Jan 6, 2025

Hi all,
are the energy fields corresponding to masked out energy nodes meant to contribute to the total energy? For every False in state.energy_nodes_mask, the corresponding energy field is all zeros, which is increased by 0.25 in the following:

energy_field = jnp.where(
energy_field.mean() < 0.25,
energy_field + (0.25 - energy_field.mean()),
energy_field,
)

Not that it changes much.
Thanks!

@StoneT2000
Copy link
Member

I think we make everything an integer. The 0.25 is meant to generally encourage the mean energy on the map is at least 0.25 to be a bit more friendly to weaker bots that don't navigate the energy field as efficiently.

@vkrajnak
Copy link
Author

The reason I'm asking is because currently the mean energy is at least 0.25 per energy node, of which there are six, thus the mean energy is at least 1.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants