Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::TimeLimitTest Class Reference

#include <generic_tests.h>

Inheritance diagram for operations_research::math_opt::TimeLimitTest:

Public Member Functions

SolverType TestedSolver () const
 

Detailed Description

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.

Member Function Documentation

◆ TestedSolver()

SolverType operations_research::math_opt::TimeLimitTest::TestedSolver ( ) const
inline

Definition at line 106 of file generic_tests.h.


The documentation for this class was generated from the following file: