Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
TerminationReason.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ortools/pdlp/solve_log.proto
3
4// Protobuf Java Version: 4.26.1
5package com.google.ortools.pdlp;
6
11 implements com.google.protobuf.ProtocolMessageEnum {
95 ;
96
97 static {
98 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
99 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
100 /* major= */ 4,
101 /* minor= */ 26,
102 /* patch= */ 1,
103 /* suffix= */ "",
104 TerminationReason.class.getName());
105 }
109 public static final int TERMINATION_REASON_UNSPECIFIED_VALUE = 0;
113 public static final int TERMINATION_REASON_OPTIMAL_VALUE = 1;
121 public static final int TERMINATION_REASON_PRIMAL_INFEASIBLE_VALUE = 2;
129 public static final int TERMINATION_REASON_DUAL_INFEASIBLE_VALUE = 3;
133 public static final int TERMINATION_REASON_TIME_LIMIT_VALUE = 4;
137 public static final int TERMINATION_REASON_ITERATION_LIMIT_VALUE = 5;
141 public static final int TERMINATION_REASON_KKT_MATRIX_PASS_LIMIT_VALUE = 8;
145 public static final int TERMINATION_REASON_INTERRUPTED_BY_USER_VALUE = 12;
149 public static final int TERMINATION_REASON_NUMERICAL_ERROR_VALUE = 6;
158 public static final int TERMINATION_REASON_INVALID_PROBLEM_VALUE = 9;
167 public static final int TERMINATION_REASON_INVALID_INITIAL_SOLUTION_VALUE = 13;
175 public static final int TERMINATION_REASON_INVALID_PARAMETER_VALUE = 10;
179 public static final int TERMINATION_REASON_OTHER_VALUE = 7;
188 public static final int TERMINATION_REASON_PRIMAL_OR_DUAL_INFEASIBLE_VALUE = 11;
189
190
191 public final int getNumber() {
192 return value;
193 }
194
200 @java.lang.Deprecated
201 public static TerminationReason valueOf(int value) {
202 return forNumber(value);
203 }
204
209 public static TerminationReason forNumber(int value) {
210 switch (value) {
211 case 0: return TERMINATION_REASON_UNSPECIFIED;
212 case 1: return TERMINATION_REASON_OPTIMAL;
213 case 2: return TERMINATION_REASON_PRIMAL_INFEASIBLE;
214 case 3: return TERMINATION_REASON_DUAL_INFEASIBLE;
215 case 4: return TERMINATION_REASON_TIME_LIMIT;
216 case 5: return TERMINATION_REASON_ITERATION_LIMIT;
217 case 8: return TERMINATION_REASON_KKT_MATRIX_PASS_LIMIT;
218 case 12: return TERMINATION_REASON_INTERRUPTED_BY_USER;
219 case 6: return TERMINATION_REASON_NUMERICAL_ERROR;
220 case 9: return TERMINATION_REASON_INVALID_PROBLEM;
221 case 13: return TERMINATION_REASON_INVALID_INITIAL_SOLUTION;
222 case 10: return TERMINATION_REASON_INVALID_PARAMETER;
223 case 7: return TERMINATION_REASON_OTHER;
224 case 11: return TERMINATION_REASON_PRIMAL_OR_DUAL_INFEASIBLE;
225 default: return null;
226 }
227 }
228
229 public static com.google.protobuf.Internal.EnumLiteMap<TerminationReason>
231 return internalValueMap;
232 }
233 private static final com.google.protobuf.Internal.EnumLiteMap<
234 TerminationReason> internalValueMap =
235 new com.google.protobuf.Internal.EnumLiteMap<TerminationReason>() {
236 public TerminationReason findValueByNumber(int number) {
237 return TerminationReason.forNumber(number);
238 }
239 };
240
241 public final com.google.protobuf.Descriptors.EnumValueDescriptor
243 return getDescriptor().getValues().get(ordinal());
244 }
245 public final com.google.protobuf.Descriptors.EnumDescriptor
247 return getDescriptor();
248 }
249 public static final com.google.protobuf.Descriptors.EnumDescriptor
251 return com.google.ortools.pdlp.SolveLogOuterClass.getDescriptor().getEnumTypes().get(2);
252 }
253
254 private static final TerminationReason[] VALUES = values();
255
257 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
258 if (desc.getType() != getDescriptor()) {
259 throw new java.lang.IllegalArgumentException(
260 "EnumValueDescriptor is not for this type.");
261 }
262 return VALUES[desc.getIndex()];
263 }
264
265 private final int value;
266
267 private TerminationReason(int value) {
268 this.value = value;
269 }
270
271 // @@protoc_insertion_point(enum_scope:operations_research.pdlp.TerminationReason)
272}
273
static TerminationReason valueOf(int value)
static TerminationReason forNumber(int value)
static com.google.protobuf.Internal.EnumLiteMap< TerminationReason > internalGetValueMap()
static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
static TerminationReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()