Google OR-Tools
v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
ip_multiple_solutions_tests.h
Go to the documentation of this file.
1
// Copyright 2010-2024 Google LLC
2
// Licensed under the Apache License, Version 2.0 (the "License");
3
// you may not use this file except in compliance with the License.
4
// You may obtain a copy of the License at
5
//
6
// http://www.apache.org/licenses/LICENSE-2.0
7
//
8
// Unless required by applicable law or agreed to in writing, software
9
// distributed under the License is distributed on an "AS IS" BASIS,
10
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
// See the License for the specific language governing permissions and
12
// limitations under the License.
13
14
#ifndef OR_TOOLS_MATH_OPT_SOLVER_TESTS_IP_MULTIPLE_SOLUTIONS_TESTS_H_
15
#define OR_TOOLS_MATH_OPT_SOLVER_TESTS_IP_MULTIPLE_SOLUTIONS_TESTS_H_
16
17
#include <ostream>
18
#include <utility>
19
20
#include "gtest/gtest.h"
21
#include "
ortools/math_opt/cpp/math_opt.h
"
22
23
namespace
operations_research::math_opt
{
24
25
struct
IpMultipleSolutionsTestParams
{
26
IpMultipleSolutionsTestParams
(
const
SolverType
solver_type
,
27
SolveParameters
ensure_hint_in_pool
)
28
:
solver_type
(
solver_type
),
29
ensure_hint_in_pool
(
std
::move(
ensure_hint_in_pool
)) {}
30
31
// The tested solver.
32
SolverType
solver_type
;
33
34
SolveParameters
ensure_hint_in_pool
;
35
36
friend
std::ostream&
operator<<
(std::ostream& out,
37
const
IpMultipleSolutionsTestParams
& params);
38
};
39
40
class
IpMultipleSolutionsTest
41
:
public
::testing::TestWithParam<IpMultipleSolutionsTestParams> {};
42
43
}
// namespace operations_research::math_opt
44
45
#endif
// OR_TOOLS_MATH_OPT_SOLVER_TESTS_IP_MULTIPLE_SOLUTIONS_TESTS_H_
operations_research::math_opt::IpMultipleSolutionsTest
Definition
ip_multiple_solutions_tests.h:41
math_opt.h
operations_research::math_opt
An object oriented wrapper for quadratic constraints in ModelStorage.
Definition
gurobi_isv.cc:28
operations_research::math_opt::SolverType
SolverType
The solvers supported by MathOpt.
Definition
parameters.h:42
std
STL namespace.
operations_research::math_opt::IpMultipleSolutionsTestParams
Definition
ip_multiple_solutions_tests.h:25
operations_research::math_opt::IpMultipleSolutionsTestParams::ensure_hint_in_pool
SolveParameters ensure_hint_in_pool
Definition
ip_multiple_solutions_tests.h:34
operations_research::math_opt::IpMultipleSolutionsTestParams::operator<<
friend std::ostream & operator<<(std::ostream &out, const IpMultipleSolutionsTestParams ¶ms)
Definition
ip_multiple_solutions_tests.cc:29
operations_research::math_opt::IpMultipleSolutionsTestParams::IpMultipleSolutionsTestParams
IpMultipleSolutionsTestParams(const SolverType solver_type, SolveParameters ensure_hint_in_pool)
Definition
ip_multiple_solutions_tests.h:26
operations_research::math_opt::IpMultipleSolutionsTestParams::solver_type
SolverType solver_type
The tested solver.
Definition
ip_multiple_solutions_tests.h:32
operations_research::math_opt::SolveParameters
Definition
parameters.h:265
ortools
math_opt
solver_tests
ip_multiple_solutions_tests.h
Generated by
1.12.0