[Paper Review] Constrained Combinatorial Optimization with Reinforcement Learning
This paper proposes a reinforcement learning framework for constrained combinatorial optimization by modeling problems as fully observable Constrained Markov Decision Processes (CMDPs), where penalty signals guide the agent toward feasible solutions. The method outperforms classical heuristics, metaheuristics, and CP solvers like OR-Tools' CP-SAT in real-time solution quality, especially on large or complex instances where exact solvers become intractable.
This paper presents a framework to tackle constrained combinatorial optimization problems using deep Reinforcement Learning (RL). To this end, we extend the Neural Combinatorial Optimization (NCO) theory in order to deal with constraints in its formulation. Notably, we propose defining constrained combinatorial problems as fully observable Constrained Markov Decision Processes (CMDP). In that context, the solution is iteratively constructed based on interactions with the environment. The model, in addition to the reward signal, relies on penalty signals generated from constraint dissatisfaction to infer a policy that acts as a heuristic algorithm. Moreover, having access to the complete state representation during the optimization process allows us to rely on memory-less architectures, enhancing the results obtained in previous sequence-to-sequence approaches. Conducted experiments on the constrained Job Shop and Resource Allocation problems prove the superiority of the proposal for computing rapid solutions when compared to classical heuristic, metaheuristic, and Constraint Programming (CP) solvers.
Motivation & Objective
- To extend Neural Combinatorial Optimization (NCO) to handle general constrained combinatorial problems, including non-maskable constraints.
- To develop a reinforcement learning approach that constructs solutions iteratively using intermediate state representations, improving solution quality.
- To enable rapid, near-optimal solutions for large-scale problems where exact solvers are too slow.
- To demonstrate the robustness and scalability of the method on real-world operations research problems like Job Shop Scheduling and Virtual Resource Allocation.
Proposed method
- Formulate constrained combinatorial problems as fully observable Constrained Markov Decision Processes (CMDPs), enabling sequential decision-making based on intermediate states.
- Integrate constraint violations into the reward function via penalty coefficients, allowing the agent to learn feasible policies without requiring action-space masking.
- Use a pointer network or transformer-based architecture to generate solutions as sequences of actions, with attention to state-dependent action selection.
- Train the policy using an actor-critic reinforcement learning setup, where the critic estimates value functions and the actor updates the policy based on cumulative rewards and penalties.
- Leverage full state observability to avoid memory-based architectures, improving generalization and performance over sequence-to-sequence models.
- Apply curriculum learning and sampling strategies (e.g., RL_S(40)) to stabilize training and enhance solution quality.
Experimental results
Research questions
- RQ1Can reinforcement learning be effectively applied to general constrained combinatorial optimization problems beyond maskable constraints?
- RQ2How does using penalty signals in the reward function compare to action-space masking in terms of solution quality and feasibility?
- RQ3Can a deep RL model trained on CMDPs outperform classical heuristics and CP solvers in real-time solution generation?
- RQ4How does the model’s performance scale with increasing problem size and constraint complexity?
- RQ5To what extent does the model generalize across diverse problem instances with varying structural characteristics?
Key findings
- The RL model outperformed classical heuristics and metaheuristics on both Job Shop Scheduling and Virtual Resource Allocation problems, achieving lower optimality gaps.
- For JSP10x10 and JSP15x15, the RL_S(40) variant achieved a lower optimality gap than all other heuristics and metaheuristics, though it still lagged behind the OR-Tools CP-SAT solver.
- On JSP25x25, the OR-Tools solver required significantly more time—orders of magnitude higher—than the RL model to reach comparable solution quality, highlighting the RL model’s real-time advantage.
- In the Virtual Resource Allocation Problem, the RL model consistently produced allocations close to optimal, outperforming a genetic algorithm and matching or exceeding CP-SAT performance on larger instances.
- The model demonstrated robustness, with low variance in solution quality across different problem instances, indicating stable generalization.
- The method generalized well across problem sizes, though performance gaps increased with larger instances, suggesting scalability remains a challenge.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.