-
Notifications
You must be signed in to change notification settings - Fork 171
Expand file tree
/
Copy pathconstants.hpp
More file actions
31 lines (24 loc) · 1.03 KB
/
constants.hpp
File metadata and controls
31 lines (24 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* clang-format off */
/*
* SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
/* clang-format on */
#pragma once
namespace cuopt::linear_programming::dual_simplex {
constexpr int num_search_strategies = 5;
// Indicate the search and variable selection algorithms used by each thread
// in B&B (See [1]).
//
// [1] T. Achterberg, “Constraint Integer Programming,” PhD, Technischen Universität Berlin,
// Berlin, 2007. doi: 10.14279/depositonce-1634.
enum search_strategy_t : int {
BEST_FIRST = 0, // Best-First + Plunging.
PSEUDOCOST_DIVING = 1, // Pseudocost diving (9.2.5)
LINE_SEARCH_DIVING = 2, // Line search diving (9.2.4)
GUIDED_DIVING = 3, // Guided diving (9.2.3).
COEFFICIENT_DIVING = 4 // Coefficient diving (9.2.1)
};
enum class rounding_direction_t { NONE = -1, DOWN = 0, UP = 1 };
enum class branch_and_bound_mode_t { PARALLEL = 0, DETERMINISTIC = 1 };
} // namespace cuopt::linear_programming::dual_simplex