Google OR-Tools v9.12
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.29.3
5
6package com.google.ortools.pdlp;
7
11public enum OptimalityNorm
12 implements com.google.protobuf.ProtocolMessageEnum {
51 ;
52
53 static {
54 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
55 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
56 /* major= */ 4,
57 /* minor= */ 29,
58 /* patch= */ 3,
59 /* suffix= */ "",
60 OptimalityNorm.class.getName());
61 }
62
65 public static final int OPTIMALITY_NORM_UNSPECIFIED_VALUE = 0;
73 public static final int OPTIMALITY_NORM_L_INF_VALUE = 1;
81 public static final int OPTIMALITY_NORM_L2_VALUE = 2;
99 public static final int OPTIMALITY_NORM_L_INF_COMPONENTWISE_VALUE = 3;
100
101
102 public final int getNumber() {
103 return value;
104 }
105
111 @java.lang.Deprecated
112 public static OptimalityNorm valueOf(int value) {
113 return forNumber(value);
114 }
115
120 public static OptimalityNorm forNumber(int value) {
121 switch (value) {
122 case 0: return OPTIMALITY_NORM_UNSPECIFIED;
123 case 1: return OPTIMALITY_NORM_L_INF;
124 case 2: return OPTIMALITY_NORM_L2;
126 default: return null;
127 }
128 }
129
130 public static com.google.protobuf.Internal.EnumLiteMap<OptimalityNorm>
132 return internalValueMap;
133 }
134 private static final com.google.protobuf.Internal.EnumLiteMap<
135 OptimalityNorm> internalValueMap =
136 new com.google.protobuf.Internal.EnumLiteMap<OptimalityNorm>() {
137 public OptimalityNorm findValueByNumber(int number) {
138 return OptimalityNorm.forNumber(number);
139 }
140 };
141
142 public final com.google.protobuf.Descriptors.EnumValueDescriptor
144 return getDescriptor().getValues().get(ordinal());
145 }
146 public final com.google.protobuf.Descriptors.EnumDescriptor
148 return getDescriptor();
149 }
150 public static final com.google.protobuf.Descriptors.EnumDescriptor
152 return com.google.ortools.pdlp.Solvers.getDescriptor().getEnumTypes().get(0);
153 }
154
155 private static final OptimalityNorm[] VALUES = values();
156
157 public static OptimalityNorm valueOf(
158 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
159 if (desc.getType() != getDescriptor()) {
160 throw new java.lang.IllegalArgumentException(
161 "EnumValueDescriptor is not for this type.");
162 }
163 return VALUES[desc.getIndex()];
164 }
165
166 private final int value;
167
168 private OptimalityNorm(int value) {
169 this.value = value;
170 }
171
172 // @@protoc_insertion_point(enum_scope:operations_research.pdlp.OptimalityNorm)
173}
174
static OptimalityNorm forNumber(int value)
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
static final 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()