14#ifndef OR_TOOLS_MATH_OPT_SOLVER_TESTS_LOGICAL_CONSTRAINT_TESTS_H_
15#define OR_TOOLS_MATH_OPT_SOLVER_TESTS_LOGICAL_CONSTRAINT_TESTS_H_
19#include "absl/status/statusor.h"
20#include "gtest/gtest.h"
85 :
public testing::TestWithParam<LogicalConstraintTestParameters> {
89 {.parameters = GetParam().parameters});
108 :
public testing::TestWithParam<LogicalConstraintTestParameters> {};
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_indicator_constraints
True if the solver supports indicator constraints.
bool supports_sos2
True if the solver supports SOS2 constraints.
SolverType solver_type
The tested solver.
bool supports_incremental_add_and_deletes
bool supports_deleting_indicator_variables
True if the solver supports updates that delete indicator variables.
bool supports_updating_binary_variables
bool supports_integer_variables
True if the solver supports integer variables.
bool supports_incremental_variable_deletions
True if the solver supports updates that delete (non-indicator) variables.
SolveParameters parameters
LogicalConstraintTestParameters(SolverType solver_type, SolveParameters parameters, bool supports_integer_variables, bool supports_sos1, bool supports_sos2, bool supports_indicator_constraints, bool supports_incremental_add_and_deletes, bool supports_incremental_variable_deletions, bool supports_deleting_indicator_variables, bool supports_updating_binary_variables)
bool supports_sos1
True if the solver supports SOS1 constraints.