14#ifndef OR_TOOLS_MATH_OPT_SOLVER_TESTS_STATUS_TESTS_H_
15#define OR_TOOLS_MATH_OPT_SOLVER_TESTS_STATUS_TESTS_H_
20#include "absl/status/statusor.h"
21#include "gtest/gtest.h"
64 friend std::ostream&
operator<<(std::ostream& out,
68class StatusTest :
public ::testing::TestWithParam<StatusTestParameters> {
absl::StatusOr< SolveResult > SimpleSolve(const Model &model)
SolverType TestedSolver() const
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)
StatusTestParameters(const SolverType solver_type, SolveParameters parameters, const bool disallow_primal_or_dual_infeasible, const bool supports_iteration_limit, const bool use_integer_variables, const bool supports_node_limit, const bool support_interrupter, const bool supports_one_thread)
bool supports_iteration_limit
bool disallow_primal_or_dual_infeasible
SolveParameters parameters
bool support_interrupter
True if the solver support SolveInterrupter.
bool use_integer_variables
True if the tests should be performed with integer variables.
SolverType solver_type
The tested solver.
friend std::ostream & operator<<(std::ostream &out, const StatusTestParameters ¶ms)