IIRC you had a version some time ago where you took a splitline but then adjusted it to conform to the nearest county (or municipal) lines. This seemed to me like a preferable implementation of the concept since it corrects for political subdivisions while maintaining the core idea of splitline.
I'd forgotten that, but that was what had sparked my interest in splitline in the first place.
The way I oriented the cutline was to determine the minimum-area bounding rectangle around the area being divided, and then set the direction of the cutline perpendicular to the long axis of the rectangle.
I then divided the area (not the bounding rectangle) into two parts of equal area. If the population of the two areas was X and Y; I found the two cut lines parallel to the first cutline that would divide the population into floor(X):ceil(Y) and ceil(X):floor(Y) and chose the one that produced the more equal division of area.
I then would adjust that cutline back and forth to get to a single split county.
But maybe the thing to do would be rather than finding the orientation of the cutline first, would be to choose the cutline orientation based on which angle left the fewest (net?) persons stranded on the wrong side of the county line:
For each trial angle (0 to 180- degrees)
Find cutline that divides into equal areas.
Adjust cutline so areas have population equivalent to integer number of districts, and
and choose the one that creates the more equal area.
Determine the population on each side of the cut line in counties that are split (modulo the
district magnitude; since we can always create whole districts within that portion of the
county*).
For each subset of split counties, calculate the total population to the left of the cut line,
and for the complementary subset, the total population to the right of the cut line. In both
cases modulo the district magnitude. Take the absolute value of the difference. This is the
minimum number of persons that need to be split out of a single county.
The quality of the cutline is the length of the original cut line times this stranded population.
end for each angle
For winning cut line, place all but one county one either side of the adjusted cut line, and split that county along a line parallel to the original cut line.
* An alternative method might be to apportion whole districts to larger counties (eg in Texas, apportion Harris 5, Dallas 3, Tarrant 2, Bexar 2, Travis 1, El Paso 1, Collin 1, Hidalgo 1), and in each of the counties distribute the residual population proportionately. Then do a split line for the remaining 20 districts, and then refine the results.