6package com.google.ortools.pdlp;
19public final class IterationStats
extends
20 com.google.protobuf.GeneratedMessage implements
23private static final long serialVersionUID = 0L;
25 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
26 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
31 IterationStats.class.getName());
34 private IterationStats(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
37 private IterationStats() {
38 convergenceInformation_ = java.util.Collections.emptyList();
39 infeasibilityInformation_ = java.util.Collections.emptyList();
40 pointMetadata_ = java.util.Collections.emptyList();
44 public static final com.google.protobuf.Descriptors.Descriptor
46 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_descriptor;
50 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
52 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_fieldAccessorTable
53 .ensureFieldAccessorsInitialized(
54 com.google.ortools.pdlp.IterationStats.class, com.google.ortools.pdlp.IterationStats.Builder.class);
57 private int bitField0_;
59 private int iterationNumber_ = 0;
73 return ((bitField0_ & 0x00000001) != 0);
88 return iterationNumber_;
92 @SuppressWarnings(
"serial")
105 return convergenceInformation_;
117 public java.util.List<? extends com.google.ortools.pdlp.ConvergenceInformationOrBuilder>
119 return convergenceInformation_;
132 return convergenceInformation_.size();
145 return convergenceInformation_.get(index);
159 return convergenceInformation_.get(index);
163 @SuppressWarnings(
"serial")
176 return infeasibilityInformation_;
188 public java.util.List<? extends com.google.ortools.pdlp.InfeasibilityInformationOrBuilder>
190 return infeasibilityInformation_;
203 return infeasibilityInformation_.size();
216 return infeasibilityInformation_.get(index);
230 return infeasibilityInformation_.get(index);
234 @SuppressWarnings(
"serial")
245 return pointMetadata_;
255 public java.util.List<? extends com.google.ortools.pdlp.PointMetadataOrBuilder>
257 return pointMetadata_;
268 return pointMetadata_.size();
279 return pointMetadata_.get(index);
291 return pointMetadata_.get(index);
295 private double cumulativeKktMatrixPasses_ = 0D;
314 return ((bitField0_ & 0x00000002) != 0);
334 return cumulativeKktMatrixPasses_;
338 private int cumulativeRejectedSteps_ = 0;
350 return ((bitField0_ & 0x00000004) != 0);
363 return cumulativeRejectedSteps_;
367 private double cumulativeTimeSec_ = 0D;
379 return ((bitField0_ & 0x00000008) != 0);
392 return cumulativeTimeSec_;
396 private int restartUsed_ = 0;
407 return ((bitField0_ & 0x00000010) != 0);
424 private double stepSize_ = 0D;
437 return ((bitField0_ & 0x00000020) != 0);
455 private double primalWeight_ = 0D;
467 return ((bitField0_ & 0x00000040) != 0);
480 return primalWeight_;
483 private byte memoizedIsInitialized = -1;
490 memoizedIsInitialized = 1;
495 public void writeTo(com.google.protobuf.CodedOutputStream output)
496 throws java.io.IOException {
497 if (((bitField0_ & 0x00000001) != 0)) {
498 output.writeInt32(1, iterationNumber_);
500 for (
int i = 0; i < convergenceInformation_.size(); i++) {
501 output.writeMessage(2, convergenceInformation_.get(i));
503 for (
int i = 0; i < infeasibilityInformation_.size(); i++) {
504 output.writeMessage(3, infeasibilityInformation_.get(i));
506 if (((bitField0_ & 0x00000002) != 0)) {
507 output.writeDouble(4, cumulativeKktMatrixPasses_);
509 if (((bitField0_ & 0x00000004) != 0)) {
510 output.writeInt32(5, cumulativeRejectedSteps_);
512 if (((bitField0_ & 0x00000008) != 0)) {
513 output.writeDouble(6, cumulativeTimeSec_);
515 if (((bitField0_ & 0x00000010) != 0)) {
516 output.writeEnum(7, restartUsed_);
518 if (((bitField0_ & 0x00000020) != 0)) {
519 output.writeDouble(8, stepSize_);
521 if (((bitField0_ & 0x00000040) != 0)) {
522 output.writeDouble(9, primalWeight_);
524 for (
int i = 0; i < pointMetadata_.size(); i++) {
525 output.writeMessage(11, pointMetadata_.get(i));
527 getUnknownFields().writeTo(output);
532 int size = memoizedSize;
533 if (size != -1)
return size;
536 if (((bitField0_ & 0x00000001) != 0)) {
537 size += com.google.protobuf.CodedOutputStream
538 .computeInt32Size(1, iterationNumber_);
540 for (
int i = 0; i < convergenceInformation_.size(); i++) {
541 size += com.google.protobuf.CodedOutputStream
542 .computeMessageSize(2, convergenceInformation_.get(i));
544 for (
int i = 0; i < infeasibilityInformation_.size(); i++) {
545 size += com.google.protobuf.CodedOutputStream
546 .computeMessageSize(3, infeasibilityInformation_.get(i));
548 if (((bitField0_ & 0x00000002) != 0)) {
549 size += com.google.protobuf.CodedOutputStream
550 .computeDoubleSize(4, cumulativeKktMatrixPasses_);
552 if (((bitField0_ & 0x00000004) != 0)) {
553 size += com.google.protobuf.CodedOutputStream
554 .computeInt32Size(5, cumulativeRejectedSteps_);
556 if (((bitField0_ & 0x00000008) != 0)) {
557 size += com.google.protobuf.CodedOutputStream
558 .computeDoubleSize(6, cumulativeTimeSec_);
560 if (((bitField0_ & 0x00000010) != 0)) {
561 size += com.google.protobuf.CodedOutputStream
562 .computeEnumSize(7, restartUsed_);
564 if (((bitField0_ & 0x00000020) != 0)) {
565 size += com.google.protobuf.CodedOutputStream
566 .computeDoubleSize(8, stepSize_);
568 if (((bitField0_ & 0x00000040) != 0)) {
569 size += com.google.protobuf.CodedOutputStream
570 .computeDoubleSize(9, primalWeight_);
572 for (
int i = 0; i < pointMetadata_.size(); i++) {
573 size += com.google.protobuf.CodedOutputStream
574 .computeMessageSize(11, pointMetadata_.get(i));
576 size += getUnknownFields().getSerializedSize();
582 public boolean equals(
final java.lang.Object obj) {
586 if (!(obj instanceof com.google.ortools.pdlp.IterationStats)) {
587 return super.equals(obj);
605 != java.lang.Double.doubleToLongBits(
616 != java.lang.Double.doubleToLongBits(
621 if (restartUsed_ != other.restartUsed_)
return false;
625 if (java.lang.Double.doubleToLongBits(
getStepSize())
626 != java.lang.Double.doubleToLongBits(
632 != java.lang.Double.doubleToLongBits(
635 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
641 if (memoizedHashCode != 0) {
642 return memoizedHashCode;
664 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
673 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
678 hash = (53 * hash) + restartUsed_;
682 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
687 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
690 hash = (29 * hash) + getUnknownFields().hashCode();
691 memoizedHashCode = hash;
696 java.nio.ByteBuffer data)
697 throws com.google.protobuf.InvalidProtocolBufferException {
698 return PARSER.parseFrom(data);
701 java.nio.ByteBuffer data,
702 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
703 throws com.google.protobuf.InvalidProtocolBufferException {
704 return PARSER.parseFrom(data, extensionRegistry);
707 com.google.protobuf.ByteString data)
708 throws com.google.protobuf.InvalidProtocolBufferException {
709 return PARSER.parseFrom(data);
712 com.google.protobuf.ByteString data,
713 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
714 throws com.google.protobuf.InvalidProtocolBufferException {
715 return PARSER.parseFrom(data, extensionRegistry);
718 throws com.google.protobuf.InvalidProtocolBufferException {
719 return PARSER.parseFrom(data);
723 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
724 throws com.google.protobuf.InvalidProtocolBufferException {
725 return PARSER.parseFrom(data, extensionRegistry);
728 throws java.io.IOException {
729 return com.google.protobuf.GeneratedMessage
730 .parseWithIOException(PARSER, input);
733 java.io.InputStream input,
734 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
735 throws java.io.IOException {
736 return com.google.protobuf.GeneratedMessage
737 .parseWithIOException(PARSER, input, extensionRegistry);
741 throws java.io.IOException {
742 return com.google.protobuf.GeneratedMessage
743 .parseDelimitedWithIOException(PARSER, input);
747 java.io.InputStream input,
748 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
749 throws java.io.IOException {
750 return com.google.protobuf.GeneratedMessage
751 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
754 com.google.protobuf.CodedInputStream input)
755 throws java.io.IOException {
756 return com.google.protobuf.GeneratedMessage
757 .parseWithIOException(PARSER, input);
760 com.google.protobuf.CodedInputStream input,
761 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
762 throws java.io.IOException {
763 return com.google.protobuf.GeneratedMessage
764 .parseWithIOException(PARSER, input, extensionRegistry);
770 return DEFAULT_INSTANCE.toBuilder();
773 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
777 return this == DEFAULT_INSTANCE
783 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
798 public static final class Builder
extends
799 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
802 public static final com.google.protobuf.Descriptors.Descriptor
804 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_descriptor;
808 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
810 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_fieldAccessorTable
811 .ensureFieldAccessorsInitialized(
812 com.google.ortools.pdlp.IterationStats.class, com.google.ortools.pdlp.IterationStats.Builder.class);
821 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
829 iterationNumber_ = 0;
830 if (convergenceInformationBuilder_ ==
null) {
831 convergenceInformation_ = java.util.Collections.emptyList();
833 convergenceInformation_ =
null;
834 convergenceInformationBuilder_.clear();
836 bitField0_ = (bitField0_ & ~0x00000002);
837 if (infeasibilityInformationBuilder_ ==
null) {
838 infeasibilityInformation_ = java.util.Collections.emptyList();
840 infeasibilityInformation_ =
null;
841 infeasibilityInformationBuilder_.clear();
843 bitField0_ = (bitField0_ & ~0x00000004);
844 if (pointMetadataBuilder_ ==
null) {
845 pointMetadata_ = java.util.Collections.emptyList();
847 pointMetadata_ =
null;
848 pointMetadataBuilder_.clear();
850 bitField0_ = (bitField0_ & ~0x00000008);
851 cumulativeKktMatrixPasses_ = 0D;
852 cumulativeRejectedSteps_ = 0;
853 cumulativeTimeSec_ = 0D;
861 public com.google.protobuf.Descriptors.Descriptor
863 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_descriptor;
868 return com.google.ortools.pdlp.IterationStats.getDefaultInstance();
875 throw newUninitializedMessageException(result);
883 buildPartialRepeatedFields(result);
884 if (bitField0_ != 0) { buildPartial0(result); }
889 private void buildPartialRepeatedFields(com.google.ortools.pdlp.IterationStats result) {
890 if (convergenceInformationBuilder_ ==
null) {
891 if (((bitField0_ & 0x00000002) != 0)) {
892 convergenceInformation_ = java.util.Collections.unmodifiableList(convergenceInformation_);
893 bitField0_ = (bitField0_ & ~0x00000002);
895 result.convergenceInformation_ = convergenceInformation_;
897 result.convergenceInformation_ = convergenceInformationBuilder_.build();
899 if (infeasibilityInformationBuilder_ ==
null) {
900 if (((bitField0_ & 0x00000004) != 0)) {
901 infeasibilityInformation_ = java.util.Collections.unmodifiableList(infeasibilityInformation_);
902 bitField0_ = (bitField0_ & ~0x00000004);
904 result.infeasibilityInformation_ = infeasibilityInformation_;
906 result.infeasibilityInformation_ = infeasibilityInformationBuilder_.build();
908 if (pointMetadataBuilder_ ==
null) {
909 if (((bitField0_ & 0x00000008) != 0)) {
910 pointMetadata_ = java.util.Collections.unmodifiableList(pointMetadata_);
911 bitField0_ = (bitField0_ & ~0x00000008);
913 result.pointMetadata_ = pointMetadata_;
915 result.pointMetadata_ = pointMetadataBuilder_.build();
919 private void buildPartial0(com.google.ortools.pdlp.IterationStats result) {
920 int from_bitField0_ = bitField0_;
921 int to_bitField0_ = 0;
922 if (((from_bitField0_ & 0x00000001) != 0)) {
923 result.iterationNumber_ = iterationNumber_;
924 to_bitField0_ |= 0x00000001;
926 if (((from_bitField0_ & 0x00000010) != 0)) {
927 result.cumulativeKktMatrixPasses_ = cumulativeKktMatrixPasses_;
928 to_bitField0_ |= 0x00000002;
930 if (((from_bitField0_ & 0x00000020) != 0)) {
931 result.cumulativeRejectedSteps_ = cumulativeRejectedSteps_;
932 to_bitField0_ |= 0x00000004;
934 if (((from_bitField0_ & 0x00000040) != 0)) {
935 result.cumulativeTimeSec_ = cumulativeTimeSec_;
936 to_bitField0_ |= 0x00000008;
938 if (((from_bitField0_ & 0x00000080) != 0)) {
939 result.restartUsed_ = restartUsed_;
940 to_bitField0_ |= 0x00000010;
942 if (((from_bitField0_ & 0x00000100) != 0)) {
943 result.stepSize_ = stepSize_;
944 to_bitField0_ |= 0x00000020;
946 if (((from_bitField0_ & 0x00000200) != 0)) {
947 result.primalWeight_ = primalWeight_;
948 to_bitField0_ |= 0x00000040;
950 result.bitField0_ |= to_bitField0_;
954 public Builder
mergeFrom(com.google.protobuf.Message other) {
955 if (other instanceof com.google.ortools.pdlp.IterationStats) {
956 return mergeFrom((com.google.ortools.pdlp.IterationStats)other);
958 super.mergeFrom(other);
963 public Builder
mergeFrom(com.google.ortools.pdlp.IterationStats other) {
964 if (other == com.google.ortools.pdlp.IterationStats.getDefaultInstance())
return this;
965 if (other.hasIterationNumber()) {
968 if (convergenceInformationBuilder_ ==
null) {
969 if (!other.convergenceInformation_.isEmpty()) {
970 if (convergenceInformation_.isEmpty()) {
971 convergenceInformation_ = other.convergenceInformation_;
972 bitField0_ = (bitField0_ & ~0x00000002);
974 ensureConvergenceInformationIsMutable();
975 convergenceInformation_.addAll(other.convergenceInformation_);
980 if (!other.convergenceInformation_.isEmpty()) {
981 if (convergenceInformationBuilder_.isEmpty()) {
982 convergenceInformationBuilder_.dispose();
983 convergenceInformationBuilder_ =
null;
984 convergenceInformation_ = other.convergenceInformation_;
985 bitField0_ = (bitField0_ & ~0x00000002);
986 convergenceInformationBuilder_ =
987 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
988 getConvergenceInformationFieldBuilder() :
null;
990 convergenceInformationBuilder_.addAllMessages(other.convergenceInformation_);
994 if (infeasibilityInformationBuilder_ ==
null) {
995 if (!other.infeasibilityInformation_.isEmpty()) {
996 if (infeasibilityInformation_.isEmpty()) {
997 infeasibilityInformation_ = other.infeasibilityInformation_;
998 bitField0_ = (bitField0_ & ~0x00000004);
1000 ensureInfeasibilityInformationIsMutable();
1001 infeasibilityInformation_.addAll(other.infeasibilityInformation_);
1006 if (!other.infeasibilityInformation_.isEmpty()) {
1007 if (infeasibilityInformationBuilder_.isEmpty()) {
1008 infeasibilityInformationBuilder_.dispose();
1009 infeasibilityInformationBuilder_ =
null;
1010 infeasibilityInformation_ = other.infeasibilityInformation_;
1011 bitField0_ = (bitField0_ & ~0x00000004);
1012 infeasibilityInformationBuilder_ =
1013 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1014 getInfeasibilityInformationFieldBuilder() :
null;
1016 infeasibilityInformationBuilder_.addAllMessages(other.infeasibilityInformation_);
1020 if (pointMetadataBuilder_ ==
null) {
1021 if (!other.pointMetadata_.isEmpty()) {
1022 if (pointMetadata_.isEmpty()) {
1023 pointMetadata_ = other.pointMetadata_;
1024 bitField0_ = (bitField0_ & ~0x00000008);
1026 ensurePointMetadataIsMutable();
1027 pointMetadata_.addAll(other.pointMetadata_);
1032 if (!other.pointMetadata_.isEmpty()) {
1033 if (pointMetadataBuilder_.isEmpty()) {
1034 pointMetadataBuilder_.dispose();
1035 pointMetadataBuilder_ =
null;
1036 pointMetadata_ = other.pointMetadata_;
1037 bitField0_ = (bitField0_ & ~0x00000008);
1038 pointMetadataBuilder_ =
1039 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1040 getPointMetadataFieldBuilder() :
null;
1042 pointMetadataBuilder_.addAllMessages(other.pointMetadata_);
1046 if (other.hasCumulativeKktMatrixPasses()) {
1049 if (other.hasCumulativeRejectedSteps()) {
1052 if (other.hasCumulativeTimeSec()) {
1055 if (other.hasRestartUsed()) {
1058 if (other.hasStepSize()) {
1061 if (other.hasPrimalWeight()) {
1064 this.mergeUnknownFields(other.getUnknownFields());
1076 com.google.protobuf.CodedInputStream input,
1077 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1078 throws java.io.IOException {
1079 if (extensionRegistry ==
null) {
1080 throw new java.lang.NullPointerException();
1083 boolean done =
false;
1085 int tag = input.readTag();
1091 iterationNumber_ = input.readInt32();
1092 bitField0_ |= 0x00000001;
1098 com.google.ortools.pdlp.ConvergenceInformation.parser(),
1100 if (convergenceInformationBuilder_ ==
null) {
1101 ensureConvergenceInformationIsMutable();
1102 convergenceInformation_.add(m);
1104 convergenceInformationBuilder_.addMessage(m);
1111 com.google.ortools.pdlp.InfeasibilityInformation.parser(),
1113 if (infeasibilityInformationBuilder_ ==
null) {
1114 ensureInfeasibilityInformationIsMutable();
1115 infeasibilityInformation_.add(m);
1117 infeasibilityInformationBuilder_.addMessage(m);
1122 cumulativeKktMatrixPasses_ = input.readDouble();
1123 bitField0_ |= 0x00000010;
1127 cumulativeRejectedSteps_ = input.readInt32();
1128 bitField0_ |= 0x00000020;
1132 cumulativeTimeSec_ = input.readDouble();
1133 bitField0_ |= 0x00000040;
1137 int tmpRaw = input.readEnum();
1139 com.google.ortools.pdlp.RestartChoice.forNumber(tmpRaw);
1140 if (tmpValue ==
null) {
1141 mergeUnknownVarintField(7, tmpRaw);
1143 restartUsed_ = tmpRaw;
1144 bitField0_ |= 0x00000080;
1149 stepSize_ = input.readDouble();
1150 bitField0_ |= 0x00000100;
1154 primalWeight_ = input.readDouble();
1155 bitField0_ |= 0x00000200;
1161 com.google.ortools.pdlp.PointMetadata.parser(),
1163 if (pointMetadataBuilder_ ==
null) {
1164 ensurePointMetadataIsMutable();
1165 pointMetadata_.add(m);
1167 pointMetadataBuilder_.addMessage(m);
1172 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1179 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1180 throw e.unwrapIOException();
1186 private int bitField0_;
1188 private int iterationNumber_ ;
1202 return ((bitField0_ & 0x00000001) != 0);
1217 return iterationNumber_;
1233 iterationNumber_ = value;
1234 bitField0_ |= 0x00000001;
1250 bitField0_ = (bitField0_ & ~0x00000001);
1251 iterationNumber_ = 0;
1256 private java.util.List<com.google.ortools.pdlp.ConvergenceInformation> convergenceInformation_ =
1257 java.util.Collections.emptyList();
1258 private void ensureConvergenceInformationIsMutable() {
1259 if (!((bitField0_ & 0x00000002) != 0)) {
1260 convergenceInformation_ =
new java.util.ArrayList<com.google.ortools.pdlp.ConvergenceInformation>(convergenceInformation_);
1261 bitField0_ |= 0x00000002;
1265 private com.google.protobuf.RepeatedFieldBuilder<
1266 com.google.ortools.pdlp.ConvergenceInformation, com.google.ortools.pdlp.ConvergenceInformation.Builder, com.google.ortools.pdlp.ConvergenceInformationOrBuilder> convergenceInformationBuilder_;
1278 if (convergenceInformationBuilder_ ==
null) {
1279 return java.util.Collections.unmodifiableList(convergenceInformation_);
1281 return convergenceInformationBuilder_.getMessageList();
1294 if (convergenceInformationBuilder_ ==
null) {
1295 return convergenceInformation_.size();
1297 return convergenceInformationBuilder_.getCount();
1310 if (convergenceInformationBuilder_ ==
null) {
1311 return convergenceInformation_.get(index);
1313 return convergenceInformationBuilder_.getMessage(index);
1326 int index, com.google.ortools.pdlp.ConvergenceInformation value) {
1327 if (convergenceInformationBuilder_ ==
null) {
1328 if (value ==
null) {
1329 throw new NullPointerException();
1331 ensureConvergenceInformationIsMutable();
1332 convergenceInformation_.set(index, value);
1335 convergenceInformationBuilder_.setMessage(index, value);
1349 int index, com.google.ortools.pdlp.ConvergenceInformation.Builder builderForValue) {
1350 if (convergenceInformationBuilder_ ==
null) {
1351 ensureConvergenceInformationIsMutable();
1352 convergenceInformation_.set(index, builderForValue.build());
1355 convergenceInformationBuilder_.setMessage(index, builderForValue.build());
1369 if (convergenceInformationBuilder_ ==
null) {
1370 if (value ==
null) {
1371 throw new NullPointerException();
1373 ensureConvergenceInformationIsMutable();
1374 convergenceInformation_.add(value);
1377 convergenceInformationBuilder_.addMessage(value);
1391 int index, com.google.ortools.pdlp.ConvergenceInformation value) {
1392 if (convergenceInformationBuilder_ ==
null) {
1393 if (value ==
null) {
1394 throw new NullPointerException();
1396 ensureConvergenceInformationIsMutable();
1397 convergenceInformation_.add(index, value);
1400 convergenceInformationBuilder_.addMessage(index, value);
1414 com.google.ortools.pdlp.ConvergenceInformation.Builder builderForValue) {
1415 if (convergenceInformationBuilder_ ==
null) {
1416 ensureConvergenceInformationIsMutable();
1417 convergenceInformation_.add(builderForValue.build());
1420 convergenceInformationBuilder_.addMessage(builderForValue.build());
1434 int index, com.google.ortools.pdlp.ConvergenceInformation.Builder builderForValue) {
1435 if (convergenceInformationBuilder_ ==
null) {
1436 ensureConvergenceInformationIsMutable();
1437 convergenceInformation_.add(index, builderForValue.build());
1440 convergenceInformationBuilder_.addMessage(index, builderForValue.build());
1454 java.lang.Iterable<? extends com.google.ortools.pdlp.ConvergenceInformation> values) {
1455 if (convergenceInformationBuilder_ ==
null) {
1456 ensureConvergenceInformationIsMutable();
1457 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1458 values, convergenceInformation_);
1461 convergenceInformationBuilder_.addAllMessages(values);
1475 if (convergenceInformationBuilder_ ==
null) {
1476 convergenceInformation_ = java.util.Collections.emptyList();
1477 bitField0_ = (bitField0_ & ~0x00000002);
1480 convergenceInformationBuilder_.clear();
1494 if (convergenceInformationBuilder_ ==
null) {
1495 ensureConvergenceInformationIsMutable();
1496 convergenceInformation_.remove(index);
1499 convergenceInformationBuilder_.remove(index);
1514 return getConvergenceInformationFieldBuilder().getBuilder(index);
1527 if (convergenceInformationBuilder_ ==
null) {
1528 return convergenceInformation_.get(index); }
else {
1529 return convergenceInformationBuilder_.getMessageOrBuilder(index);
1541 public java.util.List<? extends com.google.ortools.pdlp.ConvergenceInformationOrBuilder>
1543 if (convergenceInformationBuilder_ !=
null) {
1544 return convergenceInformationBuilder_.getMessageOrBuilderList();
1546 return java.util.Collections.unmodifiableList(convergenceInformation_);
1559 return getConvergenceInformationFieldBuilder().addBuilder(
1560 com.google.ortools.pdlp.ConvergenceInformation.getDefaultInstance());
1573 return getConvergenceInformationFieldBuilder().addBuilder(
1574 index, com.google.ortools.pdlp.ConvergenceInformation.getDefaultInstance());
1585 public java.util.List<com.google.ortools.pdlp.ConvergenceInformation.Builder>
1587 return getConvergenceInformationFieldBuilder().getBuilderList();
1589 private com.google.protobuf.RepeatedFieldBuilder<
1590 com.google.ortools.pdlp.ConvergenceInformation, com.google.ortools.pdlp.ConvergenceInformation.Builder, com.google.ortools.pdlp.ConvergenceInformationOrBuilder>
1591 getConvergenceInformationFieldBuilder() {
1592 if (convergenceInformationBuilder_ ==
null) {
1593 convergenceInformationBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
1594 com.google.ortools.pdlp.ConvergenceInformation, com.google.ortools.pdlp.ConvergenceInformation.Builder, com.google.ortools.pdlp.ConvergenceInformationOrBuilder>(
1595 convergenceInformation_,
1596 ((bitField0_ & 0x00000002) != 0),
1597 getParentForChildren(),
1599 convergenceInformation_ =
null;
1601 return convergenceInformationBuilder_;
1604 private java.util.List<com.google.ortools.pdlp.InfeasibilityInformation> infeasibilityInformation_ =
1605 java.util.Collections.emptyList();
1606 private void ensureInfeasibilityInformationIsMutable() {
1607 if (!((bitField0_ & 0x00000004) != 0)) {
1608 infeasibilityInformation_ =
new java.util.ArrayList<com.google.ortools.pdlp.InfeasibilityInformation>(infeasibilityInformation_);
1609 bitField0_ |= 0x00000004;
1613 private com.google.protobuf.RepeatedFieldBuilder<
1614 com.google.ortools.pdlp.InfeasibilityInformation, com.google.ortools.pdlp.InfeasibilityInformation.Builder, com.google.ortools.pdlp.InfeasibilityInformationOrBuilder> infeasibilityInformationBuilder_;
1626 if (infeasibilityInformationBuilder_ ==
null) {
1627 return java.util.Collections.unmodifiableList(infeasibilityInformation_);
1629 return infeasibilityInformationBuilder_.getMessageList();
1642 if (infeasibilityInformationBuilder_ ==
null) {
1643 return infeasibilityInformation_.size();
1645 return infeasibilityInformationBuilder_.getCount();
1658 if (infeasibilityInformationBuilder_ ==
null) {
1659 return infeasibilityInformation_.get(index);
1661 return infeasibilityInformationBuilder_.getMessage(index);
1674 int index, com.google.ortools.pdlp.InfeasibilityInformation value) {
1675 if (infeasibilityInformationBuilder_ ==
null) {
1676 if (value ==
null) {
1677 throw new NullPointerException();
1679 ensureInfeasibilityInformationIsMutable();
1680 infeasibilityInformation_.set(index, value);
1683 infeasibilityInformationBuilder_.setMessage(index, value);
1697 int index, com.google.ortools.pdlp.InfeasibilityInformation.Builder builderForValue) {
1698 if (infeasibilityInformationBuilder_ ==
null) {
1699 ensureInfeasibilityInformationIsMutable();
1700 infeasibilityInformation_.set(index, builderForValue.build());
1703 infeasibilityInformationBuilder_.setMessage(index, builderForValue.build());
1717 if (infeasibilityInformationBuilder_ ==
null) {
1718 if (value ==
null) {
1719 throw new NullPointerException();
1721 ensureInfeasibilityInformationIsMutable();
1722 infeasibilityInformation_.add(value);
1725 infeasibilityInformationBuilder_.addMessage(value);
1739 int index, com.google.ortools.pdlp.InfeasibilityInformation value) {
1740 if (infeasibilityInformationBuilder_ ==
null) {
1741 if (value ==
null) {
1742 throw new NullPointerException();
1744 ensureInfeasibilityInformationIsMutable();
1745 infeasibilityInformation_.add(index, value);
1748 infeasibilityInformationBuilder_.addMessage(index, value);
1762 com.google.ortools.pdlp.InfeasibilityInformation.Builder builderForValue) {
1763 if (infeasibilityInformationBuilder_ ==
null) {
1764 ensureInfeasibilityInformationIsMutable();
1765 infeasibilityInformation_.add(builderForValue.build());
1768 infeasibilityInformationBuilder_.addMessage(builderForValue.build());
1782 int index, com.google.ortools.pdlp.InfeasibilityInformation.Builder builderForValue) {
1783 if (infeasibilityInformationBuilder_ ==
null) {
1784 ensureInfeasibilityInformationIsMutable();
1785 infeasibilityInformation_.add(index, builderForValue.build());
1788 infeasibilityInformationBuilder_.addMessage(index, builderForValue.build());
1802 java.lang.Iterable<? extends com.google.ortools.pdlp.InfeasibilityInformation> values) {
1803 if (infeasibilityInformationBuilder_ ==
null) {
1804 ensureInfeasibilityInformationIsMutable();
1805 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1806 values, infeasibilityInformation_);
1809 infeasibilityInformationBuilder_.addAllMessages(values);
1823 if (infeasibilityInformationBuilder_ ==
null) {
1824 infeasibilityInformation_ = java.util.Collections.emptyList();
1825 bitField0_ = (bitField0_ & ~0x00000004);
1828 infeasibilityInformationBuilder_.clear();
1842 if (infeasibilityInformationBuilder_ ==
null) {
1843 ensureInfeasibilityInformationIsMutable();
1844 infeasibilityInformation_.remove(index);
1847 infeasibilityInformationBuilder_.remove(index);
1862 return getInfeasibilityInformationFieldBuilder().getBuilder(index);
1875 if (infeasibilityInformationBuilder_ ==
null) {
1876 return infeasibilityInformation_.get(index); }
else {
1877 return infeasibilityInformationBuilder_.getMessageOrBuilder(index);
1889 public java.util.List<? extends com.google.ortools.pdlp.InfeasibilityInformationOrBuilder>
1891 if (infeasibilityInformationBuilder_ !=
null) {
1892 return infeasibilityInformationBuilder_.getMessageOrBuilderList();
1894 return java.util.Collections.unmodifiableList(infeasibilityInformation_);
1907 return getInfeasibilityInformationFieldBuilder().addBuilder(
1908 com.google.ortools.pdlp.InfeasibilityInformation.getDefaultInstance());
1921 return getInfeasibilityInformationFieldBuilder().addBuilder(
1922 index, com.google.ortools.pdlp.InfeasibilityInformation.getDefaultInstance());
1933 public java.util.List<com.google.ortools.pdlp.InfeasibilityInformation.Builder>
1935 return getInfeasibilityInformationFieldBuilder().getBuilderList();
1937 private com.google.protobuf.RepeatedFieldBuilder<
1938 com.google.ortools.pdlp.InfeasibilityInformation, com.google.ortools.pdlp.InfeasibilityInformation.Builder, com.google.ortools.pdlp.InfeasibilityInformationOrBuilder>
1939 getInfeasibilityInformationFieldBuilder() {
1940 if (infeasibilityInformationBuilder_ ==
null) {
1941 infeasibilityInformationBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
1942 com.google.ortools.pdlp.InfeasibilityInformation, com.google.ortools.pdlp.InfeasibilityInformation.Builder, com.google.ortools.pdlp.InfeasibilityInformationOrBuilder>(
1943 infeasibilityInformation_,
1944 ((bitField0_ & 0x00000004) != 0),
1945 getParentForChildren(),
1947 infeasibilityInformation_ =
null;
1949 return infeasibilityInformationBuilder_;
1952 private java.util.List<com.google.ortools.pdlp.PointMetadata> pointMetadata_ =
1953 java.util.Collections.emptyList();
1954 private void ensurePointMetadataIsMutable() {
1955 if (!((bitField0_ & 0x00000008) != 0)) {
1956 pointMetadata_ =
new java.util.ArrayList<com.google.ortools.pdlp.PointMetadata>(pointMetadata_);
1957 bitField0_ |= 0x00000008;
1961 private com.google.protobuf.RepeatedFieldBuilder<
1962 com.google.ortools.pdlp.PointMetadata, com.google.ortools.pdlp.PointMetadata.Builder, com.google.ortools.pdlp.PointMetadataOrBuilder> pointMetadataBuilder_;
1972 if (pointMetadataBuilder_ ==
null) {
1973 return java.util.Collections.unmodifiableList(pointMetadata_);
1975 return pointMetadataBuilder_.getMessageList();
1986 if (pointMetadataBuilder_ ==
null) {
1987 return pointMetadata_.size();
1989 return pointMetadataBuilder_.getCount();
2000 if (pointMetadataBuilder_ ==
null) {
2001 return pointMetadata_.get(index);
2003 return pointMetadataBuilder_.getMessage(index);
2014 int index, com.google.ortools.pdlp.PointMetadata value) {
2015 if (pointMetadataBuilder_ ==
null) {
2016 if (value ==
null) {
2017 throw new NullPointerException();
2019 ensurePointMetadataIsMutable();
2020 pointMetadata_.set(index, value);
2023 pointMetadataBuilder_.setMessage(index, value);
2035 int index, com.google.ortools.pdlp.PointMetadata.Builder builderForValue) {
2036 if (pointMetadataBuilder_ ==
null) {
2037 ensurePointMetadataIsMutable();
2038 pointMetadata_.set(index, builderForValue.build());
2041 pointMetadataBuilder_.setMessage(index, builderForValue.build());
2053 if (pointMetadataBuilder_ ==
null) {
2054 if (value ==
null) {
2055 throw new NullPointerException();
2057 ensurePointMetadataIsMutable();
2058 pointMetadata_.add(value);
2061 pointMetadataBuilder_.addMessage(value);
2073 int index, com.google.ortools.pdlp.PointMetadata value) {
2074 if (pointMetadataBuilder_ ==
null) {
2075 if (value ==
null) {
2076 throw new NullPointerException();
2078 ensurePointMetadataIsMutable();
2079 pointMetadata_.add(index, value);
2082 pointMetadataBuilder_.addMessage(index, value);
2094 com.google.ortools.pdlp.PointMetadata.Builder builderForValue) {
2095 if (pointMetadataBuilder_ ==
null) {
2096 ensurePointMetadataIsMutable();
2097 pointMetadata_.add(builderForValue.build());
2100 pointMetadataBuilder_.addMessage(builderForValue.build());
2112 int index, com.google.ortools.pdlp.PointMetadata.Builder builderForValue) {
2113 if (pointMetadataBuilder_ ==
null) {
2114 ensurePointMetadataIsMutable();
2115 pointMetadata_.add(index, builderForValue.build());
2118 pointMetadataBuilder_.addMessage(index, builderForValue.build());
2130 java.lang.Iterable<? extends com.google.ortools.pdlp.PointMetadata> values) {
2131 if (pointMetadataBuilder_ ==
null) {
2132 ensurePointMetadataIsMutable();
2133 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2134 values, pointMetadata_);
2137 pointMetadataBuilder_.addAllMessages(values);
2149 if (pointMetadataBuilder_ ==
null) {
2150 pointMetadata_ = java.util.Collections.emptyList();
2151 bitField0_ = (bitField0_ & ~0x00000008);
2154 pointMetadataBuilder_.clear();
2166 if (pointMetadataBuilder_ ==
null) {
2167 ensurePointMetadataIsMutable();
2168 pointMetadata_.remove(index);
2171 pointMetadataBuilder_.remove(index);
2184 return getPointMetadataFieldBuilder().getBuilder(index);
2195 if (pointMetadataBuilder_ ==
null) {
2196 return pointMetadata_.get(index); }
else {
2197 return pointMetadataBuilder_.getMessageOrBuilder(index);
2207 public java.util.List<? extends com.google.ortools.pdlp.PointMetadataOrBuilder>
2209 if (pointMetadataBuilder_ !=
null) {
2210 return pointMetadataBuilder_.getMessageOrBuilderList();
2212 return java.util.Collections.unmodifiableList(pointMetadata_);
2223 return getPointMetadataFieldBuilder().addBuilder(
2224 com.google.ortools.pdlp.PointMetadata.getDefaultInstance());
2235 return getPointMetadataFieldBuilder().addBuilder(
2236 index, com.google.ortools.pdlp.PointMetadata.getDefaultInstance());
2245 public java.util.List<com.google.ortools.pdlp.PointMetadata.Builder>
2247 return getPointMetadataFieldBuilder().getBuilderList();
2249 private com.google.protobuf.RepeatedFieldBuilder<
2250 com.google.ortools.pdlp.PointMetadata, com.google.ortools.pdlp.PointMetadata.Builder, com.google.ortools.pdlp.PointMetadataOrBuilder>
2251 getPointMetadataFieldBuilder() {
2252 if (pointMetadataBuilder_ ==
null) {
2253 pointMetadataBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
2254 com.google.ortools.pdlp.PointMetadata, com.google.ortools.pdlp.PointMetadata.Builder, com.google.ortools.pdlp.PointMetadataOrBuilder>(
2256 ((bitField0_ & 0x00000008) != 0),
2257 getParentForChildren(),
2259 pointMetadata_ =
null;
2261 return pointMetadataBuilder_;
2264 private double cumulativeKktMatrixPasses_ ;
2283 return ((bitField0_ & 0x00000010) != 0);
2303 return cumulativeKktMatrixPasses_;
2324 cumulativeKktMatrixPasses_ = value;
2325 bitField0_ |= 0x00000010;
2346 bitField0_ = (bitField0_ & ~0x00000010);
2347 cumulativeKktMatrixPasses_ = 0D;
2352 private int cumulativeRejectedSteps_ ;
2364 return ((bitField0_ & 0x00000020) != 0);
2377 return cumulativeRejectedSteps_;
2391 cumulativeRejectedSteps_ = value;
2392 bitField0_ |= 0x00000020;
2406 bitField0_ = (bitField0_ & ~0x00000020);
2407 cumulativeRejectedSteps_ = 0;
2412 private double cumulativeTimeSec_ ;
2424 return ((bitField0_ & 0x00000040) != 0);
2437 return cumulativeTimeSec_;
2451 cumulativeTimeSec_ = value;
2452 bitField0_ |= 0x00000040;
2466 bitField0_ = (bitField0_ & ~0x00000040);
2467 cumulativeTimeSec_ = 0D;
2472 private int restartUsed_ = 0;
2483 return ((bitField0_ & 0x00000080) != 0);
2510 if (value ==
null) {
2511 throw new NullPointerException();
2513 bitField0_ |= 0x00000080;
2514 restartUsed_ = value.getNumber();
2528 bitField0_ = (bitField0_ & ~0x00000080);
2534 private double stepSize_ ;
2547 return ((bitField0_ & 0x00000100) != 0);
2577 bitField0_ |= 0x00000100;
2592 bitField0_ = (bitField0_ & ~0x00000100);
2598 private double primalWeight_ ;
2610 return ((bitField0_ & 0x00000200) != 0);
2623 return primalWeight_;
2637 primalWeight_ = value;
2638 bitField0_ |= 0x00000200;
2652 bitField0_ = (bitField0_ & ~0x00000200);
2664 DEFAULT_INSTANCE =
new com.google.ortools.pdlp.IterationStats();
2668 return DEFAULT_INSTANCE;
2672 PARSER =
new com.google.protobuf.AbstractParser<
IterationStats>() {
2675 com.google.protobuf.CodedInputStream input,
2676 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2677 throws com.google.protobuf.InvalidProtocolBufferException {
2680 builder.mergeFrom(input, extensionRegistry);
2681 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
2682 throw e.setUnfinishedMessage(builder.buildPartial());
2683 }
catch (com.google.protobuf.UninitializedMessageException e) {
2684 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2685 }
catch (java.io.IOException e) {
2686 throw new com.google.protobuf.InvalidProtocolBufferException(e)
2687 .setUnfinishedMessage(builder.buildPartial());
2689 return builder.buildPartial();
2693 public static com.google.protobuf.Parser<IterationStats>
parser() {
2704 return DEFAULT_INSTANCE;