Skip to content

Commit

Permalink
Add ALPAQA_WITH_GRADIENT_CHECKER option
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Dec 11, 2023
1 parent a6b3817 commit 266b8aa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ jobs:
-D ALPAQA_WITH_IPOPT=On \
-D ALPAQA_WITH_CUTEST=On \
-D ALPAQA_WITH_CUTEST_EXAMPLES=Off \
-D ALPAQA_WITH_DRIVERS=On \
-D ALPAQA_WITH_GRADIENT_CHECKER=On \
-D CMAKE_TOOLCHAIN_FILE="$staging/$host.toolchain.cmake" \
-D CMAKE_PREFIX_PATH="$staging/mumps/usr/local;$staging/ipopt/usr/local" \
-D CMAKE_FIND_ROOT_PATH="$staging/eigen;$staging/casadi;$staging/openblas;$staging/mumps;$staging/ipopt"
Expand Down
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ option(ALPAQA_WITH_EXAMPLES
"Build the examples" On)
option(ALPAQA_WITH_DRIVERS
"Build the solver driver programs" On)
option(ALPAQA_WITH_GRADIENT_CHECKER
"Build the solver driver programs" Off)
option(ALPAQA_WITH_OCP
"Enable solvers tailored for optimal control problems" On)
cmake_dependent_option(ALPAQA_WITH_CASADI_OCP
Expand Down
1 change: 1 addition & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class AlpaqaRecipe(ConanFile):
"with_python": False,
"with_matlab": False,
"with_drivers": True,
"with_gradient_checker": False,
"with_casadi": False,
"with_cutest": False,
"with_qpalm": False,
Expand Down
4 changes: 3 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,10 @@ if (ALPAQA_WITH_DRIVERS)
if (TARGET alpaqa::qpalm-adapter)
target_link_libraries(driver PRIVATE alpaqa::qpalm-adapter)
endif()
endif()

# Gradient checker tool
# Gradient checker tool
if (ALPAQA_WITH_GRADIENT_CHECKER)
add_executable(gradient-checker
"alpaqa/src/driver/gradient-checker.cpp"
"alpaqa/src/driver/problem.cpp"
Expand Down

0 comments on commit 266b8aa

Please sign in to comment.