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

#include <qp_tests.h>

Inheritance diagram for operations_research::math_opt::SimpleQpTest:

Protected Member Functions

SolverType TestedSolver () const
 
absl::StatusOr< SolveResult > SimpleSolve (const Model &model)
 

Detailed Description

A suite of unit tests for quadratic objectives. Note that a solver that does not support quadratic objectives should still use this fixture to ensure that it is not silently ignoring one.

To use these tests, in file <solver>_test.cc, write: INSTANTIATE_TEST_SUITE_P( <Solver>SimpleQpTest, SimpleQpTest, testing::Values(QpTestParameters(SolverType::k<Solver>, parameters, qp_support, supports_incrementalism_not_modifying_qp, supports_qp_incrementalism, use_integer_variables)));

Definition at line 67 of file qp_tests.h.

Member Function Documentation

◆ SimpleSolve()

absl::StatusOr< SolveResult > operations_research::math_opt::SimpleQpTest::SimpleSolve ( const Model & model)
inlineprotected

Definition at line 70 of file qp_tests.h.

◆ TestedSolver()

SolverType operations_research::math_opt::SimpleQpTest::TestedSolver ( ) const
inlineprotected

Definition at line 69 of file qp_tests.h.


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