- Assigned population to clusters.
- Then compute centroids of clusters.
- Assign points to centroids such that sum of population in that is in between 300-350.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
2 Comments
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/583505-how-can-i-do-constrained-kmeans-in-matlab#comment_988280
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/583505-how-can-i-do-constrained-kmeans-in-matlab#comment_988280
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/583505-how-can-i-do-constrained-kmeans-in-matlab#comment_988439
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/583505-how-can-i-do-constrained-kmeans-in-matlab#comment_988439
Sign in to comment.