Skip to content

Pass the Eval to onChange for environment handling#290

Merged
gpampara merged 8 commits intociren:masterfrom
gpampara:onchange-eval
Jul 20, 2018
Merged

Pass the Eval to onChange for environment handling#290
gpampara merged 8 commits intociren:masterfrom
gpampara:onchange-eval

Conversation

@gpampara
Copy link
Copy Markdown
Member

When a dynamic environment changes, some handling mechanisms require
a modification to the entity collection. A trivial example would be
that the fitness values are potentially no longer valid for the entity
collection after an environment change.

When a dynamic environment changes, some handling mechanisms require
a modification to the entity collection. A trivial example would be
that the fitness values are potentially no longer valid for the entity
collection after an environment change.
@gpampara gpampara requested a review from stefanvds July 14, 2018 13:10
@gpampara gpampara changed the title Pass the Eval to onChange function for environment handling Pass the Eval to onChange for environment handling Jul 15, 2018
stefanvds
stefanvds previously approved these changes Jul 15, 2018
Copy link
Copy Markdown

@stefanvds stefanvds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes directly address the stated issue, allowing the eval from the Environment to be passed to the onChange function in the Runner. This change will allow dynamic environments to react correctly to environment landscape changes by adapting in any way as deemed appropriate by the user. The change cascades into some optimization in the Environment codebase. All usages (i.e. in the examples folder had to be updated as well.

filinep
filinep previously approved these changes Jul 16, 2018
@gpampara gpampara dismissed stale reviews from filinep and stefanvds via 5b7d777 July 16, 2018 08:15
Really need a way to do this automatically...
@gpampara gpampara merged commit 00032e7 into ciren:master Jul 20, 2018
@gpampara gpampara deleted the onchange-eval branch July 20, 2018 08:39
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

Successfully merging this pull request may close these issues.

3 participants