[Paper Review] OR-Gym: A Reinforcement Learning Library for Operations Research Problem.
OR-Gym is an open-source reinforcement learning library that reformulates classic operations research problems—such as knapsack, bin packing, supply chain management, and asset allocation—as RL environments. By benchmarking RL agents against MILP and heuristic methods, the study demonstrates RL's viability for industrial OR problems, offering a new tool for both OR and RL communities.
Reinforcement learning (RL) has been widely applied to game-playing and surpassed the best human-level performance in many domains, yet there are few use-cases in industrial or commercial settings. We introduce OR-Gym, an open-source library for developing reinforcement learning algorithms to address operations research problems. In this paper, we apply reinforcement learning to the knapsack, multi-dimensional bin packing, multi-echelon supply chain, and multi-period asset allocation model problems, as well as benchmark the RL solutions against MILP and heuristic models. These problems are used in logistics, finance, engineering, and are common in many business operation settings. We develop environments based on prototypical models in the literature and implement various optimization and heuristic models in order to benchmark the RL results. By re-framing a series of classic optimization problems as RL tasks, we seek to provide a new tool for the operations research community, while also opening those in the RL community to many of the problems and challenges in the OR field.
Motivation & Objective
- To bridge reinforcement learning and operations research by creating a unified framework for solving classic OR problems.
- To develop standardized RL environments based on prototypical models from the literature.
- To benchmark RL performance against traditional MILP and heuristic optimization methods.
- To demonstrate the feasibility of RL in real-world industrial and commercial operations research settings.
- To provide a tool that enables cross-disciplinary research between RL and OR communities.
Proposed method
- Reformulated classic OR problems—knapsack, multi-dimensional bin packing, multi-echelon supply chain, and multi-period asset allocation—as Markov Decision Processes (MDPs).
- Designed custom RL environments within the OR-Gym framework to simulate real-world operational constraints and objectives.
- Implemented baseline solutions using mixed-integer linear programming (MILP) and heuristic methods for performance comparison.
- Trained deep reinforcement learning agents using standard algorithms (e.g., PPO, DQN) on the defined environments.
- Used sparse and shaped reward functions to guide learning in complex, combinatorial optimization settings.
- Evaluated agents across multiple metrics including solution quality, convergence speed, and robustness to input variations.
Experimental results
Research questions
- RQ1Can reinforcement learning effectively solve classical operations research problems such as the knapsack and bin packing problems?
- RQ2How does RL performance compare to MILP and heuristic methods in multi-echelon supply chain and multi-period asset allocation tasks?
- RQ3What are the key challenges in applying RL to industrial OR problems, and how can they be mitigated through environment design?
- RQ4Can RL generalize across different problem instances and parameter variations in OR settings?
- RQ5What role does reward shaping play in improving sample efficiency and solution quality in OR-related RL tasks?
Key findings
- RL agents achieved competitive solution quality compared to MILP in small- to medium-sized instances of the knapsack and bin packing problems.
- In multi-echelon supply chain problems, RL outperformed heuristic baselines in terms of cost reduction and scalability across varying demand patterns.
- For multi-period asset allocation, RL agents demonstrated robust performance under dynamic market conditions, often matching or exceeding heuristic benchmarks.
- Reward shaping significantly improved training stability and convergence speed in complex, high-dimensional OR environments.
- The OR-Gym framework enabled consistent benchmarking and reproducibility across diverse OR problems and RL algorithms.
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.