Introduction
In healthcare management, Appointment Rules (ARs) are critical mathematical expressions used to schedule patient arrivals. The primary objective is to balance two conflicting goals: minimizing patient wait times and reducing clinic operational costs, such as doctor idle time and overtime. While Genetic Programming (GP) has proven effective at evolving complex mathematical rules from data, it frequently generates "semantically invalid" results. For instance, a standard GP might produce a rule that adds a dimensionless patient index to a service time measured in minutes. Such rules lack dimensional consistency, making them difficult for medical practitioners to interpret or trust in real-world clinical settings.
The GPDR Framework
To address these challenges, this paper introduces GPDR (Genetic Programming with Dimension Repair). GPDR combines the exploratory power of standard GP with a rigorous mathematical "repair" step formulated as a Mixed-Integer Linear Programming (MILP) problem.
Multi-Tree Representation
A key feature of GPDR is its multi-tree representation. Each appointment rule is decomposed into two distinct trees: one representing a base step size and another representing a correction term. This structure is designed to mimic the way human experts typically construct scheduling rules, allowing for more intuitive logic.
Model-Driven Dimension Repair
The core innovation of GPDR is the dimension repair mechanism. Instead of strictly prohibiting "illegal" unit combinations during the evolutionary process—which can overly restrict the search space—GPDR allows them and then applies an MILP model to "fix" the resulting trees. The MILP solver identifies the minimum number of node changes (e.g., replacing an addition operator with a multiplication operator) required to ensure the entire expression is dimensionally consistent. To guide this repair, the algorithm maintains an archive of high-performing individuals, using the frequency of variables in these elite rules to ensure the "fixed" rule remains high-quality.
Experimental Evaluation
The performance of GPDR was evaluated using simulated clinic environments to account for stochasticity. The study covered 24 distinct clinic configurations, varying factors such as clinic size (10 vs. 20 patients), service time variability, no-show rates, and walk-in probabilities. GPDR was benchmarked against seven traditional manual rules (e.g., IBFI, DOME) and five state-of-the-art dimensionally aware GP variants.
Key Results and Insights
The experimental results demonstrate that GPDR consistently outperforms both manually designed rules and existing dimensionally aware GP methods across all tested scenarios. Notably, GPDR achieved a dimension gap of zero in every test, ensuring that every evolved rule was physically valid and interpretable.
- The "Dome" Pattern: GPDR independently "rediscovered" the Dome pattern—a theoretically optimal scheduling strategy where appointment intervals are shorter at the beginning and end of a session and longer in the middle.
- Efficiency: The addition of the MILP solver (using Gurobi) only increased training time by approximately 10 seconds on average compared to standard GP, making it highly practical for real-world deployment.
- Interpretability: By treating repair as an optimization problem, the algorithm preserves the underlying logic discovered during evolution while enforcing a physically sensible structure that clinic managers can understand.
Conclusion
GPDR successfully breaks the dilemma between rule performance and dimensional consistency. By integrating MILP-based repair into the evolutionary loop, the algorithm yields high-performing, interpretable rules that can be implemented with confidence in clinical settings. Future work may explore extending this repair mechanism to other domains like symbolic regression in physics or engineering, where dimensional units are equally critical.
Summary updated