Back to search

Oklahoma State University

Batting lineup optimization using a genetic algorithm

Abstract

dc:description.abstract

Determining the optimal batting lineup is one of the few pre-game decisions a baseball manager makes that is simple, but can compound in value across an entire season. This thesis develops a hybrid genetic algorithm for identifying near-optimal batting lineups that maximize expected run production over a nine-inning game. The expected runs of a batting lineup is calculated using a Markov chain model in which each plate appearance is represented as a probabilistic transition between 25 base-out states. This framework produces the expected run totals for any batting lineup efficiently and deterministically. The optimization problem in this thesis is formulated as a constrained combinatorial search over all valid nine-player batting orders selected from a thirteen-player roster. The search space contains over 259 million lineups, so exhaustive evaluation is computationally infeasible. To search this space efficiently, a hybrid genetic algorithm is introduced that combines heuristic-based population initialization, a custom role-based crossover operator that respects the positional structure of a batting lineup, and a memetic steepest-ascent local search that refines the best solutions after every three generations. The algorithm uses a multi-start design across ten distinct initialization strategies, which results in the optimal lineup approximately 97.97 percent of the time. When applied to the 2025 Oklahoma State Cowboys’ baseball season, the algorithm identifies an optimized lineup projected to produce 0.55 additional runs per game over the team’s baseline batting lineup. Accumulated across a 55-game season, this difference corresponds to approximately 30 additional expected runs and an estimated three additional wins, which demonstrates the practical value of this algorithm as a decision-support tool.

Degree

thesis:*
Discipline thesis:degree_discipline
Mathematics
Grantor
Oklahoma State University
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Siewert, Jake
Advisor dc:contributor.advisor
  • Zhang, Xu
Committee members dc:contributor.committeemember
  • Liang, Ye
  • Stolerman, Lucas

Rights

dc:rights.accessrights
Statement dc:rights.accessrights
  • Open Access
  • Copyright is held by the author who has granted the Oklahoma State University Library the non-exclusive right to share this material in its institutional repository. Contact Digital Library Services at lib-dls@okstate.edu or 405-744-9161 for the permission policy on the use, reproduction or distribution of this material.
Language dc:language
en_US

Identifiers

dc:identifier.*
Mods Identifier Filename
Siewert_okstate_0664M_19759.pdf

Chain of custody

source
Harvested from
Oklahoma State University
Base URL
openresearch.okstate.edu/server/oai/request
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
related terms
citation

Siewert, Jake. Batting lineup optimization using a genetic algorithm. Oklahoma State University, 2026. https://hdl.handle.net/20.500.14446/351022