Abstract
Network design problems constitute an important family of combinatorial optimization problems for which numerous exact and heuristic algorithms have been developed over the last few decades. Two central problems in this family are the multi-commodity, capacitated, fixed charge network design problem (MCFNDP) and its stochastic counterpart, the two-stage MCFNDP with recourse. These are standard problems that often serve as work benches for devising and testing models and algorithms in stylized but close-to-realistic settings. The purpose of this paper is to introduce two flexible, high-speed generators capable of simulating a wide range of settings for both the deterministic and stochastic MCFNDPs. We hope that, by facilitating systematic experimentation with new and larger sets of instances, these generators will lead to a more thorough assessment of the performance achieved by exact and heuristic solution methods in both deterministic and stochastic settings. We also hope that making these generators available will promote the reproducibility and comparability of published research.
Introduction
Network design problems are fundamental to the fields of logistics, telecommunications, and supply chain management. At their core, these problems involve making critical decisions about which "arcs" (routes) to open and how to route commodities through them to minimize total costs while respecting capacity constraints. The Multi-Commodity, Capacitated, Fixed-Charge Network Design Problem (MCFNDP) is a classic NP-hard challenge that serves as a primary benchmark for testing new optimization algorithms.
Despite the maturity of the field, researchers face significant hurdles in benchmarking. The standard deterministic generator, "Mulgen," was written in Fortran over 25 years ago, making it difficult to integrate into modern research workflows. Furthermore, there has been no publicly available generator for the stochastic version of the problem, where demands or costs are uncertain. This lack of standardization has forced researchers to rely on ad hoc randomizations, making it nearly impossible to compare results across different studies. This paper introduces two high-performance C++ generators designed to modernize and standardize instance generation for both deterministic and stochastic MCFNDPs.
Methodology
Deterministic Instance Generation
The authors developed a modernized version of the original Mulgen tool using C++. To ensure high-quality randomness and performance, the generator utilizes the Permuted Congruential Generator (PCG) library. This tool supports various network topologies—including grid-like, circular, and random structures—and allows users to fine-tune the complexity of both the design (arc costs) and flow (commodity demands) aspects of the problem.
Stochastic Instance Generation
The stochastic generator represents a significant advancement for the community. It functions by "grafting" a probability distribution onto a deterministic instance using the Høyland-Kaut-Wallace (HKW) algorithm. This approach builds scenarios by matching the first four statistical moments—mean, variance, skewness, and kurtosis—along with linear correlations for parameters like demand and capacity. This allows researchers to specify interpretable requirements (e.g., "demand varies by +/- 25%") without requiring massive historical datasets.
Feasibility Verification
A critical component of the stochastic generator is its feasibility check. To ensure that generated problems are actually solvable, the tool uses the CPLEX solver to filter out infeasible scenarios. This process ensures that at least one valid first-stage decision exists for every scenario retained in the final instance, preventing the generation of "broken" benchmarks.
Performance and Results
The generators were evaluated using the historical "R" and "C" series of MCFNDP instances, which are considered the gold-standard benchmarks in the optimization community. The C++ implementation demonstrates significant efficiency:
- Deterministic Speed: Large instances (e.g., 30 nodes, 700 arcs, 400 commodities) are generated and saved in less than 4 seconds on a standard CPU.
- Stochastic Scalability: The generator can produce 10,000 scenarios for a medium-sized network (20 nodes, 315 arcs) in approximately 160 seconds.
These results indicate that the tools are fast enough to support systematic experimentation, allowing researchers to generate thousands of diverse instances to stress-test their solvers.
Discussion and Future Work
By making these tools public and well-documented, the authors provide a standardized "workbench" for the combinatorial optimization community. This promotes reproducibility, as researchers can now share the exact parameters used to generate their test sets.
However, some limitations remain. While the generator ensures that at least one first-stage decision is feasible for all scenarios, it does not guarantee "relatively complete recourse"—a state where any feasible first-stage decision remains feasible across all future scenarios. Additionally, the current scope is limited to linear deterministic and two-stage stochastic MCFNDPs. Future work may extend this framework to other problem families, such as facility location or multi-stage stochastic problems.
Conclusion
The introduction of these C++ generators addresses a long-standing gap in network design research. By providing high-speed, flexible, and standardized tools for both deterministic and stochastic instances, this work facilitates more rigorous and comparable assessments of optimization algorithms.
Source Code: The generators are available at https://bit.ly/49L957M (Deterministic) and https://bit.ly/49LMiZy (Stochastic).
Summary updated