Google OR-Tools
v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
basis_status.h
Go to the documentation of this file.
1
// Copyright 2010-2025 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
// IWYU pragma: private, include "ortools/math_opt/cpp/math_opt.h"
15
// IWYU pragma: friend "ortools/math_opt/cpp/.*"
16
17
#ifndef ORTOOLS_MATH_OPT_CPP_BASIS_STATUS_H_
18
#define ORTOOLS_MATH_OPT_CPP_BASIS_STATUS_H_
19
20
#include <cstdint>
21
22
#include "
ortools/math_opt/cpp/enums.h
"
// IWYU pragma: export
23
#include "
ortools/math_opt/solution.pb.h
"
24
25
namespace
operations_research::math_opt
{
26
27
// Status of a variable/constraint in a LP basis.
28
enum class
BasisStatus
: int8_t {
29
// The variable/constraint is free (it has no finite bounds).
30
kFree
=
BASIS_STATUS_FREE
,
31
32
// The variable/constraint is at its lower bound (which must be finite).
33
kAtLowerBound
=
BASIS_STATUS_AT_LOWER_BOUND
,
34
35
// The variable/constraint is at its upper bound (which must be finite).
36
kAtUpperBound
=
BASIS_STATUS_AT_UPPER_BOUND
,
37
38
// The variable/constraint has identical finite lower and upper bounds.
39
kFixedValue
=
BASIS_STATUS_FIXED_VALUE
,
40
41
// The variable/constraint is basic.
42
kBasic
=
BASIS_STATUS_BASIC
,
43
};
44
45
MATH_OPT_DEFINE_ENUM
(
BasisStatus
,
BASIS_STATUS_UNSPECIFIED
);
46
47
}
// namespace operations_research::math_opt
48
49
#endif
// ORTOOLS_MATH_OPT_CPP_BASIS_STATUS_H_
enums.h
MATH_OPT_DEFINE_ENUM
#define MATH_OPT_DEFINE_ENUM(CppEnum, proto_unspecified_value)
Definition
enums.h:325
operations_research::math_opt
Definition
gurobi_isv.cc:28
operations_research::math_opt::BasisStatus
BasisStatus
Definition
basis_status.h:28
operations_research::math_opt::BasisStatus::kFixedValue
@ kFixedValue
Definition
basis_status.h:39
operations_research::math_opt::BasisStatus::kBasic
@ kBasic
Definition
basis_status.h:42
operations_research::math_opt::BasisStatus::kFree
@ kFree
Definition
basis_status.h:30
operations_research::math_opt::BasisStatus::kAtLowerBound
@ kAtLowerBound
Definition
basis_status.h:33
operations_research::math_opt::BasisStatus::kAtUpperBound
@ kAtUpperBound
Definition
basis_status.h:36
operations_research::math_opt::BASIS_STATUS_FREE
@ BASIS_STATUS_FREE
Definition
solution.pb.h:154
operations_research::math_opt::BASIS_STATUS_AT_UPPER_BOUND
@ BASIS_STATUS_AT_UPPER_BOUND
Definition
solution.pb.h:156
operations_research::math_opt::BASIS_STATUS_FIXED_VALUE
@ BASIS_STATUS_FIXED_VALUE
Definition
solution.pb.h:157
operations_research::math_opt::BASIS_STATUS_UNSPECIFIED
@ BASIS_STATUS_UNSPECIFIED
Definition
solution.pb.h:153
operations_research::math_opt::BASIS_STATUS_BASIC
@ BASIS_STATUS_BASIC
Definition
solution.pb.h:158
operations_research::math_opt::BASIS_STATUS_AT_LOWER_BOUND
@ BASIS_STATUS_AT_LOWER_BOUND
Definition
solution.pb.h:155
solution.pb.h
ortools
math_opt
cpp
basis_status.h
Generated by
1.15.0