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