6package com.google.ortools.pdlp;
19@com.google.protobuf.Generated
20public final class IterationStats
extends
21 com.google.protobuf.GeneratedMessage implements
24private static final long serialVersionUID = 0L;
26 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
27 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
32 IterationStats.class.getName());
35 private IterationStats(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
38 private IterationStats() {
39 convergenceInformation_ = java.util.Collections.emptyList();
40 infeasibilityInformation_ = java.util.Collections.emptyList();
41 pointMetadata_ = java.util.Collections.emptyList();
45 public static final com.google.protobuf.Descriptors.Descriptor
47 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_descriptor;
51 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
53 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_fieldAccessorTable
54 .ensureFieldAccessorsInitialized(
55 com.google.ortools.pdlp.IterationStats.class, com.google.ortools.pdlp.IterationStats.Builder.class);
58 private int bitField0_;
60 private int iterationNumber_ = 0;
74 return ((bitField0_ & 0x00000001) != 0);
89 return iterationNumber_;
93 @SuppressWarnings(
"serial")
106 return convergenceInformation_;
118 public java.util.List<? extends com.google.ortools.pdlp.ConvergenceInformationOrBuilder>
120 return convergenceInformation_;
133 return convergenceInformation_.size();
146 return convergenceInformation_.get(index);
160 return convergenceInformation_.get(index);
164 @SuppressWarnings(
"serial")
177 return infeasibilityInformation_;
189 public java.util.List<? extends com.google.ortools.pdlp.InfeasibilityInformationOrBuilder>
191 return infeasibilityInformation_;
204 return infeasibilityInformation_.size();
217 return infeasibilityInformation_.get(index);
231 return infeasibilityInformation_.get(index);
235 @SuppressWarnings(
"serial")
246 return pointMetadata_;
256 public java.util.List<? extends com.google.ortools.pdlp.PointMetadataOrBuilder>
258 return pointMetadata_;
269 return pointMetadata_.size();
280 return pointMetadata_.get(index);
292 return pointMetadata_.get(index);
296 private double cumulativeKktMatrixPasses_ = 0D;
315 return ((bitField0_ & 0x00000002) != 0);
335 return cumulativeKktMatrixPasses_;
339 private int cumulativeRejectedSteps_ = 0;
351 return ((bitField0_ & 0x00000004) != 0);
364 return cumulativeRejectedSteps_;
368 private double cumulativeTimeSec_ = 0D;
380 return ((bitField0_ & 0x00000008) != 0);
393 return cumulativeTimeSec_;
397 private int restartUsed_ = 0;
408 return ((bitField0_ & 0x00000010) != 0);
425 private double stepSize_ = 0D;
438 return ((bitField0_ & 0x00000020) != 0);
456 private double primalWeight_ = 0D;
468 return ((bitField0_ & 0x00000040) != 0);
481 return primalWeight_;
484 private byte memoizedIsInitialized = -1;
491 memoizedIsInitialized = 1;
496 public void writeTo(com.google.protobuf.CodedOutputStream output)
497 throws java.io.IOException {
498 if (((bitField0_ & 0x00000001) != 0)) {
499 output.writeInt32(1, iterationNumber_);
501 for (
int i = 0; i < convergenceInformation_.size(); i++) {
502 output.writeMessage(2, convergenceInformation_.get(i));
504 for (
int i = 0; i < infeasibilityInformation_.size(); i++) {
505 output.writeMessage(3, infeasibilityInformation_.get(i));
507 if (((bitField0_ & 0x00000002) != 0)) {
508 output.writeDouble(4, cumulativeKktMatrixPasses_);
510 if (((bitField0_ & 0x00000004) != 0)) {
511 output.writeInt32(5, cumulativeRejectedSteps_);
513 if (((bitField0_ & 0x00000008) != 0)) {
514 output.writeDouble(6, cumulativeTimeSec_);
516 if (((bitField0_ & 0x00000010) != 0)) {
517 output.writeEnum(7, restartUsed_);
519 if (((bitField0_ & 0x00000020) != 0)) {
520 output.writeDouble(8, stepSize_);
522 if (((bitField0_ & 0x00000040) != 0)) {
523 output.writeDouble(9, primalWeight_);
525 for (
int i = 0; i < pointMetadata_.size(); i++) {
526 output.writeMessage(11, pointMetadata_.get(i));
528 getUnknownFields().writeTo(output);
533 int size = memoizedSize;
534 if (size != -1)
return size;
537 if (((bitField0_ & 0x00000001) != 0)) {
538 size += com.google.protobuf.CodedOutputStream
539 .computeInt32Size(1, iterationNumber_);
541 for (
int i = 0; i < convergenceInformation_.size(); i++) {
542 size += com.google.protobuf.CodedOutputStream
543 .computeMessageSize(2, convergenceInformation_.get(i));
545 for (
int i = 0; i < infeasibilityInformation_.size(); i++) {
546 size += com.google.protobuf.CodedOutputStream
547 .computeMessageSize(3, infeasibilityInformation_.get(i));
549 if (((bitField0_ & 0x00000002) != 0)) {
550 size += com.google.protobuf.CodedOutputStream
551 .computeDoubleSize(4, cumulativeKktMatrixPasses_);
553 if (((bitField0_ & 0x00000004) != 0)) {
554 size += com.google.protobuf.CodedOutputStream
555 .computeInt32Size(5, cumulativeRejectedSteps_);
557 if (((bitField0_ & 0x00000008) != 0)) {
558 size += com.google.protobuf.CodedOutputStream
559 .computeDoubleSize(6, cumulativeTimeSec_);
561 if (((bitField0_ & 0x00000010) != 0)) {
562 size += com.google.protobuf.CodedOutputStream
563 .computeEnumSize(7, restartUsed_);
565 if (((bitField0_ & 0x00000020) != 0)) {
566 size += com.google.protobuf.CodedOutputStream
567 .computeDoubleSize(8, stepSize_);
569 if (((bitField0_ & 0x00000040) != 0)) {
570 size += com.google.protobuf.CodedOutputStream
571 .computeDoubleSize(9, primalWeight_);
573 for (
int i = 0; i < pointMetadata_.size(); i++) {
574 size += com.google.protobuf.CodedOutputStream
575 .computeMessageSize(11, pointMetadata_.get(i));
577 size += getUnknownFields().getSerializedSize();
583 public boolean equals(
final java.lang.Object obj) {
587 if (!(obj instanceof com.google.ortools.pdlp.IterationStats)) {
588 return super.equals(obj);
606 != java.lang.Double.doubleToLongBits(
617 != java.lang.Double.doubleToLongBits(
622 if (restartUsed_ != other.restartUsed_)
return false;
626 if (java.lang.Double.doubleToLongBits(
getStepSize())
627 != java.lang.Double.doubleToLongBits(
633 != java.lang.Double.doubleToLongBits(
636 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
642 if (memoizedHashCode != 0) {
643 return memoizedHashCode;
665 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
674 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
679 hash = (53 * hash) + restartUsed_;
683 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
688 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
691 hash = (29 * hash) + getUnknownFields().hashCode();
692 memoizedHashCode = hash;
697 java.nio.ByteBuffer data)
698 throws com.google.protobuf.InvalidProtocolBufferException {
699 return PARSER.parseFrom(data);
702 java.nio.ByteBuffer data,
703 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
704 throws com.google.protobuf.InvalidProtocolBufferException {
705 return PARSER.parseFrom(data, extensionRegistry);
708 com.google.protobuf.ByteString data)
709 throws com.google.protobuf.InvalidProtocolBufferException {
710 return PARSER.parseFrom(data);
713 com.google.protobuf.ByteString data,
714 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
715 throws com.google.protobuf.InvalidProtocolBufferException {
716 return PARSER.parseFrom(data, extensionRegistry);
719 throws com.google.protobuf.InvalidProtocolBufferException {
720 return PARSER.parseFrom(data);
724 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
725 throws com.google.protobuf.InvalidProtocolBufferException {
726 return PARSER.parseFrom(data, extensionRegistry);
729 throws java.io.IOException {
730 return com.google.protobuf.GeneratedMessage
731 .parseWithIOException(PARSER, input);
734 java.io.InputStream input,
735 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
736 throws java.io.IOException {
737 return com.google.protobuf.GeneratedMessage
738 .parseWithIOException(PARSER, input, extensionRegistry);
742 throws java.io.IOException {
743 return com.google.protobuf.GeneratedMessage
744 .parseDelimitedWithIOException(PARSER, input);
748 java.io.InputStream input,
749 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
750 throws java.io.IOException {
751 return com.google.protobuf.GeneratedMessage
752 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
755 com.google.protobuf.CodedInputStream input)
756 throws java.io.IOException {
757 return com.google.protobuf.GeneratedMessage
758 .parseWithIOException(PARSER, input);
761 com.google.protobuf.CodedInputStream input,
762 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
763 throws java.io.IOException {
764 return com.google.protobuf.GeneratedMessage
765 .parseWithIOException(PARSER, input, extensionRegistry);
771 return DEFAULT_INSTANCE.toBuilder();
774 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
778 return this == DEFAULT_INSTANCE
784 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
799 public static final class Builder
extends
800 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
803 public static final com.google.protobuf.Descriptors.Descriptor
805 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_descriptor;
809 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
811 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_fieldAccessorTable
812 .ensureFieldAccessorsInitialized(
813 com.google.ortools.pdlp.IterationStats.class, com.google.ortools.pdlp.IterationStats.Builder.class);
822 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
830 iterationNumber_ = 0;
831 if (convergenceInformationBuilder_ ==
null) {
832 convergenceInformation_ = java.util.Collections.emptyList();
834 convergenceInformation_ =
null;
835 convergenceInformationBuilder_.clear();
837 bitField0_ = (bitField0_ & ~0x00000002);
838 if (infeasibilityInformationBuilder_ ==
null) {
839 infeasibilityInformation_ = java.util.Collections.emptyList();
841 infeasibilityInformation_ =
null;
842 infeasibilityInformationBuilder_.clear();
844 bitField0_ = (bitField0_ & ~0x00000004);
845 if (pointMetadataBuilder_ ==
null) {
846 pointMetadata_ = java.util.Collections.emptyList();
848 pointMetadata_ =
null;
849 pointMetadataBuilder_.clear();
851 bitField0_ = (bitField0_ & ~0x00000008);
852 cumulativeKktMatrixPasses_ = 0D;
853 cumulativeRejectedSteps_ = 0;
854 cumulativeTimeSec_ = 0D;
862 public com.google.protobuf.Descriptors.Descriptor
864 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_descriptor;
869 return com.google.ortools.pdlp.IterationStats.getDefaultInstance();
876 throw newUninitializedMessageException(result);
884 buildPartialRepeatedFields(result);
885 if (bitField0_ != 0) { buildPartial0(result); }
890 private void buildPartialRepeatedFields(com.google.ortools.pdlp.IterationStats result) {
891 if (convergenceInformationBuilder_ ==
null) {
892 if (((bitField0_ & 0x00000002) != 0)) {
893 convergenceInformation_ = java.util.Collections.unmodifiableList(convergenceInformation_);
894 bitField0_ = (bitField0_ & ~0x00000002);
896 result.convergenceInformation_ = convergenceInformation_;
898 result.convergenceInformation_ = convergenceInformationBuilder_.build();
900 if (infeasibilityInformationBuilder_ ==
null) {
901 if (((bitField0_ & 0x00000004) != 0)) {
902 infeasibilityInformation_ = java.util.Collections.unmodifiableList(infeasibilityInformation_);
903 bitField0_ = (bitField0_ & ~0x00000004);
905 result.infeasibilityInformation_ = infeasibilityInformation_;
907 result.infeasibilityInformation_ = infeasibilityInformationBuilder_.build();
909 if (pointMetadataBuilder_ ==
null) {
910 if (((bitField0_ & 0x00000008) != 0)) {
911 pointMetadata_ = java.util.Collections.unmodifiableList(pointMetadata_);
912 bitField0_ = (bitField0_ & ~0x00000008);
914 result.pointMetadata_ = pointMetadata_;
916 result.pointMetadata_ = pointMetadataBuilder_.build();
920 private void buildPartial0(com.google.ortools.pdlp.IterationStats result) {
921 int from_bitField0_ = bitField0_;
922 int to_bitField0_ = 0;
923 if (((from_bitField0_ & 0x00000001) != 0)) {
924 result.iterationNumber_ = iterationNumber_;
925 to_bitField0_ |= 0x00000001;
927 if (((from_bitField0_ & 0x00000010) != 0)) {
928 result.cumulativeKktMatrixPasses_ = cumulativeKktMatrixPasses_;
929 to_bitField0_ |= 0x00000002;
931 if (((from_bitField0_ & 0x00000020) != 0)) {
932 result.cumulativeRejectedSteps_ = cumulativeRejectedSteps_;
933 to_bitField0_ |= 0x00000004;
935 if (((from_bitField0_ & 0x00000040) != 0)) {
936 result.cumulativeTimeSec_ = cumulativeTimeSec_;
937 to_bitField0_ |= 0x00000008;
939 if (((from_bitField0_ & 0x00000080) != 0)) {
940 result.restartUsed_ = restartUsed_;
941 to_bitField0_ |= 0x00000010;
943 if (((from_bitField0_ & 0x00000100) != 0)) {
944 result.stepSize_ = stepSize_;
945 to_bitField0_ |= 0x00000020;
947 if (((from_bitField0_ & 0x00000200) != 0)) {
948 result.primalWeight_ = primalWeight_;
949 to_bitField0_ |= 0x00000040;
951 result.bitField0_ |= to_bitField0_;
955 public Builder
mergeFrom(com.google.protobuf.Message other) {
956 if (other instanceof com.google.ortools.pdlp.IterationStats) {
957 return mergeFrom((com.google.ortools.pdlp.IterationStats)other);
959 super.mergeFrom(other);
964 public Builder
mergeFrom(com.google.ortools.pdlp.IterationStats other) {
965 if (other == com.google.ortools.pdlp.IterationStats.getDefaultInstance())
return this;
966 if (other.hasIterationNumber()) {
969 if (convergenceInformationBuilder_ ==
null) {
970 if (!other.convergenceInformation_.isEmpty()) {
971 if (convergenceInformation_.isEmpty()) {
972 convergenceInformation_ = other.convergenceInformation_;
973 bitField0_ = (bitField0_ & ~0x00000002);
975 ensureConvergenceInformationIsMutable();
976 convergenceInformation_.addAll(other.convergenceInformation_);
981 if (!other.convergenceInformation_.isEmpty()) {
982 if (convergenceInformationBuilder_.isEmpty()) {
983 convergenceInformationBuilder_.dispose();
984 convergenceInformationBuilder_ =
null;
985 convergenceInformation_ = other.convergenceInformation_;
986 bitField0_ = (bitField0_ & ~0x00000002);
987 convergenceInformationBuilder_ =
988 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
989 internalGetConvergenceInformationFieldBuilder() :
null;
991 convergenceInformationBuilder_.addAllMessages(other.convergenceInformation_);
995 if (infeasibilityInformationBuilder_ ==
null) {
996 if (!other.infeasibilityInformation_.isEmpty()) {
997 if (infeasibilityInformation_.isEmpty()) {
998 infeasibilityInformation_ = other.infeasibilityInformation_;
999 bitField0_ = (bitField0_ & ~0x00000004);
1001 ensureInfeasibilityInformationIsMutable();
1002 infeasibilityInformation_.addAll(other.infeasibilityInformation_);
1007 if (!other.infeasibilityInformation_.isEmpty()) {
1008 if (infeasibilityInformationBuilder_.isEmpty()) {
1009 infeasibilityInformationBuilder_.dispose();
1010 infeasibilityInformationBuilder_ =
null;
1011 infeasibilityInformation_ = other.infeasibilityInformation_;
1012 bitField0_ = (bitField0_ & ~0x00000004);
1013 infeasibilityInformationBuilder_ =
1014 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1015 internalGetInfeasibilityInformationFieldBuilder() :
null;
1017 infeasibilityInformationBuilder_.addAllMessages(other.infeasibilityInformation_);
1021 if (pointMetadataBuilder_ ==
null) {
1022 if (!other.pointMetadata_.isEmpty()) {
1023 if (pointMetadata_.isEmpty()) {
1024 pointMetadata_ = other.pointMetadata_;
1025 bitField0_ = (bitField0_ & ~0x00000008);
1027 ensurePointMetadataIsMutable();
1028 pointMetadata_.addAll(other.pointMetadata_);
1033 if (!other.pointMetadata_.isEmpty()) {
1034 if (pointMetadataBuilder_.isEmpty()) {
1035 pointMetadataBuilder_.dispose();
1036 pointMetadataBuilder_ =
null;
1037 pointMetadata_ = other.pointMetadata_;
1038 bitField0_ = (bitField0_ & ~0x00000008);
1039 pointMetadataBuilder_ =
1040 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1041 internalGetPointMetadataFieldBuilder() :
null;
1043 pointMetadataBuilder_.addAllMessages(other.pointMetadata_);
1047 if (other.hasCumulativeKktMatrixPasses()) {
1050 if (other.hasCumulativeRejectedSteps()) {
1053 if (other.hasCumulativeTimeSec()) {
1056 if (other.hasRestartUsed()) {
1059 if (other.hasStepSize()) {
1062 if (other.hasPrimalWeight()) {
1065 this.mergeUnknownFields(other.getUnknownFields());
1077 com.google.protobuf.CodedInputStream input,
1078 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1079 throws java.io.IOException {
1080 if (extensionRegistry ==
null) {
1081 throw new java.lang.NullPointerException();
1084 boolean done =
false;
1086 int tag = input.readTag();
1092 iterationNumber_ = input.readInt32();
1093 bitField0_ |= 0x00000001;
1099 com.google.ortools.pdlp.ConvergenceInformation.parser(),
1101 if (convergenceInformationBuilder_ ==
null) {
1102 ensureConvergenceInformationIsMutable();
1103 convergenceInformation_.add(m);
1105 convergenceInformationBuilder_.addMessage(m);
1112 com.google.ortools.pdlp.InfeasibilityInformation.parser(),
1114 if (infeasibilityInformationBuilder_ ==
null) {
1115 ensureInfeasibilityInformationIsMutable();
1116 infeasibilityInformation_.add(m);
1118 infeasibilityInformationBuilder_.addMessage(m);
1123 cumulativeKktMatrixPasses_ = input.readDouble();
1124 bitField0_ |= 0x00000010;
1128 cumulativeRejectedSteps_ = input.readInt32();
1129 bitField0_ |= 0x00000020;
1133 cumulativeTimeSec_ = input.readDouble();
1134 bitField0_ |= 0x00000040;
1138 int tmpRaw = input.readEnum();
1140 com.google.ortools.pdlp.RestartChoice.forNumber(tmpRaw);
1141 if (tmpValue ==
null) {
1142 mergeUnknownVarintField(7, tmpRaw);
1144 restartUsed_ = tmpRaw;
1145 bitField0_ |= 0x00000080;
1150 stepSize_ = input.readDouble();
1151 bitField0_ |= 0x00000100;
1155 primalWeight_ = input.readDouble();
1156 bitField0_ |= 0x00000200;
1162 com.google.ortools.pdlp.PointMetadata.parser(),
1164 if (pointMetadataBuilder_ ==
null) {
1165 ensurePointMetadataIsMutable();
1166 pointMetadata_.add(m);
1168 pointMetadataBuilder_.addMessage(m);
1173 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1180 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1181 throw e.unwrapIOException();
1187 private int bitField0_;
1189 private int iterationNumber_ ;
1203 return ((bitField0_ & 0x00000001) != 0);
1218 return iterationNumber_;
1234 iterationNumber_ = value;
1235 bitField0_ |= 0x00000001;
1251 bitField0_ = (bitField0_ & ~0x00000001);
1252 iterationNumber_ = 0;
1257 private java.util.List<com.google.ortools.pdlp.ConvergenceInformation> convergenceInformation_ =
1258 java.util.Collections.emptyList();
1259 private void ensureConvergenceInformationIsMutable() {
1260 if (!((bitField0_ & 0x00000002) != 0)) {
1261 convergenceInformation_ =
new java.util.ArrayList<com.google.ortools.pdlp.ConvergenceInformation>(convergenceInformation_);
1262 bitField0_ |= 0x00000002;
1266 private com.google.protobuf.RepeatedFieldBuilder<
1267 com.google.ortools.pdlp.ConvergenceInformation, com.google.ortools.pdlp.ConvergenceInformation.Builder, com.google.ortools.pdlp.ConvergenceInformationOrBuilder> convergenceInformationBuilder_;
1279 if (convergenceInformationBuilder_ ==
null) {
1280 return java.util.Collections.unmodifiableList(convergenceInformation_);
1282 return convergenceInformationBuilder_.getMessageList();
1295 if (convergenceInformationBuilder_ ==
null) {
1296 return convergenceInformation_.size();
1298 return convergenceInformationBuilder_.getCount();
1311 if (convergenceInformationBuilder_ ==
null) {
1312 return convergenceInformation_.get(index);
1314 return convergenceInformationBuilder_.getMessage(index);
1327 int index, com.google.ortools.pdlp.ConvergenceInformation value) {
1328 if (convergenceInformationBuilder_ ==
null) {
1329 if (value ==
null) {
1330 throw new NullPointerException();
1332 ensureConvergenceInformationIsMutable();
1333 convergenceInformation_.set(index, value);
1336 convergenceInformationBuilder_.setMessage(index, value);
1350 int index, com.google.ortools.pdlp.ConvergenceInformation.Builder builderForValue) {
1351 if (convergenceInformationBuilder_ ==
null) {
1352 ensureConvergenceInformationIsMutable();
1353 convergenceInformation_.set(index, builderForValue.build());
1356 convergenceInformationBuilder_.setMessage(index, builderForValue.build());
1370 if (convergenceInformationBuilder_ ==
null) {
1371 if (value ==
null) {
1372 throw new NullPointerException();
1374 ensureConvergenceInformationIsMutable();
1375 convergenceInformation_.add(value);
1378 convergenceInformationBuilder_.addMessage(value);
1392 int index, com.google.ortools.pdlp.ConvergenceInformation value) {
1393 if (convergenceInformationBuilder_ ==
null) {
1394 if (value ==
null) {
1395 throw new NullPointerException();
1397 ensureConvergenceInformationIsMutable();
1398 convergenceInformation_.add(index, value);
1401 convergenceInformationBuilder_.addMessage(index, value);
1415 com.google.ortools.pdlp.ConvergenceInformation.Builder builderForValue) {
1416 if (convergenceInformationBuilder_ ==
null) {
1417 ensureConvergenceInformationIsMutable();
1418 convergenceInformation_.add(builderForValue.build());
1421 convergenceInformationBuilder_.addMessage(builderForValue.build());
1435 int index, com.google.ortools.pdlp.ConvergenceInformation.Builder builderForValue) {
1436 if (convergenceInformationBuilder_ ==
null) {
1437 ensureConvergenceInformationIsMutable();
1438 convergenceInformation_.add(index, builderForValue.build());
1441 convergenceInformationBuilder_.addMessage(index, builderForValue.build());
1455 java.lang.Iterable<? extends com.google.ortools.pdlp.ConvergenceInformation> values) {
1456 if (convergenceInformationBuilder_ ==
null) {
1457 ensureConvergenceInformationIsMutable();
1458 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1459 values, convergenceInformation_);
1462 convergenceInformationBuilder_.addAllMessages(values);
1476 if (convergenceInformationBuilder_ ==
null) {
1477 convergenceInformation_ = java.util.Collections.emptyList();
1478 bitField0_ = (bitField0_ & ~0x00000002);
1481 convergenceInformationBuilder_.clear();
1495 if (convergenceInformationBuilder_ ==
null) {
1496 ensureConvergenceInformationIsMutable();
1497 convergenceInformation_.remove(index);
1500 convergenceInformationBuilder_.remove(index);
1515 return internalGetConvergenceInformationFieldBuilder().getBuilder(index);
1528 if (convergenceInformationBuilder_ ==
null) {
1529 return convergenceInformation_.get(index); }
else {
1530 return convergenceInformationBuilder_.getMessageOrBuilder(index);
1542 public java.util.List<? extends com.google.ortools.pdlp.ConvergenceInformationOrBuilder>
1544 if (convergenceInformationBuilder_ !=
null) {
1545 return convergenceInformationBuilder_.getMessageOrBuilderList();
1547 return java.util.Collections.unmodifiableList(convergenceInformation_);
1560 return internalGetConvergenceInformationFieldBuilder().addBuilder(
1561 com.google.ortools.pdlp.ConvergenceInformation.getDefaultInstance());
1574 return internalGetConvergenceInformationFieldBuilder().addBuilder(
1575 index, com.google.ortools.pdlp.ConvergenceInformation.getDefaultInstance());
1586 public java.util.List<com.google.ortools.pdlp.ConvergenceInformation.Builder>
1588 return internalGetConvergenceInformationFieldBuilder().getBuilderList();
1590 private com.google.protobuf.RepeatedFieldBuilder<
1591 com.google.ortools.pdlp.ConvergenceInformation, com.google.ortools.pdlp.ConvergenceInformation.Builder, com.google.ortools.pdlp.ConvergenceInformationOrBuilder>
1592 internalGetConvergenceInformationFieldBuilder() {
1593 if (convergenceInformationBuilder_ ==
null) {
1594 convergenceInformationBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
1595 com.google.ortools.pdlp.ConvergenceInformation, com.google.ortools.pdlp.ConvergenceInformation.Builder, com.google.ortools.pdlp.ConvergenceInformationOrBuilder>(
1596 convergenceInformation_,
1597 ((bitField0_ & 0x00000002) != 0),
1598 getParentForChildren(),
1600 convergenceInformation_ =
null;
1602 return convergenceInformationBuilder_;
1605 private java.util.List<com.google.ortools.pdlp.InfeasibilityInformation> infeasibilityInformation_ =
1606 java.util.Collections.emptyList();
1607 private void ensureInfeasibilityInformationIsMutable() {
1608 if (!((bitField0_ & 0x00000004) != 0)) {
1609 infeasibilityInformation_ =
new java.util.ArrayList<com.google.ortools.pdlp.InfeasibilityInformation>(infeasibilityInformation_);
1610 bitField0_ |= 0x00000004;
1614 private com.google.protobuf.RepeatedFieldBuilder<
1615 com.google.ortools.pdlp.InfeasibilityInformation, com.google.ortools.pdlp.InfeasibilityInformation.Builder, com.google.ortools.pdlp.InfeasibilityInformationOrBuilder> infeasibilityInformationBuilder_;
1627 if (infeasibilityInformationBuilder_ ==
null) {
1628 return java.util.Collections.unmodifiableList(infeasibilityInformation_);
1630 return infeasibilityInformationBuilder_.getMessageList();
1643 if (infeasibilityInformationBuilder_ ==
null) {
1644 return infeasibilityInformation_.size();
1646 return infeasibilityInformationBuilder_.getCount();
1659 if (infeasibilityInformationBuilder_ ==
null) {
1660 return infeasibilityInformation_.get(index);
1662 return infeasibilityInformationBuilder_.getMessage(index);
1675 int index, com.google.ortools.pdlp.InfeasibilityInformation value) {
1676 if (infeasibilityInformationBuilder_ ==
null) {
1677 if (value ==
null) {
1678 throw new NullPointerException();
1680 ensureInfeasibilityInformationIsMutable();
1681 infeasibilityInformation_.set(index, value);
1684 infeasibilityInformationBuilder_.setMessage(index, value);
1698 int index, com.google.ortools.pdlp.InfeasibilityInformation.Builder builderForValue) {
1699 if (infeasibilityInformationBuilder_ ==
null) {
1700 ensureInfeasibilityInformationIsMutable();
1701 infeasibilityInformation_.set(index, builderForValue.build());
1704 infeasibilityInformationBuilder_.setMessage(index, builderForValue.build());
1718 if (infeasibilityInformationBuilder_ ==
null) {
1719 if (value ==
null) {
1720 throw new NullPointerException();
1722 ensureInfeasibilityInformationIsMutable();
1723 infeasibilityInformation_.add(value);
1726 infeasibilityInformationBuilder_.addMessage(value);
1740 int index, com.google.ortools.pdlp.InfeasibilityInformation value) {
1741 if (infeasibilityInformationBuilder_ ==
null) {
1742 if (value ==
null) {
1743 throw new NullPointerException();
1745 ensureInfeasibilityInformationIsMutable();
1746 infeasibilityInformation_.add(index, value);
1749 infeasibilityInformationBuilder_.addMessage(index, value);
1763 com.google.ortools.pdlp.InfeasibilityInformation.Builder builderForValue) {
1764 if (infeasibilityInformationBuilder_ ==
null) {
1765 ensureInfeasibilityInformationIsMutable();
1766 infeasibilityInformation_.add(builderForValue.build());
1769 infeasibilityInformationBuilder_.addMessage(builderForValue.build());
1783 int index, com.google.ortools.pdlp.InfeasibilityInformation.Builder builderForValue) {
1784 if (infeasibilityInformationBuilder_ ==
null) {
1785 ensureInfeasibilityInformationIsMutable();
1786 infeasibilityInformation_.add(index, builderForValue.build());
1789 infeasibilityInformationBuilder_.addMessage(index, builderForValue.build());
1803 java.lang.Iterable<? extends com.google.ortools.pdlp.InfeasibilityInformation> values) {
1804 if (infeasibilityInformationBuilder_ ==
null) {
1805 ensureInfeasibilityInformationIsMutable();
1806 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1807 values, infeasibilityInformation_);
1810 infeasibilityInformationBuilder_.addAllMessages(values);
1824 if (infeasibilityInformationBuilder_ ==
null) {
1825 infeasibilityInformation_ = java.util.Collections.emptyList();
1826 bitField0_ = (bitField0_ & ~0x00000004);
1829 infeasibilityInformationBuilder_.clear();
1843 if (infeasibilityInformationBuilder_ ==
null) {
1844 ensureInfeasibilityInformationIsMutable();
1845 infeasibilityInformation_.remove(index);
1848 infeasibilityInformationBuilder_.remove(index);
1863 return internalGetInfeasibilityInformationFieldBuilder().getBuilder(index);
1876 if (infeasibilityInformationBuilder_ ==
null) {
1877 return infeasibilityInformation_.get(index); }
else {
1878 return infeasibilityInformationBuilder_.getMessageOrBuilder(index);
1890 public java.util.List<? extends com.google.ortools.pdlp.InfeasibilityInformationOrBuilder>
1892 if (infeasibilityInformationBuilder_ !=
null) {
1893 return infeasibilityInformationBuilder_.getMessageOrBuilderList();
1895 return java.util.Collections.unmodifiableList(infeasibilityInformation_);
1908 return internalGetInfeasibilityInformationFieldBuilder().addBuilder(
1909 com.google.ortools.pdlp.InfeasibilityInformation.getDefaultInstance());
1922 return internalGetInfeasibilityInformationFieldBuilder().addBuilder(
1923 index, com.google.ortools.pdlp.InfeasibilityInformation.getDefaultInstance());
1934 public java.util.List<com.google.ortools.pdlp.InfeasibilityInformation.Builder>
1936 return internalGetInfeasibilityInformationFieldBuilder().getBuilderList();
1938 private com.google.protobuf.RepeatedFieldBuilder<
1939 com.google.ortools.pdlp.InfeasibilityInformation, com.google.ortools.pdlp.InfeasibilityInformation.Builder, com.google.ortools.pdlp.InfeasibilityInformationOrBuilder>
1940 internalGetInfeasibilityInformationFieldBuilder() {
1941 if (infeasibilityInformationBuilder_ ==
null) {
1942 infeasibilityInformationBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
1943 com.google.ortools.pdlp.InfeasibilityInformation, com.google.ortools.pdlp.InfeasibilityInformation.Builder, com.google.ortools.pdlp.InfeasibilityInformationOrBuilder>(
1944 infeasibilityInformation_,
1945 ((bitField0_ & 0x00000004) != 0),
1946 getParentForChildren(),
1948 infeasibilityInformation_ =
null;
1950 return infeasibilityInformationBuilder_;
1953 private java.util.List<com.google.ortools.pdlp.PointMetadata> pointMetadata_ =
1954 java.util.Collections.emptyList();
1955 private void ensurePointMetadataIsMutable() {
1956 if (!((bitField0_ & 0x00000008) != 0)) {
1957 pointMetadata_ =
new java.util.ArrayList<com.google.ortools.pdlp.PointMetadata>(pointMetadata_);
1958 bitField0_ |= 0x00000008;
1962 private com.google.protobuf.RepeatedFieldBuilder<
1963 com.google.ortools.pdlp.PointMetadata, com.google.ortools.pdlp.PointMetadata.Builder, com.google.ortools.pdlp.PointMetadataOrBuilder> pointMetadataBuilder_;
1973 if (pointMetadataBuilder_ ==
null) {
1974 return java.util.Collections.unmodifiableList(pointMetadata_);
1976 return pointMetadataBuilder_.getMessageList();
1987 if (pointMetadataBuilder_ ==
null) {
1988 return pointMetadata_.size();
1990 return pointMetadataBuilder_.getCount();
2001 if (pointMetadataBuilder_ ==
null) {
2002 return pointMetadata_.get(index);
2004 return pointMetadataBuilder_.getMessage(index);
2015 int index, com.google.ortools.pdlp.PointMetadata value) {
2016 if (pointMetadataBuilder_ ==
null) {
2017 if (value ==
null) {
2018 throw new NullPointerException();
2020 ensurePointMetadataIsMutable();
2021 pointMetadata_.set(index, value);
2024 pointMetadataBuilder_.setMessage(index, value);
2036 int index, com.google.ortools.pdlp.PointMetadata.Builder builderForValue) {
2037 if (pointMetadataBuilder_ ==
null) {
2038 ensurePointMetadataIsMutable();
2039 pointMetadata_.set(index, builderForValue.build());
2042 pointMetadataBuilder_.setMessage(index, builderForValue.build());
2054 if (pointMetadataBuilder_ ==
null) {
2055 if (value ==
null) {
2056 throw new NullPointerException();
2058 ensurePointMetadataIsMutable();
2059 pointMetadata_.add(value);
2062 pointMetadataBuilder_.addMessage(value);
2074 int index, com.google.ortools.pdlp.PointMetadata value) {
2075 if (pointMetadataBuilder_ ==
null) {
2076 if (value ==
null) {
2077 throw new NullPointerException();
2079 ensurePointMetadataIsMutable();
2080 pointMetadata_.add(index, value);
2083 pointMetadataBuilder_.addMessage(index, value);
2095 com.google.ortools.pdlp.PointMetadata.Builder builderForValue) {
2096 if (pointMetadataBuilder_ ==
null) {
2097 ensurePointMetadataIsMutable();
2098 pointMetadata_.add(builderForValue.build());
2101 pointMetadataBuilder_.addMessage(builderForValue.build());
2113 int index, com.google.ortools.pdlp.PointMetadata.Builder builderForValue) {
2114 if (pointMetadataBuilder_ ==
null) {
2115 ensurePointMetadataIsMutable();
2116 pointMetadata_.add(index, builderForValue.build());
2119 pointMetadataBuilder_.addMessage(index, builderForValue.build());
2131 java.lang.Iterable<? extends com.google.ortools.pdlp.PointMetadata> values) {
2132 if (pointMetadataBuilder_ ==
null) {
2133 ensurePointMetadataIsMutable();
2134 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2135 values, pointMetadata_);
2138 pointMetadataBuilder_.addAllMessages(values);
2150 if (pointMetadataBuilder_ ==
null) {
2151 pointMetadata_ = java.util.Collections.emptyList();
2152 bitField0_ = (bitField0_ & ~0x00000008);
2155 pointMetadataBuilder_.clear();
2167 if (pointMetadataBuilder_ ==
null) {
2168 ensurePointMetadataIsMutable();
2169 pointMetadata_.remove(index);
2172 pointMetadataBuilder_.remove(index);
2185 return internalGetPointMetadataFieldBuilder().getBuilder(index);
2196 if (pointMetadataBuilder_ ==
null) {
2197 return pointMetadata_.get(index); }
else {
2198 return pointMetadataBuilder_.getMessageOrBuilder(index);
2208 public java.util.List<? extends com.google.ortools.pdlp.PointMetadataOrBuilder>
2210 if (pointMetadataBuilder_ !=
null) {
2211 return pointMetadataBuilder_.getMessageOrBuilderList();
2213 return java.util.Collections.unmodifiableList(pointMetadata_);
2224 return internalGetPointMetadataFieldBuilder().addBuilder(
2225 com.google.ortools.pdlp.PointMetadata.getDefaultInstance());
2236 return internalGetPointMetadataFieldBuilder().addBuilder(
2237 index, com.google.ortools.pdlp.PointMetadata.getDefaultInstance());
2246 public java.util.List<com.google.ortools.pdlp.PointMetadata.Builder>
2248 return internalGetPointMetadataFieldBuilder().getBuilderList();
2250 private com.google.protobuf.RepeatedFieldBuilder<
2251 com.google.ortools.pdlp.PointMetadata, com.google.ortools.pdlp.PointMetadata.Builder, com.google.ortools.pdlp.PointMetadataOrBuilder>
2252 internalGetPointMetadataFieldBuilder() {
2253 if (pointMetadataBuilder_ ==
null) {
2254 pointMetadataBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
2255 com.google.ortools.pdlp.PointMetadata, com.google.ortools.pdlp.PointMetadata.Builder, com.google.ortools.pdlp.PointMetadataOrBuilder>(
2257 ((bitField0_ & 0x00000008) != 0),
2258 getParentForChildren(),
2260 pointMetadata_ =
null;
2262 return pointMetadataBuilder_;
2265 private double cumulativeKktMatrixPasses_ ;
2284 return ((bitField0_ & 0x00000010) != 0);
2304 return cumulativeKktMatrixPasses_;
2325 cumulativeKktMatrixPasses_ = value;
2326 bitField0_ |= 0x00000010;
2347 bitField0_ = (bitField0_ & ~0x00000010);
2348 cumulativeKktMatrixPasses_ = 0D;
2353 private int cumulativeRejectedSteps_ ;
2365 return ((bitField0_ & 0x00000020) != 0);
2378 return cumulativeRejectedSteps_;
2392 cumulativeRejectedSteps_ = value;
2393 bitField0_ |= 0x00000020;
2407 bitField0_ = (bitField0_ & ~0x00000020);
2408 cumulativeRejectedSteps_ = 0;
2413 private double cumulativeTimeSec_ ;
2425 return ((bitField0_ & 0x00000040) != 0);
2438 return cumulativeTimeSec_;
2452 cumulativeTimeSec_ = value;
2453 bitField0_ |= 0x00000040;
2467 bitField0_ = (bitField0_ & ~0x00000040);
2468 cumulativeTimeSec_ = 0D;
2473 private int restartUsed_ = 0;
2484 return ((bitField0_ & 0x00000080) != 0);
2511 if (value ==
null) {
throw new NullPointerException(); }
2512 bitField0_ |= 0x00000080;
2513 restartUsed_ = value.getNumber();
2527 bitField0_ = (bitField0_ & ~0x00000080);
2533 private double stepSize_ ;
2546 return ((bitField0_ & 0x00000100) != 0);
2576 bitField0_ |= 0x00000100;
2591 bitField0_ = (bitField0_ & ~0x00000100);
2597 private double primalWeight_ ;
2609 return ((bitField0_ & 0x00000200) != 0);
2622 return primalWeight_;
2636 primalWeight_ = value;
2637 bitField0_ |= 0x00000200;
2651 bitField0_ = (bitField0_ & ~0x00000200);
2663 DEFAULT_INSTANCE =
new com.google.ortools.pdlp.IterationStats();
2667 return DEFAULT_INSTANCE;
2671 PARSER =
new com.google.protobuf.AbstractParser<
IterationStats>() {
2674 com.google.protobuf.CodedInputStream input,
2675 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2676 throws com.google.protobuf.InvalidProtocolBufferException {
2679 builder.mergeFrom(input, extensionRegistry);
2680 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
2681 throw e.setUnfinishedMessage(builder.buildPartial());
2682 }
catch (com.google.protobuf.UninitializedMessageException e) {
2683 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2684 }
catch (java.io.IOException e) {
2685 throw new com.google.protobuf.InvalidProtocolBufferException(e)
2686 .setUnfinishedMessage(builder.buildPartial());
2688 return builder.buildPartial();
2692 public static com.google.protobuf.Parser<IterationStats>
parser() {
2703 return DEFAULT_INSTANCE;