14#ifndef OR_TOOLS_MATH_OPT_SOLVER_TESTS_INVALID_INPUT_TESTS_H_
15#define OR_TOOLS_MATH_OPT_SOLVER_TESTS_INVALID_INPUT_TESTS_H_
22#include "absl/status/statusor.h"
23#include "gtest/gtest.h"
26#include "ortools/math_opt/parameters.pb.h"
42 friend std::ostream&
operator<<(std::ostream& out,
55 :
public ::testing::TestWithParam<InvalidInputTestParameters> {
69 friend std::ostream&
operator<<(std::ostream& out,
74 :
public ::testing::TestWithParam<InvalidParameterTestParams> {
absl::StatusOr< SolveResult > SimpleSolve(const SolveParameters ¶meters=GetParam().solve_parameters)
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)
In SWIG mode, we don't want anything besides these top-level includes.
InvalidParameterTestParams(SolverType solver_type, SolveParameters solve_parameters, std::vector< std::string > expected_error_substrings)
std::vector< std::string > expected_error_substrings
friend std::ostream & operator<<(std::ostream &out, const InvalidParameterTestParams ¶ms)
SolveParameters solve_parameters