14#ifndef OR_TOOLS_MATH_OPT_SOLVER_TESTS_QC_TESTS_H_
15#define OR_TOOLS_MATH_OPT_SOLVER_TESTS_QC_TESTS_H_
19#include "absl/status/statusor.h"
20#include "gtest/gtest.h"
64class SimpleQcTest :
public testing::TestWithParam<QcTestParameters> {
68 {.parameters = GetParam().parameters});
96class QcDualsTest :
public testing::TestWithParam<QcTestParameters> {
100 {.parameters = GetParam().parameters});
absl::StatusOr< SolveResult > SimpleSolve(const Model &model)
absl::StatusOr< SolveResult > SimpleSolve(const Model &model)
An object oriented wrapper for quadratic constraints in ModelStorage.
SolverType
The solvers supported by MathOpt.
absl::StatusOr< SolveResult > Solve(const Model &model, const SolverType solver_type, const SolveArguments &solve_args, const SolverInitArguments &init_args)
std::ostream & operator<<(std::ostream &ostr, const IndicatorConstraint &constraint)
bool supports_incremental_add_and_deletes
bool use_integer_variables
True if the solver supports integer variables.
SolverType solver_type
The tested solver.
bool supports_qc
True if the solver supports quadratic constraints.
bool supports_incremental_variable_deletions
SolveParameters parameters
QcTestParameters(SolverType solver_type, SolveParameters parameters, bool supports_qc, bool supports_incremental_add_and_deletes, bool supports_incremental_variable_deletions, bool use_integer_variables)