Operating rooms (ORs) are key to a hospital's profitability, and increasing their benefits helps decrease surgical costs, minimize patient waiting times, and boost the number of patients admitted for surgery. This study presents a mixed-integer linear programming (MILP) model to address the issue of treating inpatients in operating rooms waiting for admission to the referral department. Moreover, it proposes a practical algorithm that minimizes overtime costs in operating rooms and increases patient satisfaction. Our model uses an integrated machine learning - tabu search (ML-TS) method. The proposed model uses differential ML and heuristic rules to achieve enhanced performance and scalability in solving complex optimization problems. A fairness policy is implemented, combined with an optimization method, to guide patient prioritization. This approach considers factors like urgency, waiting times, or specific patient needs and helps determine the order in which patients are scheduled for surgery. The outcomes imply that patient adaptability has led to savings ranging from 50% to 65% per surgery. Additionally, the Machine Learning-Tabu Search (ML-TS) algorithm has increased performance by about 35%. These algorithms also let the OR manager define the size of the uncertainty set and regulate overtime costs while accommodating surgeons' preferences as managerial implications insight. It adeptly navigates the solution space, identifies feasible solutions, and accelerates convergence.