14#ifndef OR_TOOLS_MATH_OPT_SOLVER_TESTS_LP_TESTS_H_
15#define OR_TOOLS_MATH_OPT_SOLVER_TESTS_LP_TESTS_H_
21#include "absl/status/statusor.h"
22#include "gtest/gtest.h"
62 friend std::ostream&
operator<<(std::ostream& out,
66class SimpleLpTest :
public ::testing::TestWithParam<SimpleLpTestParameters> {
90 std::unique_ptr<IncrementalSolver>
solver_;
std::unique_ptr< IncrementalSolver > solver_
const LinearConstraint c_2_
const LinearConstraint c_3_
const LinearConstraint c_1_
absl::StatusOr< SolveResult > SimpleSolve(const Model &model)
SolverType TestedSolver() const
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.
bool supports_basis
True if the solver produces a basis.
SolverType solver_type
The tested solver.
bool supports_duals
True if a dual solution is returned.
bool disallows_infeasible_or_unbounded
SimpleLpTestParameters(const SolverType solver_type, SolveParameters parameters, const bool supports_duals, const bool supports_basis, const bool ensures_primal_ray, const bool ensures_dual_ray, const bool disallows_infeasible_or_unbounded)
friend std::ostream & operator<<(std::ostream &out, const SimpleLpTestParameters ¶ms)
SolveParameters parameters