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

Different constrains per cluster #15

Closed
kennylajara opened this issue Aug 30, 2021 · 1 comment
Closed

Different constrains per cluster #15

kennylajara opened this issue Aug 30, 2021 · 1 comment

Comments

@kennylajara
Copy link

Is there a way to have a different constrains for different clusters? Like: I wan three clusters, one with a maximum of 6 points and 2 with a maximum or 4.

@joshlk
Copy link
Owner

joshlk commented Aug 31, 2021

Hi @kennylajara, thanks for the message. Unfortunately you can't define different constraints for each centroid. If you wanted to hack the code I would have a look at how the min-cost-flow graph is constructed and modify that function. You could then provided different constraints for each centroid. Good luck 😃

@joshlk joshlk closed this as completed Aug 31, 2021
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