The goal is to maximize the compactness of electoral districts, subject to other constraints, and thereby to avoid gerrymandering.
The objective is to design electoral districts in a way that maximizes their compactness while ensuring fairness and preventing political bias, which is known as gerrymandering.