Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
OptimalityNorm.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/pdlp/solvers.proto
4// Protobuf Java Version: 4.31.1
5
6package com.google.ortools.pdlp;
7
11@com.google.protobuf.Generated
12public enum OptimalityNorm
13 implements com.google.protobuf.ProtocolMessageEnum {
52 ;
53
54 static {
55 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
56 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
57 /* major= */ 4,
58 /* minor= */ 31,
59 /* patch= */ 1,
60 /* suffix= */ "",
61 OptimalityNorm.class.getName());
62 }
63
66 public static final int OPTIMALITY_NORM_UNSPECIFIED_VALUE = 0;
74 public static final int OPTIMALITY_NORM_L_INF_VALUE = 1;
82 public static final int OPTIMALITY_NORM_L2_VALUE = 2;
100 public static final int OPTIMALITY_NORM_L_INF_COMPONENTWISE_VALUE = 3;
101
102
103 public final int getNumber() {
104 return value;
105 }
106
112 @java.lang.Deprecated
113 public static OptimalityNorm valueOf(int value) {
114 return forNumber(value);
115 }
116
121 public static OptimalityNorm forNumber(int value) {
122 switch (value) {
123 case 0: return OPTIMALITY_NORM_UNSPECIFIED;
124 case 1: return OPTIMALITY_NORM_L_INF;
125 case 2: return OPTIMALITY_NORM_L2;
127 default: return null;
128 }
129 }
130
131 public static com.google.protobuf.Internal.EnumLiteMap<OptimalityNorm>
133 return internalValueMap;
134 }
135 private static final com.google.protobuf.Internal.EnumLiteMap<
136 OptimalityNorm> internalValueMap =
137 new com.google.protobuf.Internal.EnumLiteMap<OptimalityNorm>() {
138 public OptimalityNorm findValueByNumber(int number) {
139 return OptimalityNorm.forNumber(number);
140 }
141 };
142
143 public final com.google.protobuf.Descriptors.EnumValueDescriptor
145 return getDescriptor().getValues().get(ordinal());
146 }
147 public final com.google.protobuf.Descriptors.EnumDescriptor
149 return getDescriptor();
150 }
151 public static com.google.protobuf.Descriptors.EnumDescriptor
153 return com.google.ortools.pdlp.Solvers.getDescriptor().getEnumTypes().get(0);
154 }
155
156 private static final OptimalityNorm[] VALUES = values();
157
158 public static OptimalityNorm valueOf(
159 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
160 if (desc.getType() != getDescriptor()) {
161 throw new java.lang.IllegalArgumentException(
162 "EnumValueDescriptor is not for this type.");
163 }
164 return VALUES[desc.getIndex()];
165 }
166
167 private final int value;
168
169 private OptimalityNorm(int value) {
170 this.value = value;
171 }
172
173 // @@protoc_insertion_point(enum_scope:operations_research.pdlp.OptimalityNorm)
174}
175
static OptimalityNorm forNumber(int value)
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
static OptimalityNorm valueOf(int value)
static OptimalityNorm valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
static final int OPTIMALITY_NORM_L_INF_COMPONENTWISE_VALUE
final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
static com.google.protobuf.Internal.EnumLiteMap< OptimalityNorm > internalGetValueMap()