This repository includes the source code and results associated with the paper titled "Addressing Discrete Dynamic Optimization via a Logic-Based Discrete-Steepest Descent Algorithm", authored by Zedong Peng, Albert Lee, and David E. Bernal Neira.
Published in 2024 IEEE CDC, pp. 1664–1669, DOI: 10.1109/CDC56724.2024.10886477. See paper provenance and frozen releases for the preserved historical revision, solver versions, experimental settings, and integrity checks. main remains maintained; use the protected paper release tags for permanent references.
This repository is licensed under the MIT license. Citation metadata is available in CITATION.cff.
All numerical models are written using the DAE and GDP modules in Pyomo. Use Python 3.12 or newer in a virtual environment. Install the runtime packages with:
pip3 install -r requirements.txtWe use KNITRO and BARON to solve the Mixed-Integer Nonlinear Programs (MINLP) and Nonlinear Programs (NLP). The implementation is based on GAMS to access these solvers.
requirements.txt contains the dependencies used by this repository, replacing
the old machine-specific Conda/Anaconda export. IDEs, notebook servers, and
unrelated packages from that export are not needed to run these scripts.
python -m pip install -r requirements-dev.txt
python -m pytest -q
python scripts/verify_paper_snapshot.py
node --test tests/dependabot-automerge.test.cjs
python -m pip_audit -r requirements-dev.txtCI runs on pull requests and main, and weekly to catch new vulnerabilities.
It tests Python 3.12–3.13, builds and discretizes every model in both mode-transfer
configurations, applies Big-M and hull reformulations, checks GDPopt plugin
availability, and runs the plotting and LaTeX scripts against recorded results.
Generated outputs go into temporary directories. Licensed solver benchmarks
must be run separately with GAMS and the appropriate solver licenses.
Dependabot checks Python packages and GitHub Actions weekly. A trusted main
workflow enables GitHub's native auto-merge for its PRs. Repository rules require
both test lanes, the dependency audit, and CodeQL, with the branch up to date
before merging. The workflow avoids PRs with blocking reviews or unresolved
threads and never runs PR code with write credentials. It deletes only unchanged
merged Dependabot branches and explicitly starts CI on main when a token-made
merge suppresses the push event. A half-hourly check reconciles delayed merges.
sh run.sh --help
sh run.sh --stages 4 --strategies gdpopt.ldsda --nlp-solvers knitro --dry-runThe launcher runs in the foreground and returns failures to the calling shell.
Set PYTHON=/path/to/python to select an interpreter. Actual solves require GAMS
on PATH and licenses for the selected solvers. New output is written under
benchmark-runs/, with a unique directory per invocation; published results in
results/ remain frozen. See the reproduction commands
for the paper's stage counts, discretization settings, and time limits.