Hi,
in the dataset have, for each group, there is the distance between each subject and many areas.
in the dataset have_contraints, for each group, there is the number of subjects that belongs to each area.
I would like to assign each subject to only one area minimizing the sum of distances within each group given the constraint that the number of subjects in each area within the group is that of table
have_contraints.
I would appreciate any solution with proc optmodel and/or with IML. As I am not proficient in any of them I would also appreciate very much a description of the code.
thank you very much in advance
@RobPratt
@Rick_SAS
... View more