View Single Post
Old 03-02-2019, 02:11 PM   #2
gmo
Hall Of Famer
 
Join Date: May 2002
Location: Longmont, CO
Posts: 3,162
Thanks! Good to see others interested and involved. No promises, but I am hanging around again at least right now.

Ah, that blog. I do not think I know how to log into it any more. It did not get very far before I faded out. Hopefully over time I can get back to documenting things... and pick up some new tricks.

That constraint of strongly favoring 2-series and 3-series homestands & roadtrips I would say is the toughest thing. In general I make a point to allow a maximum of 4 series (or 14 games) home or away for a team, but I end up with lots of single-series cases, or at least lots more than I would want.

The 2019 MLB has less than 10% of series in single sets and the rest in 2-3 series sets. I would call that magic. I will typically end up with probably a slight majority of series in 2- and 3-game sets, but generally very roughly even binning of series into each of 1-, 2-, 3-, and 4-series sets, with each holding ~20-30% of the series. E.g., a team may have 52 series, with 12 falling into 12 one-series sets, 16 falling into 8 two-series sets, 12 falling into 4 three-series sets, and 12 falling into 3 four-series sets.

Anyway, breaking up those sets longer than 5 series... I will do that manually by trading out series with the mirror image somewhere else in the schedule. So if there is a stretch with 5 straight road series for a team then I would do some sort of a replacement, like to turn it into 2-away, 1-home, 2-away.

Code:
.....      .....
1 @ 2  ->  1 @ 2
1 @ 6  ->  1 @ 6
1 @ 4  ->  4 @ 1
1 @ 5  ->  1 @ 5
1 @ 3  ->  1 @ 3
.....      .....
4 @ 1  ->  1 @ 4
.....      .....
After the initial layout, there can a lot of that manual swapping of series like that. That 1 @ 4 above that I moved somewhere else - that may have made it so team 4 plays 5 straight home series in that part of the schedule, which means doing another swap, or maybe I decide the best change is swapping the 1v3 matchups, or...

Depending on the league structure, most of the effort in making the schedule may be in this sort of work. The trick is do all the switching in such a way as to make sure the constraints all get satisfied - i.e., max of 4 straight series home or away, but try to minimize the 1-series sets, make sure teams have nearly balanced weekends home & away, etc.

A big motivation for getting back involved is that I have a bit more programming experience that has allowed for building tools to more easily do the adjustments and continually see the status of metrics related to constraints. Basically what I used to do all in a spreadsheet I am getting able to do more easily in an html page with javascript.

That is all still manual brute force though. It has long been a hope, and I am starting to investigate ways to have the computer do some of work to get toward prettier end results.
gmo is offline   Reply With Quote