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

Fix agent-mission combination #1868

Merged
merged 10 commits into from
Feb 21, 2023
Merged

Conversation

Gamenot
Copy link
Collaborator

@Gamenot Gamenot commented Feb 15, 2023

This is intended to ensure that agent and mission combinations are unique and viable across resets.

@Gamenot Gamenot changed the title Fix agent-mission permutation Fix agent-mission combination Feb 15, 2023
len(first_group) <= len(second_group) the value is padded.

padded_product('ab', '123') -> a1 b2 a1 b3 a2 b1 a2 b3 a3 b1 a3 b2
padded_product('ab', '1', default="k") -> a1 bk ak b1
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment might be a bit misleading

  • Should it be called ordered_combinations instead of padded_product?
  • From the comment it looks like it returns a linear sequence rather than a sequence of products

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have clarified the utility and return values.

It should return groups of pairs, where the pairs use only unique indices from the contributor sequences, within each resulting group.

@Gamenot Gamenot merged commit dabd441 into master Feb 21, 2023
@Gamenot Gamenot deleted the tucker/bugfix_agent-mission-permutations branch February 21, 2023 20:37
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.

Address Agent to Mission Permutations Best way to reassign missions to different agents?
3 participants