For all pairs of points on two perimeters and lengths of matches, hypothetically transform one perimeter onto the other and calculate the distances between perimeters. Minimize the sum of those distances across all pairs of points and lengths of matches.
For all pairs of points on two perimeters and lengths of matches, hypothetically transform one perimeter onto the other and calculate the distances between perimeters. Minimize the sum of those distances across all pairs of points and lengths of matches.