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

Position enhancement #13

Open
drRobertDev opened this issue Oct 22, 2024 · 0 comments
Open

Position enhancement #13

drRobertDev opened this issue Oct 22, 2024 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@drRobertDev
Copy link

Instead duplicate players position that decrease efficienty is not possible use Assignment with Allowed Groups like;

role_assigned = model.NewIntVar(0, len(possible_roles) - 1, f"role_assigned_{player_id}")
model.AddAllowedAssignments(role_assigned, possible_roles[player_id])

https://developers.google.com/optimization/assignment/assignment_groups

@Regista6 Regista6 self-assigned this Oct 22, 2024
@Regista6 Regista6 added the question Further information is requested label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants