5package com.google.ortools.pdlp;
24 com.google.protobuf.GeneratedMessage implements
27private static final long serialVersionUID = 0L;
29 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
30 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
43 epsOptimalAbsolute_ = 1e-06D;
44 epsOptimalRelative_ = 1e-06D;
45 epsPrimalInfeasible_ = 1e-08D;
46 epsDualInfeasible_ = 1e-08D;
47 timeSecLimit_ = Double.POSITIVE_INFINITY;
48 iterationLimit_ = 2147483647;
49 kktMatrixPassLimit_ = Double.POSITIVE_INFINITY;
52 public static final com.google.protobuf.Descriptors.Descriptor
54 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_TerminationCriteria_descriptor;
58 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
60 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_TerminationCriteria_fieldAccessorTable
61 .ensureFieldAccessorsInitialized(
62 com.google.ortools.pdlp.TerminationCriteria.class, com.google.ortools.pdlp.TerminationCriteria.Builder.class);
67 com.google.protobuf.MessageOrBuilder {
115 com.google.protobuf.GeneratedMessage implements
118 private static final long serialVersionUID = 0L;
120 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
121 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
133 epsOptimalAbsolute_ = 1e-06D;
134 epsOptimalRelative_ = 1e-06D;
137 public static final com.google.protobuf.Descriptors.Descriptor
139 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_TerminationCriteria_SimpleOptimalityCriteria_descriptor;
143 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
145 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_TerminationCriteria_SimpleOptimalityCriteria_fieldAccessorTable
146 .ensureFieldAccessorsInitialized(
147 com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria.class, com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria.Builder.class);
150 private int bitField0_;
152 private double epsOptimalAbsolute_ = 1e-06D;
164 return ((bitField0_ & 0x00000001) != 0);
177 return epsOptimalAbsolute_;
181 private double epsOptimalRelative_ = 1e-06D;
193 return ((bitField0_ & 0x00000002) != 0);
206 return epsOptimalRelative_;
209 private byte memoizedIsInitialized = -1;
216 memoizedIsInitialized = 1;
221 public void writeTo(com.google.protobuf.CodedOutputStream output)
222 throws java.io.IOException {
223 if (((bitField0_ & 0x00000001) != 0)) {
224 output.writeDouble(1, epsOptimalAbsolute_);
226 if (((bitField0_ & 0x00000002) != 0)) {
227 output.writeDouble(2, epsOptimalRelative_);
229 getUnknownFields().writeTo(output);
234 int size = memoizedSize;
235 if (size != -1)
return size;
238 if (((bitField0_ & 0x00000001) != 0)) {
239 size += com.google.protobuf.CodedOutputStream
240 .computeDoubleSize(1, epsOptimalAbsolute_);
242 if (((bitField0_ & 0x00000002) != 0)) {
243 size += com.google.protobuf.CodedOutputStream
244 .computeDoubleSize(2, epsOptimalRelative_);
246 size += getUnknownFields().getSerializedSize();
252 public boolean equals(
final java.lang.Object obj) {
256 if (!(obj instanceof com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria)) {
257 return super.equals(obj);
264 != java.lang.Double.doubleToLongBits(
270 != java.lang.Double.doubleToLongBits(
273 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
279 if (memoizedHashCode != 0) {
280 return memoizedHashCode;
286 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
291 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
294 hash = (29 * hash) + getUnknownFields().hashCode();
295 memoizedHashCode = hash;
300 java.nio.ByteBuffer data)
301 throws com.google.protobuf.InvalidProtocolBufferException {
302 return PARSER.parseFrom(data);
305 java.nio.ByteBuffer data,
306 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
307 throws com.google.protobuf.InvalidProtocolBufferException {
308 return PARSER.parseFrom(data, extensionRegistry);
311 com.google.protobuf.ByteString data)
312 throws com.google.protobuf.InvalidProtocolBufferException {
313 return PARSER.parseFrom(data);
316 com.google.protobuf.ByteString data,
317 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
318 throws com.google.protobuf.InvalidProtocolBufferException {
319 return PARSER.parseFrom(data, extensionRegistry);
322 throws com.google.protobuf.InvalidProtocolBufferException {
323 return PARSER.parseFrom(data);
327 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
328 throws com.google.protobuf.InvalidProtocolBufferException {
329 return PARSER.parseFrom(data, extensionRegistry);
332 throws java.io.IOException {
333 return com.google.protobuf.GeneratedMessage
334 .parseWithIOException(PARSER, input);
337 java.io.InputStream input,
338 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
339 throws java.io.IOException {
340 return com.google.protobuf.GeneratedMessage
341 .parseWithIOException(PARSER, input, extensionRegistry);
345 throws java.io.IOException {
346 return com.google.protobuf.GeneratedMessage
347 .parseDelimitedWithIOException(PARSER, input);
351 java.io.InputStream input,
352 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
353 throws java.io.IOException {
354 return com.google.protobuf.GeneratedMessage
355 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
358 com.google.protobuf.CodedInputStream input)
359 throws java.io.IOException {
360 return com.google.protobuf.GeneratedMessage
361 .parseWithIOException(PARSER, input);
364 com.google.protobuf.CodedInputStream input,
365 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
366 throws java.io.IOException {
367 return com.google.protobuf.GeneratedMessage
368 .parseWithIOException(PARSER, input, extensionRegistry);
376 public static Builder newBuilder(com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria prototype) {
381 return this == DEFAULT_INSTANCE
387 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
395 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
398 public static final com.google.protobuf.Descriptors.Descriptor
400 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_TerminationCriteria_SimpleOptimalityCriteria_descriptor;
404 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
406 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_TerminationCriteria_SimpleOptimalityCriteria_fieldAccessorTable
407 .ensureFieldAccessorsInitialized(
408 com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria.class, com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria.Builder.class);
417 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
425 epsOptimalAbsolute_ = 1e-06D;
426 epsOptimalRelative_ = 1e-06D;
431 public com.google.protobuf.Descriptors.Descriptor
433 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_TerminationCriteria_SimpleOptimalityCriteria_descriptor;
438 return com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria.getDefaultInstance();
445 throw newUninitializedMessageException(result);
453 if (bitField0_ != 0) { buildPartial0(result); }
458 private void buildPartial0(com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria result) {
459 int from_bitField0_ = bitField0_;
460 int to_bitField0_ = 0;
461 if (((from_bitField0_ & 0x00000001) != 0)) {
462 result.epsOptimalAbsolute_ = epsOptimalAbsolute_;
463 to_bitField0_ |= 0x00000001;
465 if (((from_bitField0_ & 0x00000002) != 0)) {
466 result.epsOptimalRelative_ = epsOptimalRelative_;
467 to_bitField0_ |= 0x00000002;
469 result.bitField0_ |= to_bitField0_;
474 if (other instanceof com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria) {
475 return mergeFrom((com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria)other);
477 super.mergeFrom(other);
482 public Builder mergeFrom(com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria other) {
483 if (other == com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria.getDefaultInstance())
return this;
484 if (other.hasEpsOptimalAbsolute()) {
487 if (other.hasEpsOptimalRelative()) {
490 this.mergeUnknownFields(other.getUnknownFields());
502 com.google.protobuf.CodedInputStream input,
503 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
504 throws java.io.IOException {
505 if (extensionRegistry ==
null) {
506 throw new java.lang.NullPointerException();
509 boolean done =
false;
511 int tag = input.readTag();
517 epsOptimalAbsolute_ = input.readDouble();
518 bitField0_ |= 0x00000001;
522 epsOptimalRelative_ = input.readDouble();
523 bitField0_ |= 0x00000002;
527 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
534 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
535 throw e.unwrapIOException();
541 private int bitField0_;
543 private double epsOptimalAbsolute_ = 1e-06D;
555 return ((bitField0_ & 0x00000001) != 0);
568 return epsOptimalAbsolute_;
582 epsOptimalAbsolute_ = value;
583 bitField0_ |= 0x00000001;
597 bitField0_ = (bitField0_ & ~0x00000001);
598 epsOptimalAbsolute_ = 1e-06D;
603 private double epsOptimalRelative_ = 1e-06D;
615 return ((bitField0_ & 0x00000002) != 0);
628 return epsOptimalRelative_;
642 epsOptimalRelative_ = value;
643 bitField0_ |= 0x00000002;
657 bitField0_ = (bitField0_ & ~0x00000002);
658 epsOptimalRelative_ = 1e-06D;
669 DEFAULT_INSTANCE =
new com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria();
673 return DEFAULT_INSTANCE;
680 com.google.protobuf.CodedInputStream input,
681 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
682 throws com.google.protobuf.InvalidProtocolBufferException {
685 builder.
mergeFrom(input, extensionRegistry);
686 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
688 }
catch (com.google.protobuf.UninitializedMessageException e) {
689 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
690 }
catch (java.io.IOException e) {
691 throw new com.google.protobuf.InvalidProtocolBufferException(e)
709 return DEFAULT_INSTANCE;
716 com.google.protobuf.MessageOrBuilder {
836 com.google.protobuf.GeneratedMessage implements
839 private static final long serialVersionUID = 0L;
841 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
842 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
854 epsOptimalPrimalResidualAbsolute_ = 1e-06D;
855 epsOptimalPrimalResidualRelative_ = 1e-06D;
856 epsOptimalDualResidualAbsolute_ = 1e-06D;
857 epsOptimalDualResidualRelative_ = 1e-06D;
858 epsOptimalObjectiveGapAbsolute_ = 1e-06D;
859 epsOptimalObjectiveGapRelative_ = 1e-06D;
862 public static final com.google.protobuf.Descriptors.Descriptor
864 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_TerminationCriteria_DetailedOptimalityCriteria_descriptor;
868 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
870 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_TerminationCriteria_DetailedOptimalityCriteria_fieldAccessorTable
871 .ensureFieldAccessorsInitialized(
872 com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria.class, com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria.Builder.class);
875 private int bitField0_;
877 private double epsOptimalPrimalResidualAbsolute_ = 1e-06D;
888 return ((bitField0_ & 0x00000001) != 0);
900 return epsOptimalPrimalResidualAbsolute_;
904 private double epsOptimalPrimalResidualRelative_ = 1e-06D;
915 return ((bitField0_ & 0x00000002) != 0);
927 return epsOptimalPrimalResidualRelative_;
931 private double epsOptimalDualResidualAbsolute_ = 1e-06D;
942 return ((bitField0_ & 0x00000004) != 0);
954 return epsOptimalDualResidualAbsolute_;
958 private double epsOptimalDualResidualRelative_ = 1e-06D;
969 return ((bitField0_ & 0x00000008) != 0);
981 return epsOptimalDualResidualRelative_;
985 private double epsOptimalObjectiveGapAbsolute_ = 1e-06D;
996 return ((bitField0_ & 0x00000010) != 0);
1008 return epsOptimalObjectiveGapAbsolute_;
1012 private double epsOptimalObjectiveGapRelative_ = 1e-06D;
1023 return ((bitField0_ & 0x00000020) != 0);
1035 return epsOptimalObjectiveGapRelative_;
1038 private byte memoizedIsInitialized = -1;
1045 memoizedIsInitialized = 1;
1050 public void writeTo(com.google.protobuf.CodedOutputStream output)
1051 throws java.io.IOException {
1052 if (((bitField0_ & 0x00000001) != 0)) {
1053 output.writeDouble(1, epsOptimalPrimalResidualAbsolute_);
1055 if (((bitField0_ & 0x00000002) != 0)) {
1056 output.writeDouble(2, epsOptimalPrimalResidualRelative_);
1058 if (((bitField0_ & 0x00000004) != 0)) {
1059 output.writeDouble(3, epsOptimalDualResidualAbsolute_);
1061 if (((bitField0_ & 0x00000008) != 0)) {
1062 output.writeDouble(4, epsOptimalDualResidualRelative_);
1064 if (((bitField0_ & 0x00000010) != 0)) {
1065 output.writeDouble(5, epsOptimalObjectiveGapAbsolute_);
1067 if (((bitField0_ & 0x00000020) != 0)) {
1068 output.writeDouble(6, epsOptimalObjectiveGapRelative_);
1070 getUnknownFields().writeTo(output);
1075 int size = memoizedSize;
1076 if (size != -1)
return size;
1079 if (((bitField0_ & 0x00000001) != 0)) {
1080 size += com.google.protobuf.CodedOutputStream
1081 .computeDoubleSize(1, epsOptimalPrimalResidualAbsolute_);
1083 if (((bitField0_ & 0x00000002) != 0)) {
1084 size += com.google.protobuf.CodedOutputStream
1085 .computeDoubleSize(2, epsOptimalPrimalResidualRelative_);
1087 if (((bitField0_ & 0x00000004) != 0)) {
1088 size += com.google.protobuf.CodedOutputStream
1089 .computeDoubleSize(3, epsOptimalDualResidualAbsolute_);
1091 if (((bitField0_ & 0x00000008) != 0)) {
1092 size += com.google.protobuf.CodedOutputStream
1093 .computeDoubleSize(4, epsOptimalDualResidualRelative_);
1095 if (((bitField0_ & 0x00000010) != 0)) {
1096 size += com.google.protobuf.CodedOutputStream
1097 .computeDoubleSize(5, epsOptimalObjectiveGapAbsolute_);
1099 if (((bitField0_ & 0x00000020) != 0)) {
1100 size += com.google.protobuf.CodedOutputStream
1101 .computeDoubleSize(6, epsOptimalObjectiveGapRelative_);
1103 size += getUnknownFields().getSerializedSize();
1104 memoizedSize = size;
1109 public boolean equals(
final java.lang.Object obj) {
1113 if (!(obj instanceof com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria)) {
1114 return super.equals(obj);
1121 != java.lang.Double.doubleToLongBits(
1127 != java.lang.Double.doubleToLongBits(
1133 != java.lang.Double.doubleToLongBits(
1139 != java.lang.Double.doubleToLongBits(
1145 != java.lang.Double.doubleToLongBits(
1151 != java.lang.Double.doubleToLongBits(
1154 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
1160 if (memoizedHashCode != 0) {
1161 return memoizedHashCode;
1167 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1172 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1177 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1182 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1187 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1192 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1195 hash = (29 * hash) + getUnknownFields().hashCode();
1196 memoizedHashCode = hash;
1201 java.nio.ByteBuffer data)
1202 throws com.google.protobuf.InvalidProtocolBufferException {
1206 java.nio.ByteBuffer data,
1207 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1208 throws com.google.protobuf.InvalidProtocolBufferException {
1209 return PARSER.
parseFrom(data, extensionRegistry);
1212 com.google.protobuf.ByteString data)
1213 throws com.google.protobuf.InvalidProtocolBufferException {
1217 com.google.protobuf.ByteString data,
1218 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1219 throws com.google.protobuf.InvalidProtocolBufferException {
1220 return PARSER.
parseFrom(data, extensionRegistry);
1223 throws com.google.protobuf.InvalidProtocolBufferException {
1228 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1229 throws com.google.protobuf.InvalidProtocolBufferException {
1230 return PARSER.
parseFrom(data, extensionRegistry);
1233 throws java.io.IOException {
1234 return com.google.protobuf.GeneratedMessage
1235 .parseWithIOException(PARSER, input);
1238 java.io.InputStream input,
1239 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1240 throws java.io.IOException {
1241 return com.google.protobuf.GeneratedMessage
1242 .parseWithIOException(PARSER, input, extensionRegistry);
1246 throws java.io.IOException {
1247 return com.google.protobuf.GeneratedMessage
1248 .parseDelimitedWithIOException(PARSER, input);
1252 java.io.InputStream input,
1253 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1254 throws java.io.IOException {
1255 return com.google.protobuf.GeneratedMessage
1256 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1259 com.google.protobuf.CodedInputStream input)
1260 throws java.io.IOException {
1261 return com.google.protobuf.GeneratedMessage
1262 .parseWithIOException(PARSER, input);
1265 com.google.protobuf.CodedInputStream input,
1266 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1267 throws java.io.IOException {
1268 return com.google.protobuf.GeneratedMessage
1269 .parseWithIOException(PARSER, input, extensionRegistry);
1277 public static Builder newBuilder(com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria prototype) {
1282 return this == DEFAULT_INSTANCE
1288 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1296 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
1299 public static final com.google.protobuf.Descriptors.Descriptor
1301 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_TerminationCriteria_DetailedOptimalityCriteria_descriptor;
1305 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1307 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_TerminationCriteria_DetailedOptimalityCriteria_fieldAccessorTable
1308 .ensureFieldAccessorsInitialized(
1309 com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria.class, com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria.Builder.class);
1318 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1326 epsOptimalPrimalResidualAbsolute_ = 1e-06D;
1327 epsOptimalPrimalResidualRelative_ = 1e-06D;
1328 epsOptimalDualResidualAbsolute_ = 1e-06D;
1329 epsOptimalDualResidualRelative_ = 1e-06D;
1330 epsOptimalObjectiveGapAbsolute_ = 1e-06D;
1331 epsOptimalObjectiveGapRelative_ = 1e-06D;
1336 public com.google.protobuf.Descriptors.Descriptor
1338 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_TerminationCriteria_DetailedOptimalityCriteria_descriptor;
1343 return com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria.getDefaultInstance();
1350 throw newUninitializedMessageException(result);
1358 if (bitField0_ != 0) { buildPartial0(result); }
1363 private void buildPartial0(com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria result) {
1364 int from_bitField0_ = bitField0_;
1365 int to_bitField0_ = 0;
1366 if (((from_bitField0_ & 0x00000001) != 0)) {
1367 result.epsOptimalPrimalResidualAbsolute_ = epsOptimalPrimalResidualAbsolute_;
1368 to_bitField0_ |= 0x00000001;
1370 if (((from_bitField0_ & 0x00000002) != 0)) {
1371 result.epsOptimalPrimalResidualRelative_ = epsOptimalPrimalResidualRelative_;
1372 to_bitField0_ |= 0x00000002;
1374 if (((from_bitField0_ & 0x00000004) != 0)) {
1375 result.epsOptimalDualResidualAbsolute_ = epsOptimalDualResidualAbsolute_;
1376 to_bitField0_ |= 0x00000004;
1378 if (((from_bitField0_ & 0x00000008) != 0)) {
1379 result.epsOptimalDualResidualRelative_ = epsOptimalDualResidualRelative_;
1380 to_bitField0_ |= 0x00000008;
1382 if (((from_bitField0_ & 0x00000010) != 0)) {
1383 result.epsOptimalObjectiveGapAbsolute_ = epsOptimalObjectiveGapAbsolute_;
1384 to_bitField0_ |= 0x00000010;
1386 if (((from_bitField0_ & 0x00000020) != 0)) {
1387 result.epsOptimalObjectiveGapRelative_ = epsOptimalObjectiveGapRelative_;
1388 to_bitField0_ |= 0x00000020;
1390 result.bitField0_ |= to_bitField0_;
1395 if (other instanceof com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria) {
1396 return mergeFrom((com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria)other);
1398 super.mergeFrom(other);
1403 public Builder mergeFrom(com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria other) {
1404 if (other == com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria.getDefaultInstance())
return this;
1405 if (other.hasEpsOptimalPrimalResidualAbsolute()) {
1408 if (other.hasEpsOptimalPrimalResidualRelative()) {
1411 if (other.hasEpsOptimalDualResidualAbsolute()) {
1414 if (other.hasEpsOptimalDualResidualRelative()) {
1417 if (other.hasEpsOptimalObjectiveGapAbsolute()) {
1420 if (other.hasEpsOptimalObjectiveGapRelative()) {
1423 this.mergeUnknownFields(other.getUnknownFields());
1435 com.google.protobuf.CodedInputStream input,
1436 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1437 throws java.io.IOException {
1438 if (extensionRegistry ==
null) {
1439 throw new java.lang.NullPointerException();
1442 boolean done =
false;
1444 int tag = input.readTag();
1450 epsOptimalPrimalResidualAbsolute_ = input.readDouble();
1451 bitField0_ |= 0x00000001;
1455 epsOptimalPrimalResidualRelative_ = input.readDouble();
1456 bitField0_ |= 0x00000002;
1460 epsOptimalDualResidualAbsolute_ = input.readDouble();
1461 bitField0_ |= 0x00000004;
1465 epsOptimalDualResidualRelative_ = input.readDouble();
1466 bitField0_ |= 0x00000008;
1470 epsOptimalObjectiveGapAbsolute_ = input.readDouble();
1471 bitField0_ |= 0x00000010;
1475 epsOptimalObjectiveGapRelative_ = input.readDouble();
1476 bitField0_ |= 0x00000020;
1480 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1487 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1488 throw e.unwrapIOException();
1494 private int bitField0_;
1496 private double epsOptimalPrimalResidualAbsolute_ = 1e-06D;
1507 return ((bitField0_ & 0x00000001) != 0);
1519 return epsOptimalPrimalResidualAbsolute_;
1532 epsOptimalPrimalResidualAbsolute_ = value;
1533 bitField0_ |= 0x00000001;
1546 bitField0_ = (bitField0_ & ~0x00000001);
1547 epsOptimalPrimalResidualAbsolute_ = 1e-06D;
1552 private double epsOptimalPrimalResidualRelative_ = 1e-06D;
1563 return ((bitField0_ & 0x00000002) != 0);
1575 return epsOptimalPrimalResidualRelative_;
1588 epsOptimalPrimalResidualRelative_ = value;
1589 bitField0_ |= 0x00000002;
1602 bitField0_ = (bitField0_ & ~0x00000002);
1603 epsOptimalPrimalResidualRelative_ = 1e-06D;
1608 private double epsOptimalDualResidualAbsolute_ = 1e-06D;
1619 return ((bitField0_ & 0x00000004) != 0);
1631 return epsOptimalDualResidualAbsolute_;
1644 epsOptimalDualResidualAbsolute_ = value;
1645 bitField0_ |= 0x00000004;
1658 bitField0_ = (bitField0_ & ~0x00000004);
1659 epsOptimalDualResidualAbsolute_ = 1e-06D;
1664 private double epsOptimalDualResidualRelative_ = 1e-06D;
1675 return ((bitField0_ & 0x00000008) != 0);
1687 return epsOptimalDualResidualRelative_;
1700 epsOptimalDualResidualRelative_ = value;
1701 bitField0_ |= 0x00000008;
1714 bitField0_ = (bitField0_ & ~0x00000008);
1715 epsOptimalDualResidualRelative_ = 1e-06D;
1720 private double epsOptimalObjectiveGapAbsolute_ = 1e-06D;
1731 return ((bitField0_ & 0x00000010) != 0);
1743 return epsOptimalObjectiveGapAbsolute_;
1756 epsOptimalObjectiveGapAbsolute_ = value;
1757 bitField0_ |= 0x00000010;
1770 bitField0_ = (bitField0_ & ~0x00000010);
1771 epsOptimalObjectiveGapAbsolute_ = 1e-06D;
1776 private double epsOptimalObjectiveGapRelative_ = 1e-06D;
1787 return ((bitField0_ & 0x00000020) != 0);
1799 return epsOptimalObjectiveGapRelative_;
1812 epsOptimalObjectiveGapRelative_ = value;
1813 bitField0_ |= 0x00000020;
1826 bitField0_ = (bitField0_ & ~0x00000020);
1827 epsOptimalObjectiveGapRelative_ = 1e-06D;
1838 DEFAULT_INSTANCE =
new com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria();
1842 return DEFAULT_INSTANCE;
1849 com.google.protobuf.CodedInputStream input,
1850 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1851 throws com.google.protobuf.InvalidProtocolBufferException {
1854 builder.
mergeFrom(input, extensionRegistry);
1855 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1857 }
catch (com.google.protobuf.UninitializedMessageException e) {
1858 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
1859 }
catch (java.io.IOException e) {
1860 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1878 return DEFAULT_INSTANCE;
1883 private int bitField0_;
1884 private int optimalityCriteriaCase_ = 0;
1885 @SuppressWarnings(
"serial")
1886 private java.lang.Object optimalityCriteria_;
1888 implements com.google.protobuf.Internal.EnumLite,
1889 com.google.protobuf.AbstractMessage.InternalOneOfEnum {
1893 private final int value;
1902 @java.lang.Deprecated
1904 return forNumber(value);
1909 case 9:
return SIMPLE_OPTIMALITY_CRITERIA;
1910 case 10:
return DETAILED_OPTIMALITY_CRITERIA;
1911 case 0:
return OPTIMALITYCRITERIA_NOT_SET;
1912 default:
return null;
1920 public OptimalityCriteriaCase
1923 optimalityCriteriaCase_);
1927 private int optimalityNorm_ = 2;
1937 return ((bitField0_ & 0x00000001) != 0);
1949 return result ==
null ? com.google.ortools.pdlp.OptimalityNorm.OPTIMALITY_NORM_L2 : result;
1959 return optimalityCriteriaCase_ == 9;
1967 if (optimalityCriteriaCase_ == 9) {
1968 return (com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria) optimalityCriteria_;
1970 return com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria.getDefaultInstance();
1977 if (optimalityCriteriaCase_ == 9) {
1978 return (com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria) optimalityCriteria_;
1980 return com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria.getDefaultInstance();
1990 return optimalityCriteriaCase_ == 10;
1998 if (optimalityCriteriaCase_ == 10) {
1999 return (com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria) optimalityCriteria_;
2001 return com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria.getDefaultInstance();
2008 if (optimalityCriteriaCase_ == 10) {
2009 return (com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria) optimalityCriteria_;
2011 return com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria.getDefaultInstance();
2015 private double epsOptimalAbsolute_ = 1e-06D;
2031 return ((bitField0_ & 0x00000002) != 0);
2048 return epsOptimalAbsolute_;
2052 private double epsOptimalRelative_ = 1e-06D;
2068 return ((bitField0_ & 0x00000004) != 0);
2085 return epsOptimalRelative_;
2089 private double epsPrimalInfeasible_ = 1e-08D;
2105 return ((bitField0_ & 0x00000008) != 0);
2122 return epsPrimalInfeasible_;
2126 private double epsDualInfeasible_ = 1e-08D;
2144 return ((bitField0_ & 0x00000010) != 0);
2163 return epsDualInfeasible_;
2167 private double timeSecLimit_ = Double.POSITIVE_INFINITY;
2179 return ((bitField0_ & 0x00000020) != 0);
2192 return timeSecLimit_;
2196 private int iterationLimit_ = 2147483647;
2208 return ((bitField0_ & 0x00000040) != 0);
2221 return iterationLimit_;
2225 private double kktMatrixPassLimit_ = Double.POSITIVE_INFINITY;
2237 return ((bitField0_ & 0x00000080) != 0);
2250 return kktMatrixPassLimit_;
2253 private byte memoizedIsInitialized = -1;
2260 memoizedIsInitialized = 1;
2265 public void writeTo(com.google.protobuf.CodedOutputStream output)
2266 throws java.io.IOException {
2267 if (((bitField0_ & 0x00000001) != 0)) {
2268 output.writeEnum(1, optimalityNorm_);
2270 if (((bitField0_ & 0x00000002) != 0)) {
2271 output.writeDouble(2, epsOptimalAbsolute_);
2273 if (((bitField0_ & 0x00000004) != 0)) {
2274 output.writeDouble(3, epsOptimalRelative_);
2276 if (((bitField0_ & 0x00000008) != 0)) {
2277 output.writeDouble(4, epsPrimalInfeasible_);
2279 if (((bitField0_ & 0x00000010) != 0)) {
2280 output.writeDouble(5, epsDualInfeasible_);
2282 if (((bitField0_ & 0x00000020) != 0)) {
2283 output.writeDouble(6, timeSecLimit_);
2285 if (((bitField0_ & 0x00000040) != 0)) {
2286 output.writeInt32(7, iterationLimit_);
2288 if (((bitField0_ & 0x00000080) != 0)) {
2289 output.writeDouble(8, kktMatrixPassLimit_);
2291 if (optimalityCriteriaCase_ == 9) {
2292 output.writeMessage(9, (com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria) optimalityCriteria_);
2294 if (optimalityCriteriaCase_ == 10) {
2295 output.writeMessage(10, (com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria) optimalityCriteria_);
2297 getUnknownFields().writeTo(output);
2302 int size = memoizedSize;
2303 if (size != -1)
return size;
2306 if (((bitField0_ & 0x00000001) != 0)) {
2307 size += com.google.protobuf.CodedOutputStream
2308 .computeEnumSize(1, optimalityNorm_);
2310 if (((bitField0_ & 0x00000002) != 0)) {
2311 size += com.google.protobuf.CodedOutputStream
2312 .computeDoubleSize(2, epsOptimalAbsolute_);
2314 if (((bitField0_ & 0x00000004) != 0)) {
2315 size += com.google.protobuf.CodedOutputStream
2316 .computeDoubleSize(3, epsOptimalRelative_);
2318 if (((bitField0_ & 0x00000008) != 0)) {
2319 size += com.google.protobuf.CodedOutputStream
2320 .computeDoubleSize(4, epsPrimalInfeasible_);
2322 if (((bitField0_ & 0x00000010) != 0)) {
2323 size += com.google.protobuf.CodedOutputStream
2324 .computeDoubleSize(5, epsDualInfeasible_);
2326 if (((bitField0_ & 0x00000020) != 0)) {
2327 size += com.google.protobuf.CodedOutputStream
2328 .computeDoubleSize(6, timeSecLimit_);
2330 if (((bitField0_ & 0x00000040) != 0)) {
2331 size += com.google.protobuf.CodedOutputStream
2332 .computeInt32Size(7, iterationLimit_);
2334 if (((bitField0_ & 0x00000080) != 0)) {
2335 size += com.google.protobuf.CodedOutputStream
2336 .computeDoubleSize(8, kktMatrixPassLimit_);
2338 if (optimalityCriteriaCase_ == 9) {
2339 size += com.google.protobuf.CodedOutputStream
2340 .computeMessageSize(9, (com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria) optimalityCriteria_);
2342 if (optimalityCriteriaCase_ == 10) {
2343 size += com.google.protobuf.CodedOutputStream
2344 .computeMessageSize(10, (com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria) optimalityCriteria_);
2346 size += getUnknownFields().getSerializedSize();
2347 memoizedSize = size;
2352 public boolean equals(
final java.lang.Object obj) {
2356 if (!(obj instanceof com.google.ortools.pdlp.TerminationCriteria)) {
2357 return super.equals(obj);
2363 if (optimalityNorm_ != other.optimalityNorm_)
return false;
2368 != java.lang.Double.doubleToLongBits(
2374 != java.lang.Double.doubleToLongBits(
2380 != java.lang.Double.doubleToLongBits(
2386 != java.lang.Double.doubleToLongBits(
2392 != java.lang.Double.doubleToLongBits(
2403 != java.lang.Double.doubleToLongBits(
2407 switch (optimalityCriteriaCase_) {
2419 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
2425 if (memoizedHashCode != 0) {
2426 return memoizedHashCode;
2432 hash = (53 * hash) + optimalityNorm_;
2436 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2441 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2446 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2451 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2456 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2465 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2468 switch (optimalityCriteriaCase_) {
2480 hash = (29 * hash) + getUnknownFields().hashCode();
2481 memoizedHashCode = hash;
2486 java.nio.ByteBuffer data)
2487 throws com.google.protobuf.InvalidProtocolBufferException {
2491 java.nio.ByteBuffer data,
2492 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2493 throws com.google.protobuf.InvalidProtocolBufferException {
2494 return PARSER.
parseFrom(data, extensionRegistry);
2497 com.google.protobuf.ByteString data)
2498 throws com.google.protobuf.InvalidProtocolBufferException {
2502 com.google.protobuf.ByteString data,
2503 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2504 throws com.google.protobuf.InvalidProtocolBufferException {
2505 return PARSER.
parseFrom(data, extensionRegistry);
2508 throws com.google.protobuf.InvalidProtocolBufferException {
2513 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2514 throws com.google.protobuf.InvalidProtocolBufferException {
2515 return PARSER.
parseFrom(data, extensionRegistry);
2518 throws java.io.IOException {
2519 return com.google.protobuf.GeneratedMessage
2520 .parseWithIOException(PARSER, input);
2523 java.io.InputStream input,
2524 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2525 throws java.io.IOException {
2526 return com.google.protobuf.GeneratedMessage
2527 .parseWithIOException(PARSER, input, extensionRegistry);
2531 throws java.io.IOException {
2532 return com.google.protobuf.GeneratedMessage
2533 .parseDelimitedWithIOException(PARSER, input);
2537 java.io.InputStream input,
2538 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2539 throws java.io.IOException {
2540 return com.google.protobuf.GeneratedMessage
2541 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
2544 com.google.protobuf.CodedInputStream input)
2545 throws java.io.IOException {
2546 return com.google.protobuf.GeneratedMessage
2547 .parseWithIOException(PARSER, input);
2550 com.google.protobuf.CodedInputStream input,
2551 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2552 throws java.io.IOException {
2553 return com.google.protobuf.GeneratedMessage
2554 .parseWithIOException(PARSER, input, extensionRegistry);
2567 return this == DEFAULT_INSTANCE
2573 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2594 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
2597 public static final com.google.protobuf.Descriptors.Descriptor
2599 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_TerminationCriteria_descriptor;
2603 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2605 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_TerminationCriteria_fieldAccessorTable
2606 .ensureFieldAccessorsInitialized(
2607 com.google.ortools.pdlp.TerminationCriteria.class, com.google.ortools.pdlp.TerminationCriteria.Builder.class);
2616 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2624 optimalityNorm_ = 2;
2625 if (simpleOptimalityCriteriaBuilder_ !=
null) {
2626 simpleOptimalityCriteriaBuilder_.clear();
2628 if (detailedOptimalityCriteriaBuilder_ !=
null) {
2629 detailedOptimalityCriteriaBuilder_.clear();
2631 epsOptimalAbsolute_ = 1e-06D;
2632 epsOptimalRelative_ = 1e-06D;
2633 epsPrimalInfeasible_ = 1e-08D;
2634 epsDualInfeasible_ = 1e-08D;
2635 timeSecLimit_ = Double.POSITIVE_INFINITY;
2636 iterationLimit_ = 2147483647;
2637 kktMatrixPassLimit_ = Double.POSITIVE_INFINITY;
2638 optimalityCriteriaCase_ = 0;
2639 optimalityCriteria_ =
null;
2644 public com.google.protobuf.Descriptors.Descriptor
2646 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_TerminationCriteria_descriptor;
2651 return com.google.ortools.pdlp.TerminationCriteria.getDefaultInstance();
2658 throw newUninitializedMessageException(result);
2666 if (bitField0_ != 0) { buildPartial0(result); }
2667 buildPartialOneofs(result);
2672 private void buildPartial0(com.google.ortools.pdlp.TerminationCriteria result) {
2673 int from_bitField0_ = bitField0_;
2674 int to_bitField0_ = 0;
2675 if (((from_bitField0_ & 0x00000001) != 0)) {
2676 result.optimalityNorm_ = optimalityNorm_;
2677 to_bitField0_ |= 0x00000001;
2679 if (((from_bitField0_ & 0x00000008) != 0)) {
2680 result.epsOptimalAbsolute_ = epsOptimalAbsolute_;
2681 to_bitField0_ |= 0x00000002;
2683 if (((from_bitField0_ & 0x00000010) != 0)) {
2684 result.epsOptimalRelative_ = epsOptimalRelative_;
2685 to_bitField0_ |= 0x00000004;
2687 if (((from_bitField0_ & 0x00000020) != 0)) {
2688 result.epsPrimalInfeasible_ = epsPrimalInfeasible_;
2689 to_bitField0_ |= 0x00000008;
2691 if (((from_bitField0_ & 0x00000040) != 0)) {
2692 result.epsDualInfeasible_ = epsDualInfeasible_;
2693 to_bitField0_ |= 0x00000010;
2695 if (((from_bitField0_ & 0x00000080) != 0)) {
2696 result.timeSecLimit_ = timeSecLimit_;
2697 to_bitField0_ |= 0x00000020;
2699 if (((from_bitField0_ & 0x00000100) != 0)) {
2700 result.iterationLimit_ = iterationLimit_;
2701 to_bitField0_ |= 0x00000040;
2703 if (((from_bitField0_ & 0x00000200) != 0)) {
2704 result.kktMatrixPassLimit_ = kktMatrixPassLimit_;
2705 to_bitField0_ |= 0x00000080;
2707 result.bitField0_ |= to_bitField0_;
2710 private void buildPartialOneofs(com.google.ortools.pdlp.TerminationCriteria result) {
2711 result.optimalityCriteriaCase_ = optimalityCriteriaCase_;
2712 result.optimalityCriteria_ = this.optimalityCriteria_;
2713 if (optimalityCriteriaCase_ == 9 &&
2714 simpleOptimalityCriteriaBuilder_ !=
null) {
2715 result.optimalityCriteria_ = simpleOptimalityCriteriaBuilder_.build();
2717 if (optimalityCriteriaCase_ == 10 &&
2718 detailedOptimalityCriteriaBuilder_ !=
null) {
2719 result.optimalityCriteria_ = detailedOptimalityCriteriaBuilder_.build();
2725 if (other instanceof com.google.ortools.pdlp.TerminationCriteria) {
2726 return mergeFrom((com.google.ortools.pdlp.TerminationCriteria)other);
2728 super.mergeFrom(other);
2734 if (other == com.google.ortools.pdlp.TerminationCriteria.getDefaultInstance())
return this;
2735 if (other.hasOptimalityNorm()) {
2738 if (other.hasEpsOptimalAbsolute()) {
2741 if (other.hasEpsOptimalRelative()) {
2744 if (other.hasEpsPrimalInfeasible()) {
2747 if (other.hasEpsDualInfeasible()) {
2750 if (other.hasTimeSecLimit()) {
2753 if (other.hasIterationLimit()) {
2756 if (other.hasKktMatrixPassLimit()) {
2759 switch (other.getOptimalityCriteriaCase()) {
2760 case SIMPLE_OPTIMALITY_CRITERIA: {
2764 case DETAILED_OPTIMALITY_CRITERIA: {
2768 case OPTIMALITYCRITERIA_NOT_SET: {
2772 this.mergeUnknownFields(other.getUnknownFields());
2784 com.google.protobuf.CodedInputStream input,
2785 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2786 throws java.io.IOException {
2787 if (extensionRegistry ==
null) {
2788 throw new java.lang.NullPointerException();
2791 boolean done =
false;
2793 int tag = input.readTag();
2799 int tmpRaw = input.readEnum();
2801 com.google.ortools.pdlp.OptimalityNorm.forNumber(tmpRaw);
2802 if (tmpValue ==
null) {
2803 mergeUnknownVarintField(1, tmpRaw);
2805 optimalityNorm_ = tmpRaw;
2806 bitField0_ |= 0x00000001;
2811 epsOptimalAbsolute_ = input.readDouble();
2812 bitField0_ |= 0x00000008;
2816 epsOptimalRelative_ = input.readDouble();
2817 bitField0_ |= 0x00000010;
2821 epsPrimalInfeasible_ = input.readDouble();
2822 bitField0_ |= 0x00000020;
2826 epsDualInfeasible_ = input.readDouble();
2827 bitField0_ |= 0x00000040;
2831 timeSecLimit_ = input.readDouble();
2832 bitField0_ |= 0x00000080;
2836 iterationLimit_ = input.readInt32();
2837 bitField0_ |= 0x00000100;
2841 kktMatrixPassLimit_ = input.readDouble();
2842 bitField0_ |= 0x00000200;
2847 getSimpleOptimalityCriteriaFieldBuilder().getBuilder(),
2849 optimalityCriteriaCase_ = 9;
2854 getDetailedOptimalityCriteriaFieldBuilder().getBuilder(),
2856 optimalityCriteriaCase_ = 10;
2860 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
2867 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
2868 throw e.unwrapIOException();
2874 private int optimalityCriteriaCase_ = 0;
2875 private java.lang.Object optimalityCriteria_;
2879 optimalityCriteriaCase_);
2883 optimalityCriteriaCase_ = 0;
2884 optimalityCriteria_ =
null;
2889 private int bitField0_;
2891 private int optimalityNorm_ = 2;
2901 return ((bitField0_ & 0x00000001) != 0);
2914 return result ==
null ? com.google.ortools.pdlp.OptimalityNorm.OPTIMALITY_NORM_L2 : result;
2926 if (value ==
null) {
2927 throw new NullPointerException();
2929 bitField0_ |= 0x00000001;
2930 optimalityNorm_ = value.getNumber();
2943 bitField0_ = (bitField0_ & ~0x00000001);
2944 optimalityNorm_ = 2;
2949 private com.google.protobuf.SingleFieldBuilder<
2950 com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria, com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria.Builder, com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteriaOrBuilder> simpleOptimalityCriteriaBuilder_;
2957 return optimalityCriteriaCase_ == 9;
2965 if (simpleOptimalityCriteriaBuilder_ ==
null) {
2966 if (optimalityCriteriaCase_ == 9) {
2967 return (com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria) optimalityCriteria_;
2969 return com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria.getDefaultInstance();
2971 if (optimalityCriteriaCase_ == 9) {
2972 return simpleOptimalityCriteriaBuilder_.getMessage();
2974 return com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria.getDefaultInstance();
2981 if (simpleOptimalityCriteriaBuilder_ ==
null) {
2982 if (value ==
null) {
2983 throw new NullPointerException();
2985 optimalityCriteria_ = value;
2988 simpleOptimalityCriteriaBuilder_.setMessage(value);
2990 optimalityCriteriaCase_ = 9;
2997 com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria.Builder builderForValue) {
2998 if (simpleOptimalityCriteriaBuilder_ ==
null) {
2999 optimalityCriteria_ = builderForValue.build();
3002 simpleOptimalityCriteriaBuilder_.setMessage(builderForValue.build());
3004 optimalityCriteriaCase_ = 9;
3011 if (simpleOptimalityCriteriaBuilder_ ==
null) {
3012 if (optimalityCriteriaCase_ == 9 &&
3013 optimalityCriteria_ != com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria.getDefaultInstance()) {
3014 optimalityCriteria_ = com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria.newBuilder((com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria) optimalityCriteria_)
3015 .mergeFrom(value).buildPartial();
3017 optimalityCriteria_ = value;
3021 if (optimalityCriteriaCase_ == 9) {
3022 simpleOptimalityCriteriaBuilder_.mergeFrom(value);
3024 simpleOptimalityCriteriaBuilder_.setMessage(value);
3027 optimalityCriteriaCase_ = 9;
3034 if (simpleOptimalityCriteriaBuilder_ ==
null) {
3035 if (optimalityCriteriaCase_ == 9) {
3036 optimalityCriteriaCase_ = 0;
3037 optimalityCriteria_ =
null;
3041 if (optimalityCriteriaCase_ == 9) {
3042 optimalityCriteriaCase_ = 0;
3043 optimalityCriteria_ =
null;
3045 simpleOptimalityCriteriaBuilder_.clear();
3053 return getSimpleOptimalityCriteriaFieldBuilder().getBuilder();
3060 if ((optimalityCriteriaCase_ == 9) && (simpleOptimalityCriteriaBuilder_ !=
null)) {
3061 return simpleOptimalityCriteriaBuilder_.getMessageOrBuilder();
3063 if (optimalityCriteriaCase_ == 9) {
3064 return (com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria) optimalityCriteria_;
3066 return com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria.getDefaultInstance();
3072 private com.google.protobuf.SingleFieldBuilder<
3073 com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria, com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria.Builder, com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteriaOrBuilder>
3074 getSimpleOptimalityCriteriaFieldBuilder() {
3075 if (simpleOptimalityCriteriaBuilder_ ==
null) {
3076 if (!(optimalityCriteriaCase_ == 9)) {
3077 optimalityCriteria_ = com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria.getDefaultInstance();
3079 simpleOptimalityCriteriaBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
3080 com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria, com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria.Builder, com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteriaOrBuilder>(
3081 (com.google.ortools.pdlp.TerminationCriteria.SimpleOptimalityCriteria) optimalityCriteria_,
3082 getParentForChildren(),
3084 optimalityCriteria_ =
null;
3086 optimalityCriteriaCase_ = 9;
3088 return simpleOptimalityCriteriaBuilder_;
3091 private com.google.protobuf.SingleFieldBuilder<
3092 com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria, com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria.Builder, com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteriaOrBuilder> detailedOptimalityCriteriaBuilder_;
3099 return optimalityCriteriaCase_ == 10;
3107 if (detailedOptimalityCriteriaBuilder_ ==
null) {
3108 if (optimalityCriteriaCase_ == 10) {
3109 return (com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria) optimalityCriteria_;
3111 return com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria.getDefaultInstance();
3113 if (optimalityCriteriaCase_ == 10) {
3114 return detailedOptimalityCriteriaBuilder_.getMessage();
3116 return com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria.getDefaultInstance();
3123 if (detailedOptimalityCriteriaBuilder_ ==
null) {
3124 if (value ==
null) {
3125 throw new NullPointerException();
3127 optimalityCriteria_ = value;
3130 detailedOptimalityCriteriaBuilder_.setMessage(value);
3132 optimalityCriteriaCase_ = 10;
3139 com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria.Builder builderForValue) {
3140 if (detailedOptimalityCriteriaBuilder_ ==
null) {
3141 optimalityCriteria_ = builderForValue.build();
3144 detailedOptimalityCriteriaBuilder_.setMessage(builderForValue.build());
3146 optimalityCriteriaCase_ = 10;
3153 if (detailedOptimalityCriteriaBuilder_ ==
null) {
3154 if (optimalityCriteriaCase_ == 10 &&
3155 optimalityCriteria_ != com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria.getDefaultInstance()) {
3156 optimalityCriteria_ = com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria.newBuilder((com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria) optimalityCriteria_)
3157 .mergeFrom(value).buildPartial();
3159 optimalityCriteria_ = value;
3163 if (optimalityCriteriaCase_ == 10) {
3164 detailedOptimalityCriteriaBuilder_.mergeFrom(value);
3166 detailedOptimalityCriteriaBuilder_.setMessage(value);
3169 optimalityCriteriaCase_ = 10;
3176 if (detailedOptimalityCriteriaBuilder_ ==
null) {
3177 if (optimalityCriteriaCase_ == 10) {
3178 optimalityCriteriaCase_ = 0;
3179 optimalityCriteria_ =
null;
3183 if (optimalityCriteriaCase_ == 10) {
3184 optimalityCriteriaCase_ = 0;
3185 optimalityCriteria_ =
null;
3187 detailedOptimalityCriteriaBuilder_.clear();
3195 return getDetailedOptimalityCriteriaFieldBuilder().getBuilder();
3202 if ((optimalityCriteriaCase_ == 10) && (detailedOptimalityCriteriaBuilder_ !=
null)) {
3203 return detailedOptimalityCriteriaBuilder_.getMessageOrBuilder();
3205 if (optimalityCriteriaCase_ == 10) {
3206 return (com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria) optimalityCriteria_;
3208 return com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria.getDefaultInstance();
3214 private com.google.protobuf.SingleFieldBuilder<
3215 com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria, com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria.Builder, com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteriaOrBuilder>
3216 getDetailedOptimalityCriteriaFieldBuilder() {
3217 if (detailedOptimalityCriteriaBuilder_ ==
null) {
3218 if (!(optimalityCriteriaCase_ == 10)) {
3219 optimalityCriteria_ = com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria.getDefaultInstance();
3221 detailedOptimalityCriteriaBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
3222 com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria, com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria.Builder, com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteriaOrBuilder>(
3223 (com.google.ortools.pdlp.TerminationCriteria.DetailedOptimalityCriteria) optimalityCriteria_,
3224 getParentForChildren(),
3226 optimalityCriteria_ =
null;
3228 optimalityCriteriaCase_ = 10;
3230 return detailedOptimalityCriteriaBuilder_;
3233 private double epsOptimalAbsolute_ = 1e-06D;
3249 return ((bitField0_ & 0x00000008) != 0);
3266 return epsOptimalAbsolute_;
3284 epsOptimalAbsolute_ = value;
3285 bitField0_ |= 0x00000008;
3303 bitField0_ = (bitField0_ & ~0x00000008);
3304 epsOptimalAbsolute_ = 1e-06D;
3309 private double epsOptimalRelative_ = 1e-06D;
3325 return ((bitField0_ & 0x00000010) != 0);
3342 return epsOptimalRelative_;
3360 epsOptimalRelative_ = value;
3361 bitField0_ |= 0x00000010;
3379 bitField0_ = (bitField0_ & ~0x00000010);
3380 epsOptimalRelative_ = 1e-06D;
3385 private double epsPrimalInfeasible_ = 1e-08D;
3401 return ((bitField0_ & 0x00000020) != 0);
3418 return epsPrimalInfeasible_;
3436 epsPrimalInfeasible_ = value;
3437 bitField0_ |= 0x00000020;
3455 bitField0_ = (bitField0_ & ~0x00000020);
3456 epsPrimalInfeasible_ = 1e-08D;
3461 private double epsDualInfeasible_ = 1e-08D;
3479 return ((bitField0_ & 0x00000040) != 0);
3498 return epsDualInfeasible_;
3518 epsDualInfeasible_ = value;
3519 bitField0_ |= 0x00000040;
3539 bitField0_ = (bitField0_ & ~0x00000040);
3540 epsDualInfeasible_ = 1e-08D;
3545 private double timeSecLimit_ = Double.POSITIVE_INFINITY;
3557 return ((bitField0_ & 0x00000080) != 0);
3570 return timeSecLimit_;
3584 timeSecLimit_ = value;
3585 bitField0_ |= 0x00000080;
3599 bitField0_ = (bitField0_ & ~0x00000080);
3600 timeSecLimit_ = Double.POSITIVE_INFINITY;
3605 private int iterationLimit_ = 2147483647;
3617 return ((bitField0_ & 0x00000100) != 0);
3630 return iterationLimit_;
3644 iterationLimit_ = value;
3645 bitField0_ |= 0x00000100;
3659 bitField0_ = (bitField0_ & ~0x00000100);
3660 iterationLimit_ = 2147483647;
3665 private double kktMatrixPassLimit_ = Double.POSITIVE_INFINITY;
3677 return ((bitField0_ & 0x00000200) != 0);
3690 return kktMatrixPassLimit_;
3704 kktMatrixPassLimit_ = value;
3705 bitField0_ |= 0x00000200;
3719 bitField0_ = (bitField0_ & ~0x00000200);
3720 kktMatrixPassLimit_ = Double.POSITIVE_INFINITY;
3731 DEFAULT_INSTANCE =
new com.google.ortools.pdlp.TerminationCriteria();
3735 return DEFAULT_INSTANCE;
3742 com.google.protobuf.CodedInputStream input,
3743 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3744 throws com.google.protobuf.InvalidProtocolBufferException {
3747 builder.mergeFrom(input, extensionRegistry);
3748 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
3749 throw e.setUnfinishedMessage(builder.buildPartial());
3750 }
catch (com.google.protobuf.UninitializedMessageException e) {
3751 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
3752 }
catch (java.io.IOException e) {
3753 throw new com.google.protobuf.InvalidProtocolBufferException(e)
3754 .setUnfinishedMessage(builder.buildPartial());
3756 return builder.buildPartial();
3771 return DEFAULT_INSTANCE;