Abstract
We present a Julia package, DisjunctiveProgramming.jl, that extends the functionality in JuMP.jl to allow modeling problems via logical propositions and disjunctive constraints. Such models can then be reformulated into Mixed-Integer Programs (MIPs) that can be solved with the various MIP solvers supported by JuMP. To do so, logical propositions are converted to Conjunctive Normal Form (CNF) and reformulated into equivalent algebraic constraints. Disjunctions are reformulated into mixed-integer constraints via the reformulation technique specified by the user (Big-M or Hull reformulations). The package supports reformulations for disjunctions containing linear, quadratic, and nonlinear constraints.
Introduction
In fields such as chemical engineering, energy systems, and operations research, mathematical models frequently involve a combination of continuous variables and discrete logical decisions. Traditionally, these problems are formulated as Mixed-Integer Programs (MIPs). However, translating complex logical relationships into standard algebraic constraints often requires manual "hacks" like the Big-M method, which can be error-prone and result in models that are difficult to read and maintain.
Generalized Disjunctive Programming (GDP) provides a higher-level abstraction, allowing modelers to express logic directly through disjunctions (OR statements) and logical propositions (e.g., IF-THEN, XOR). While GDP frameworks exist in other ecosystems, DisjunctiveProgramming.jl introduces these capabilities to the high-performance Julia/JuMP environment, enabling more intuitive modeling of discrete-continuous systems.
Methodology
DisjunctiveProgramming.jl acts as an extension to JuMP.jl, providing macros like @disjunction and @proposition to define logical structures. The package automatically reformulates these high-level models into standard MIPs or MINLPs that can be handled by existing solvers.
Reformulation Techniques
The package primarily supports two reformulation strategies:
- Big-M Reformulation: This method uses large constants ($M$) to relax constraints when a disjunct is not active. While computationally efficient in terms of model size, it often results in "loose" relaxations.
- Hull Reformulation: This technique "lifts" the problem into a higher-dimensional space to create a tighter convex relaxation of the feasible space.
By leveraging Symbolics.jl, the package can automatically generate the perspective functions required for nonlinear Hull reformulations. Furthermore, it supports nested disjunctions, allowing for the modeling of hierarchical decision trees.
Case Study: Chemical Process Superstructure
To evaluate the package, the authors utilized a classic benchmark: Chemical Process Superstructure Optimization. This problem requires selecting optimal reactor and separation technologies from a set of alternatives to maximize total profit.
The superstructure involves nested logic—for instance, selecting a specific reactor might necessitate a subsequent choice between different separation units. DisjunctiveProgramming.jl simplifies the implementation of such dependencies, allowing the modeler to focus on the system's logic rather than the underlying algebraic transformations.
Results and Discussion
The implementation demonstrates that DisjunctiveProgramming.jl can effectively:
- Model complex, nested logical structures using intuitive macros.
- Automatically reformulate GDP models into MILP or MINLP forms.
- Solve the resulting models using standard open-source solvers like HiGHS.
- Handle a variety of constraint types, including linear, quadratic, and nonlinear.
A key advantage of the package is the "separation of concerns," where the modeler defines the logic and the software handles the mathematical rigor of the transformation. This significantly reduces the potential for human error in deriving Big-M values or complex Hull transformations.
Conclusion and Future Work
DisjunctiveProgramming.jl provides a robust framework for GDP within the Julia ecosystem. By automating the reformulation process, it allows researchers to explore different mathematical structures (e.g., swapping between Big-M and Hull) with minimal code changes.
Future developments will focus on implementing direct logic-based solvers to exploit GDP structure without reformulation, and adding advanced techniques like "P-Split" and "True-False" reformulations for further model tightening.
Summary updated