diff --git a/.github/workflows/draft-pdf.yml b/.github/workflows/draft-pdf.yml new file mode 100644 index 00000000..8797d0b2 --- /dev/null +++ b/.github/workflows/draft-pdf.yml @@ -0,0 +1,27 @@ +name: Draft PDF +on: + push: + paths: + - 'joss/**' + - '.github/workflows/draft-pdf.yml' + pull_request: + paths: + - 'joss/**' + - '.github/workflows/draft-pdf.yml' +jobs: + paper: + runs-on: ubuntu-latest + name: Paper Draft + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Build draft PDF + uses: openjournals/openjournals-draft-action@master + with: + journal: joss + paper-path: joss/paper.md + - name: Upload + uses: actions/upload-artifact@v4 + with: + name: paper + path: joss/paper.pdf diff --git a/joss/figures/disks.png b/joss/figures/disks.png new file mode 100644 index 00000000..53b5d8c5 Binary files /dev/null and b/joss/figures/disks.png differ diff --git a/joss/figures/workflow.png b/joss/figures/workflow.png new file mode 100644 index 00000000..50d8caf4 Binary files /dev/null and b/joss/figures/workflow.png differ diff --git a/joss/paper.bib b/joss/paper.bib new file mode 100644 index 00000000..910982d8 --- /dev/null +++ b/joss/paper.bib @@ -0,0 +1,203 @@ +@article{raman1994modelling, + title = {Modelling and computational techniques for logic based integer programming}, + journal = {Computers \& Chemical Engineering}, + volume = {18}, + number = {7}, + pages = {563--578}, + doi = {10.1016/0098-1354(93)E0010-7}, + url = {https://linkinghub.elsevier.com/retrieve/pii/0098135493E00107}, + author = {Raman, R. and Grossmann, I.E.}, + year = {1994} +} + +@article{balas1985disjunctive, + title = {Disjunctive Programming and a Hierarchy of Relaxations for Discrete Optimization Problems}, + journal = {SIAM Journal on Algebraic Discrete Methods}, + volume = {6}, + number = {3}, + pages = {466--486}, + doi = {10.1137/0606047}, + url = {https://epubs.siam.org/doi/10.1137/0606047}, + author = {Balas, Egon}, + year = {1985} +} + +@article{grossmann2013systematic, + title = {Systematic modeling of discrete-continuous optimization models through generalized disjunctive programming}, + journal = {AIChE Journal}, + volume = {59}, + number = {9}, + pages = {3276--3295}, + doi = {10.1002/aic.14088}, + author = {Grossmann, Ignacio E. and Trespalacios, Francisco}, + year = {2013} +} + +@article{trespalacios2014review, + title = {Review of Mixed-Integer Nonlinear and Generalized Disjunctive Programming Methods}, + journal = {Chemie Ingenieur Technik}, + volume = {86}, + number = {7}, + pages = {991--1012}, + publisher = {Wiley}, + doi = {10.1002/cite.201400037}, + url = {https://onlinelibrary.wiley.com/doi/10.1002/cite.201400037}, + author = {Trespalacios, Francisco and Grossmann, Ignacio E.}, + year = {2014} +} + +@article{kronqvist2025fifty, + title = {50 years of mixed-integer nonlinear and disjunctive programming}, + journal = {European Journal of Operational Research}, + volume = {331}, + number = {3}, + pages = {687--705}, + year = {2025}, + doi = {10.1016/j.ejor.2025.07.016}, + author = {Kronqvist, Jan and {Bernal Neira}, David E. and + Grossmann, Ignacio E.} +} + +@article{trespalacios2015mbm, + title = {Improved Big-{M} reformulation for generalized disjunctive programs}, + journal = {Computers \& Chemical Engineering}, + volume = {76}, + pages = {98--103}, + doi = {10.1016/j.compchemeng.2015.02.013}, + url = {https://linkinghub.elsevier.com/retrieve/pii/S0098135415000587}, + author = {Trespalacios, Francisco and Grossmann, Ignacio E.}, + year = {2015} +} + +@misc{kronqvist2022psplit, + title = {P-split formulations: A class of intermediate formulations between big-{M} and convex hull for disjunctive constraints}, + doi = {10.48550/ARXIV.2202.05198}, + url = {https://arxiv.org/abs/2202.05198}, + author = {Kronqvist, Jan and Misener, Ruth and Tsay, Calvin}, + year = {2022} +} + +@article{trespalacios2016cutting, + title = {Cutting Plane Algorithm for Convex Generalized Disjunctive Programs}, + journal = {INFORMS Journal on Computing}, + volume = {28}, + number = {2}, + pages = {209--222}, + doi = {10.1287/ijoc.2015.0669}, + url = {https://pubsonline.informs.org/doi/10.1287/ijoc.2015.0669}, + author = {Trespalacios, Francisco and Grossmann, Ignacio E.}, + year = {2016} +} + +@article{bernal2024convex, + title={Convex mixed-integer nonlinear programs derived from generalized disjunctive programming using cones}, + author={Bernal Neira, David E. and Grossmann, Ignacio E.}, + journal={Computational Optimization and Applications}, + volume={88}, + pages={251--312}, + year={2024}, + publisher={Springer}, + doi={10.1007/s10589-024-00557-9} +} + +@article{turkay1996logic, + title = {Logic-based MINLP algorithms for the optimal synthesis of process networks}, + journal = {Computers \& Chemical Engineering}, + volume = {20}, + number = {8}, + pages = {959--978}, + doi = {10.1016/0098-1354(95)00219-7}, + url = {https://linkinghub.elsevier.com/retrieve/pii/0098135495002197}, + author = {T{\"u}rkay, Metin and Grossmann, Ignacio E.}, + year = {1996} +} + +@article{chen2022pyomo, + title={Pyomo. GDP: an ecosystem for logic based modeling and optimization development: Q. Chen et al.}, + author={Chen, Qi and Johnson, Emma S and Bernal, David E and Valentin, Romeo and Kale, Sunjeev and Bates, Johnny and Siirola, John D and Grossmann, Ignacio E}, + journal={Optimization and Engineering}, + volume={23}, + number={1}, + pages={607--642}, + year={2022}, + publisher={Springer} +} + +@misc{perez2023disjunctiveprogramming, + title = {{DisjunctiveProgramming.jl}: Generalized Disjunctive Programming Models and Algorithms for {JuMP}}, + doi = {10.48550/ARXIV.2304.10492}, + url = {https://arxiv.org/abs/2304.10492}, + 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.}, + author = {Perez, Hector D. and Joshi, Shivank and Grossmann, Ignacio E.}, + year = {2023} +} + +@article{pulsipher2022infiniteopt, + title = {A unifying modeling abstraction for infinite-dimensional optimization}, + journal = {Computers \& Chemical Engineering}, + volume = {156}, + pages = {107567}, + year = {2022}, + doi = {10.1016/j.compchemeng.2021.107567}, + author = {Pulsipher, Joshua L. and Zhang, Weiqi and + Hongisto, Tyler J. and Zavala, Victor M.} +} + +@article{gondosiswanto2025infiniteopt, + title = {Advances to modeling and solving infinite-dimensional optimization problems in {InfiniteOpt.jl}}, + journal = {Digital Chemical Engineering}, + volume = {15}, + pages = {100236}, + doi = {10.1016/j.dche.2025.100236}, + url = {https://linkinghub.elsevier.com/retrieve/pii/S2772508125000201}, + abstract = {This paper details two extensions for the unifying abstraction behind InfiniteOpt.jl: infinite-dimensional generalized disjunctive programming (InfiniteGDP) and GPU-compatible direct transcription solution techniques with an abstraction called InfiniteSIMD-NLP.}, + author = {Gondosiswanto, Evelyn and Pulsipher, Joshua L.}, + year = {2025} +} + +@misc{gams2026emp, + author = {{GAMS Development Corporation}}, + title = {Disjunctive Programming ({EMP})}, + howpublished = {GAMS Documentation}, + url = {https://www.gams.com/latest/docs/UG_EMP_DisjunctiveProgramming.html}, + urldate = {2026-11-26}, + year = {2026} +} + +@incollection{macielxavier2024qubo, + title = {Disjunctive Programming meets {QUBO}}, + booktitle = {Proceedings of the 34th European Symposium on Computer Aided Process Engineering / 15th International Symposium on Process Systems Engineering ({ESCAPE34/PSE24})}, + editor = {Manenti, Flavio and Reklaitis, Gintaras V.}, + series = {Computer Aided Chemical Engineering}, + volume = {53}, + pages = {3433--3438}, + publisher = {Elsevier}, + doi = {10.1016/B978-0-443-28824-1.50573-1}, + url = {https://linkinghub.elsevier.com/retrieve/pii/B9780443288241505731}, + author = {{Maciel Xavier}, Pedro and Ripper, Pedro and {Dias Garcia}, Joaquim and Maculan, Nelson and Pulsipher, Joshua L. and {Bernal Neira}, David E.}, + year = {2024} +} + +@misc{mazzadi2026scheduling, + title = {Optimal Production Scheduling for Multi-Product Mineral Manufacturing}, + doi = {10.48550/ARXIV.2611.23699}, + url = {https://arxiv.org/abs/2611.23699}, + author = {Mazzadi, Stefan and Pulsipher, Joshua L.}, + year = {2026} +} + +@misc{nguyen2026infinitegdp, + title = {Solution Methods for Infinite-Dimensional Generalized Disjunctive Programming}, + doi = {10.48550/ARXIV.2608.27707}, + url = {https://arxiv.org/abs/2608.27707}, + author = {Nguyen, Daniel and Pulsipher, Joshua L.}, + year = {2026} +} + +@misc{perez2023extensions, + title = {Extensions to Generalized Disjunctive Programming: Hierarchical Structures and First-order Logic}, + doi = {10.48550/arXiv.2303.04375}, + url = {http://arxiv.org/abs/2303.04375}, + author = {Perez, Hector D. and Grossmann, Ignacio E.}, + year = {2023} +} diff --git a/joss/paper.md b/joss/paper.md new file mode 100644 index 00000000..af233247 --- /dev/null +++ b/joss/paper.md @@ -0,0 +1,319 @@ +--- +title: >- + DisjunctiveProgramming.jl: A DisjunctiveProgramming extension to JuMP.jl +tags: + - Julia + - MINLP + - Disjunctive Programming + - Logical Constraints +authors: + - name: Daniel Nguyen + affiliation: 1 + # - name: Hector David Perez + # affiliation: "?" + - name: Joshua Pulsipher + corresponding: true + affiliation: 1 +affiliations: + - name: University of Waterloo + index: 1 +date: 25 November 2026 +bibliography: paper.bib +--- + +# Summary + +`DisjunctiveProgramming.jl` is a Julia package that brings Generalized +Disjunctive Programming (GDP) [@raman1994modelling; @grossmann2013systematic] to +`JuMP.jl`. The package lets users declare logical variables (True/False), +disjunctions, and logical propositions using familiar syntax. The workflow from +a GDP to a mixed-integer program (MIP) that solvers readily accept is automated, +and the package offers an array of reformulation techniques for producing the +final MIP. + +The current version of the package also extends other Julia packages (e.g., +`InfiniteOpt.jl` [@pulsipher2022infiniteopt] and `MathOptAI.jl`). + +# Problem Class + +`DisjunctiveProgramming.jl` targets optimization problems that contain +continuous and discrete decisions. It represents discrete decisions as +disjuncts, which contain constraints that hold when their logical indicators are +True. Such problems are known as Generalized Disjunctive Programs in the process +systems engineering literature [@grossmann2013systematic; +@trespalacios2014review]. + + +GDP is used to model alternative sets of constraints, which can be linked +through logical propositions. The components are as follows: + +- **Global constraints** ($g(x) \leq 0$): constraints that must always hold, + regardless of which disjuncts are selected. +- **Logical variables** ($Y_{ki}$): True/False variables that indicate whether + disjunct $i$ of disjunction $k$ is selected. +- **Disjuncts** ($i \in D_k$): the alternatives within disjunction $k$. Each + pairs a logical variable $Y_{ki}$ with constraints $h_{ki}(x) \leq 0$ that + must hold when $Y_{ki}$ is True. +- **Disjunctions** ($k \in K$): the choices to be made. Each joins its disjuncts + with the "or" operator ($\bigvee$). +- **Logical constraints** ($\Omega(Y) = \text{True}$): rules that relate the + logical variables, such as selecting exactly one disjunct per disjunction or + requiring one choice whenever another is made. + +Together, these components form the general GDP [@raman1994modelling]: + +$$ +\begin{aligned} +\min_{x, Y} \quad & f(x) \\ +\text{s.t.} \quad & g(x) \leq 0 \\ +& \bigvee_{i \in D_k} \begin{bmatrix} Y_{ki} \\ h_{ki}(x) \leq 0 \end{bmatrix}, + && k \in K \\ +& \Omega(Y) = \text{True} \\ +& x \in X, \quad Y_{ki} \in \{\text{True}, \text{False}\}, + && k \in K, \; i \in D_k +\end{aligned} +$$ + +where $X$ is the domain of the decision variables. + +To solve a GDP, each logical variable $Y_{ki}$ is replaced by a binary variable +$y_{ki}$, and each disjunction is rewritten with algebraic constraints. The two +classical reformulations are Big-M [@raman1994modelling]: + +$$ +\begin{aligned} +& h_{ki}(x) \leq M_{ki} (1 - y_{ki}), && k \in K, \; i \in D_k \\ +& \textstyle\sum_{i \in D_k} y_{ki} = 1, && k \in K +\end{aligned} +$$ + +where $M_{ki}$ is large enough that the constraint is inactive when $y_{ki} = +0$, and Hull [@balas1985disjunctive]: + +$$ +\begin{aligned} +& x = \textstyle\sum_{i \in D_k} v_{ki}, && k \in K \\ +& y_{ki} \, h_{ki}(v_{ki} / y_{ki}) \leq 0, && k \in K, \; i \in D_k \\ +& y_{ki} \, x^L \leq v_{ki} \leq y_{ki} \, x^U, && k \in K, \; i \in D_k \\ +& \textstyle\sum_{i \in D_k} y_{ki} = 1, && k \in K +\end{aligned} +$$ + +where $v_{ki}$ are copies of $x$ for each disjunct and $[x^L, x^U]$ are the +bounds of $x$. Hull gives a tighter continuous relaxation, but adds variables +and constraints. + + +# Statement of need + +`DisjunctiveProgramming.jl` is intended for researchers and practicitioners that +require logic in their optimization problems. Such problems could arise in areas +of scheduling, plant configuration, energy systems, and the broader process +system engineering field. + +Unless a solver explicitly supports discrete logic, it requires problems in MIP +form to model discrete choices. A MIP is solved with algorithms such as branch +and bound, in which relaxed versions of the problem are solved repeatedly. The +search space of the relaxed problem can grow or shrink depending on how the MIP +is posed [@trespalacios2014review; @kronqvist2025fifty], as shown in +\autoref{fig:disks}. The number of constraints and variables introduced must +also be considered. + +For optimization models that require discrete logic, it is often more +interpretable to formulate the problem with True/False logic through +disjunctions than as a MIP in the traditional Big-M [@raman1994modelling] or +Hull [@balas1985disjunctive] form. This is especially true when problems have +multiple layers of logic or nested logic. GDP provides an abstraction layer that +enables users without knowledge of reformulation techniques to pose problems and +recover interpretable solutions [@grossmann2013systematic]. + +In the modern literature, techniques such as Multiple Big-M +[@trespalacios2015mbm] and P-Split [@kronqvist2022psplit], which are variations +of Big-M and Hull, have been shown to reduce solve times. These techniques are +more involved to formulate, and some require solving subproblems. +`DisjunctiveProgramming.jl` enables users to test all of these techniques with +one keyword argument in the `optimize!` call. + +# State of the field + +The Statement of need describes the typical hurdles modelers face when solving a +problem initially posed as a GDP. A few tools can reformulate a GDP into a MIP, +and they can be compared by their ecosystems and the reformulations they offer. + +- **`Pyomo.GDP`** [@chen2022pyomo] (Python) + + `Pyomo.GDP` extends the Pyomo modeling language, similar to how + `DisjunctiveProgramming.jl` extends JuMP. It offers a comparable set of + reformulations (Big-M, Multiple Big-M, Hull, and cutting planes + [@trespalacios2016cutting]) and is widely used in GDP research. + +- **GAMS EMP/LogMIP** [@gams2026emp] (GAMS) + + GAMS is a commercial modeling system that supports GDP through LogMIP 2.0, + which is part of its Extended Mathematical Programming (EMP) framework. Its + documented reformulations are Big-M, Hull, and indicator constraints. + +- **`DisjunctiveProgramming.jl` v0.3.3** [@perez2023disjunctiveprogramming] + (Julia) + + The current version of `DisjunctiveProgramming.jl` is a complete redesign of + the original implementation. The previous version supported only two + reformulation techniques and did not defer reformulation as the current + package does. Version 0.3.3 reformulated each disjunction as it was declared, + so the original GDP was not retained. + +- **This package: `DisjunctiveProgramming.jl` v0.8.0** (Julia) + + `DisjunctiveProgramming.jl` supports many of the same reformulations as + `Pyomo.GDP` and also supports vector and conic constraint sets within + disjuncts [@bernal2024convex]. Recent work also allows disjunct constraints to + contain decision functions that vary over continuous domains such as space, + time, or uncertainty [@gondosiswanto2025infiniteopt]. + +# Software design + +`DisjunctiveProgramming.jl` maintains a separation between the GDP information +and the MIP formulation. A `GDPModel` is, in essence, a JuMP model that contains +extra logical information (logical variables, disjunct constraints, logical +constraints, etc.). This logical information is used to reformulate the model +into its MIP form through subtypes of `AbstractReformulationMethod`. Because of +this separation, the same `GDPModel` can be reformulated multiple times. + +![Workflow of `DisjunctiveProgramming.jl`. A `GDPModel` stores the GDP and is +reformulated when `optimize!` is called. The stored GDP can be solved again with +another method.\label{fig:workflow}](figures/workflow.png){ width=100% } + +Each reformulation method is a subtype of `AbstractReformulationMethod`, and +Julia's multiple dispatch selects its implementation, so new methods can be +added without changing the modeling interface. The same mechanism supports +extensions within the Julia ecosystem, such as `InfiniteOpt.jl` +[@pulsipher2022infiniteopt], which supports `InfiniteModel`s containing new +constraint types such as ODEs and PDEs. + +A disadvantage of this design is that the problem cannot be solved directly with +decomposition techniques such as logic-based outer approximation +[@turkay1996logic] and branch and bound. `DisjunctiveProgramming.jl` addresses +this by offering `DisjunctionSet`, a MathOptInterface set that passes each +disjunction directly to solvers that support it. `DisjunctiveAlgorithms.jl` +implements logic-based outer approximation using this set as a proof of concept. + +# Research impact statement + +`DisjunctiveProgramming.jl` has been used in the literature for production +scheduling [@mazzadi2026scheduling], quantum annealing [@macielxavier2024qubo], +and nested disjunctions [@perez2023extensions]. It has also been used to +generalize Multiple Big-M, P-Split, cutting planes, and logic-based outer +approximation to InfiniteGDP and benchmark them [@nguyen2026infinitegdp]. + +The package also provides extensions for three other Julia packages: +`InfiniteOpt.jl` for InfiniteGDP [@gondosiswanto2025infiniteopt], `MathOptAI.jl` +for embedding decision trees inside optimization problems as GDPs, and +`AbstractGPs.jl` for approximating Multiple Big-M values over infinite domains +with Gaussian processes [@nguyen2026infinitegdp]. + +# Example + +Consider an optimization problem whose feasible region is described by three +disjoint disks. Each disk is represented by a disjunct that contains its disk +constraint. + +$$ +\begin{aligned} +\min_{x, y, Y} \quad & (x - 0.2)^2 + (y - 5)^2 \\ +\text{s.t.} \quad & \bigvee_{i \in \{1, 2, 3\}} + \begin{bmatrix} Y_i \\ (x - a_i)^2 + (y - b_i)^2 \leq 1 \end{bmatrix} \\ +& \text{Exactly}(1, Y_1, Y_2, Y_3) = \text{True} \\ +& 0 \leq x \leq 8, \quad 0 \leq y \leq 5.5 \\ +& Y_i \in \{\text{True}, \text{False}\}, \quad i \in \{1, 2, 3\} +\end{aligned} +$$ + +where $(a_1, b_1) = (1, 1)$, $(a_2, b_2) = (4, 4.5)$, and $(a_3, b_3) = (7, 1)$ +are the centers of the three disks. + +`DisjunctiveProgramming.jl` implements this GDP as follows: + +```julia +using DisjunctiveProgramming, Gurobi + +model = GDPModel(Gurobi.Optimizer) +@variable(model, 0 <= x <= 8) +@variable(model, 0 <= y <= 5.5) +@variable(model, Y[1:3], Logical) +centers = [(1, 1), (4, 4.5), (7, 1)] +for (i, (a, b)) in enumerate(centers) + @constraint(model, (x - a)^2 + (y - b)^2 <= 1, Disjunct(Y[i])) +end +@disjunction(model, Y) +@objective(model, Min, (x - 0.2)^2 + (y - 5)^2) + +optimize!(model, gdp_method = Hull()) + +######################## ALTERNATIVE METHODS ####################### +# optimize!(model, gdp_method = BigM(100)) +# optimize!(model, gdp_method = MBM(Gurobi.Optimizer)) +# optimize!(model, gdp_method = PSplit([[x], [y]])) +# optimize!(model, gdp_method = CuttingPlanes(Gurobi.Optimizer)) +``` + + +To illustrate, the corresponding Big-M and Hull formulations are as follows. + +Big-M: + +$$ +\begin{aligned} +\min_{x, y, z} \quad & (x - 0.2)^2 + (y - 5)^2 \\ +\text{s.t.} \quad & (x - a_i)^2 + (y - b_i)^2 \leq 1 + M (1 - z_i), + && i \in \{1, 2, 3\} \\ +& z_1 + z_2 + z_3 = 1 \\ +& 0 \leq x \leq 8, \quad 0 \leq y \leq 5.5 \\ +& z_i \in \{0, 1\}, && i \in \{1, 2, 3\} +\end{aligned} +$$ + +Hull: + +$$ +\begin{aligned} +\min_{x, y, x_i, y_i, z} \quad & (x - 0.2)^2 + (y - 5)^2 \\ +\text{s.t.} \quad & x = x_1 + x_2 + x_3, \quad y = y_1 + y_2 + y_3 \\ +& (x_i - a_i z_i)^2 + (y_i - b_i z_i)^2 \leq z_i^2, && i \in \{1, 2, 3\} \\ +& 0 \leq x_i \leq 8 z_i, \quad 0 \leq y_i \leq 5.5 z_i, && i \in \{1, 2, 3\} \\ +& z_1 + z_2 + z_3 = 1 \\ +& z_i \in \{0, 1\}, && i \in \{1, 2, 3\} +\end{aligned} +$$ + +The feasible region and the two relaxations are shown in \autoref{fig:disks}. + +![The three-disk example. (a) The GDP minimizes the squared distance to the +star; the optimum lies on the second disk. (b) and (c) Continuous relaxations of +the Big-M and Hull reformulations, with each relaxation's minimizer (open +circle) and lower bound.\label{fig:disks}](figures/disks.png){ width=100% } + + +# AI usage disclosure + +Generative AI tools, including Claude Code (Anthropic), were used to assist with +software development (specifically test writing, debugging, and docstrings), +documentation drafting, and drafting and language editing of this paper, +including grammar, mathematical notation, and figures. AI tools were not used to +make autonomous design, implementation, or scientific decisions. All AI-assisted +code was thoroughly verified against independent reference implementations and +covered by the test suite. All AI-assisted text was reviewed and edited by the +authors, and technical claims were checked against the implementation, tests, +documentation, and cited literature. The authors are responsible for the final +content of the manuscript, code, and documentation. All pull requests are public +and available for review at +https://github.com/infiniteopt/DisjunctiveProgramming.jl. + +# Acknowledgements + +We acknowledge contributions from Hector D. Perez, Shivank Joshi, and Ignacio E. +Grossmann during the genesis of this project, as well as support from the +Natural Sciences and Engineering Research Council of Canada under grant +RGPIN-202403997 and support provided from the Department of Chemical Engineering +at the University of Waterloo. + +# References