Skip to content

Commit

Permalink
894 Implement automatic differentiation and dynamic optimization exam…
Browse files Browse the repository at this point in the history
…ples (#895)

- Implemented ODE-SEAIR model to reproduce optimization results from literature.
- Integrating automatic differentiation (AD) for ODE-SEAIR model.
- Extending template structure for AD data type.
- Implemented dynamic optimization example using IPopt.

Co-authored-by: Ralf Hannemann-Tamas <[email protected]>
Co-authored-by: Martin J. Kühn <[email protected]>
Co-authored-by: reneSchm <[email protected]>
Co-authored-by: lenaploetzke <[email protected]>
Co-authored-by: HenrZu <[email protected]>
Co-authored-by: Julia Bicker <[email protected]>
Co-authored-by: Maximilian Betz <[email protected]>
  • Loading branch information
8 people committed May 24, 2024
1 parent 5c48fbe commit 20fa64a
Show file tree
Hide file tree
Showing 169 changed files with 12,118 additions and 5,692 deletions.
6 changes: 5 additions & 1 deletion .github/actions/linux-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ inputs:
description: "Enable Multithreading with OpenMP (ON or OFF, default OFF). If ON, adds `-omp` to the name of the artifact."
required: false
default: "OFF"
enable-optimization:
description: "Enable optimization with Ipopt (ON or OFF, default ON)"
required: false
default: "ON"
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -89,7 +93,7 @@ runs:
exit 1
fi
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=${{ inputs.config }} -DMEMILIO_BUILD_TESTS=${{ inputs.build-tests }} -DMEMILIO_BUILD_BENCHMARKS=${{ inputs.build-benchmarks }} -DMEMILIO_TEST_COVERAGE=${{ inputs.coverage }} -DMEMILIO_SANITIZE_ADDRESS=${{ inputs.sanitize-addr }} -DMEMILIO_SANITIZE_UNDEFINED=${{ inputs.sanitize-ub }} -DMEMILIO_USE_BUNDLED_JSONCPP=${{ inputs.optional-dependencies }} -DMEMILIO_ENABLE_OPENMP=${{ inputs.openmp }} ..
cmake -DCMAKE_BUILD_TYPE=${{ inputs.config }} -DMEMILIO_BUILD_TESTS=${{ inputs.build-tests }} -DMEMILIO_BUILD_BENCHMARKS=${{ inputs.build-benchmarks }} -DMEMILIO_ENABLE_IPOPT=${{ inputs.enable-optimization }} -DMEMILIO_TEST_COVERAGE=${{ inputs.coverage }} -DMEMILIO_SANITIZE_ADDRESS=${{ inputs.sanitize-addr }} -DMEMILIO_SANITIZE_UNDEFINED=${{ inputs.sanitize-ub }} -DMEMILIO_USE_BUNDLED_JSONCPP=${{ inputs.optional-dependencies }} -DMEMILIO_ENABLE_OPENMP=${{ inputs.openmp }} ..
make -j4
- name: create build dir archive
shell: bash
Expand Down
Loading

0 comments on commit 20fa64a

Please sign in to comment.