Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <generic_tests.h>
Public Member Functions | |
SolverType | TestedSolver () const |
A suite of unit tests to show that time limits are handled correctly.
These tests require that the underlying solver supports a callback. The tests will create either a small LP or IP, depending on the bool integer_variables below.
To use these tests, in file <solver>test.cc write: INSTANTIATE_TEST_SUITE_P(<Solver>TimeLimitTest, TimeLimitTest, testing::Values(TimeLimitTestParameters( SolverType::k<Solver>, <integer_variables>, CALLBACK_EVENT<EVENT>)));
Definition at line 104 of file generic_tests.h.
|
inline |
Definition at line 106 of file generic_tests.h.