-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes farkas certificate and extreme ray for HiGHS
- Loading branch information
Showing
13 changed files
with
495 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
add_executable(dev main.cpp) | ||
add_executable(dev main.cpp | ||
../unit-tests/external-solvers/all/toy_milp.cpp | ||
) | ||
target_link_libraries(dev PRIVATE idol) | ||
target_include_directories(dev PRIVATE ../lib/include) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Configure test environment | ||
|
||
enable_testing() | ||
|
||
if (${WITH_TEST_COVERAGE}) | ||
target_compile_options(idol PRIVATE -fprofile-arcs -ftest-coverage -g -O0 --coverage) | ||
set(CMAKE_C_COMPILER gcc) | ||
set(CMAKE_CPP_COMPILER g++) | ||
target_link_libraries(idol PUBLIC gcov) | ||
endif() | ||
|
||
find_package(Catch2 QUIET) | ||
|
||
if (NOT ${Catch2_FOUND}) | ||
|
||
Include(FetchContent) | ||
|
||
set(FETCHCONTENT_QUIET FALSE) | ||
|
||
FetchContent_Declare( | ||
Catch2 | ||
GIT_REPOSITORY https://github.com/catchorg/Catch2.git | ||
GIT_TAG v3.3.2 # or a later release | ||
GIT_PROGRESS TRUE | ||
) | ||
|
||
FetchContent_MakeAvailable(Catch2) | ||
|
||
endif() | ||
|
||
# Define tests | ||
add_subdirectory(external-solvers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
add_subdirectory(all) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
message("${AVAILABLE_MILP_SOLVERS}") | ||
|
||
foreach (OPTIMIZER ${AVAILABLE_MILP_SOLVERS}) | ||
|
||
set(target_name "test_external_solver_${OPTIMIZER}") | ||
|
||
add_executable(${target_name} | ||
toy_lp.cpp | ||
toy_milp.cpp | ||
) | ||
|
||
target_compile_definitions(${target_name} PRIVATE OPTIMIZER=${OPTIMIZER}) | ||
target_link_libraries(${target_name} PRIVATE idol Catch2::Catch2WithMain) | ||
|
||
endforeach () |
Oops, something went wrong.