Maestría en Ingeniería de Sistemas y Computación · 2026
Flexible Policy Learning for Joint Activity Routing and Resource Allocation in Business Process Simulation
Business process optimization through simulation has advanced along two prominent yet largely inde-pendent lines: resource allocation, which decides which resource executes each activity, and prescriptive process monitoring, which decides when to make an intervention in a case. Although both target overlapping operational objectives, their models and action spaces remain separate, limiting the flexibility available to a single optimization approach. This work presents a methodology that unifies both perspectives through a joint decision framework based on deep reinforcement learning (DRL). The proposed method expands the action space by allowing the agent to jointly select, for a given case, the next activity and its executing resource at each decision point, enabling it to explore process configurations that neither approach can reach in isolation. We formalize this problem as a Markov Decision Process over a stochastic simulation environment learned from event logs, and define an architecture in which a DRL agent learns a policy that maximizes compliance with service-level agreements (SLAs), defined as cycle time thresholds. To preserve realistic process behavior despite the enlarged action space, the agent operates under a flexible masked policy guided by learned branching probabilities, flexible enough to improve the process, yet constrained enough to prevent greedy or unrealistic decisions. We introduce flexibility, the capacity to dynamically delimit the action space in a way that is tunable between process conformance and operational performance, as the missing dimension in both lines of prior work. The approach is validated on three event logs against heuristic and learning-based baselines, and evaluated using both SLA compliance metrics and a multi-perspective similarity framework covering control-flow, temporal, resource, and congestion dimensions. Results show that jointly optimizing activity routing and resource allocation increases SLA compliance while preserving a partially realistic process behavior across the measured perspectives.