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 majorIterationFrequency_ = 64;
44 terminationCheckFrequency_ = 64;
46 primalWeightUpdateSmoothing_ = 0.5D;
47 lInfRuizIterations_ = 5;
48 l2NormRescaling_ =
true;
49 sufficientReductionForRestart_ = 0.1D;
50 necessaryReductionForRestart_ = 0.9D;
52 initialStepSizeScaling_ = 1D;
53 randomProjectionSeeds_ = emptyIntList();
54 infiniteConstraintBoundThreshold_ = Double.POSITIVE_INFINITY;
55 handleSomePrimalGradientsOnFiniteBoundsAsResiduals_ =
true;
56 diagonalQpTrustRegionSolverTolerance_ = 1e-08D;
59 public static final com.google.protobuf.Descriptors.Descriptor
61 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_PrimalDualHybridGradientParams_descriptor;
65 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
67 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_PrimalDualHybridGradientParams_fieldAccessorTable
68 .ensureFieldAccessorsInitialized(
69 com.google.ortools.pdlp.PrimalDualHybridGradientParams.class, com.google.ortools.pdlp.PrimalDualHybridGradientParams.Builder.class);
76 implements com.google.protobuf.ProtocolMessageEnum {
127 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
128 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
138 public static final int RESTART_STRATEGY_UNSPECIFIED_VALUE = 0;
147 public static final int NO_RESTARTS_VALUE = 1;
156 public static final int EVERY_MAJOR_ITERATION_VALUE = 2;
169 public static final int ADAPTIVE_HEURISTIC_VALUE = 3;
181 public static final int ADAPTIVE_DISTANCE_BASED_VALUE = 4;
193 @java.lang.Deprecated
195 return forNumber(value);
204 case 0:
return RESTART_STRATEGY_UNSPECIFIED;
205 case 1:
return NO_RESTARTS;
206 case 2:
return EVERY_MAJOR_ITERATION;
207 case 3:
return ADAPTIVE_HEURISTIC;
208 case 4:
return ADAPTIVE_DISTANCE_BASED;
209 default:
return null;
213 public static com.google.protobuf.Internal.EnumLiteMap<
RestartStrategy>
215 return internalValueMap;
217 private static final com.google.protobuf.Internal.EnumLiteMap<
225 public final com.google.protobuf.Descriptors.EnumValueDescriptor
229 public final com.google.protobuf.Descriptors.EnumDescriptor
233 public static final com.google.protobuf.Descriptors.EnumDescriptor
235 return com.google.ortools.pdlp.PrimalDualHybridGradientParams.getDescriptor().getEnumTypes().get(0);
241 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
243 throw new java.lang.IllegalArgumentException(
244 "EnumValueDescriptor is not for this type.");
246 return VALUES[desc.getIndex()];
249 private final int value;
262 implements com.google.protobuf.ProtocolMessageEnum {
301 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
302 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
312 public static final int LINESEARCH_RULE_UNSPECIFIED_VALUE = 0;
323 public static final int ADAPTIVE_LINESEARCH_RULE_VALUE = 1;
334 public static final int MALITSKY_POCK_LINESEARCH_RULE_VALUE = 2;
343 public static final int CONSTANT_STEP_SIZE_RULE_VALUE = 3;
355 @java.lang.Deprecated
357 return forNumber(value);
366 case 0:
return LINESEARCH_RULE_UNSPECIFIED;
367 case 1:
return ADAPTIVE_LINESEARCH_RULE;
368 case 2:
return MALITSKY_POCK_LINESEARCH_RULE;
369 case 3:
return CONSTANT_STEP_SIZE_RULE;
370 default:
return null;
374 public static com.google.protobuf.Internal.EnumLiteMap<
LinesearchRule>
376 return internalValueMap;
378 private static final com.google.protobuf.Internal.EnumLiteMap<
386 public final com.google.protobuf.Descriptors.EnumValueDescriptor
390 public final com.google.protobuf.Descriptors.EnumDescriptor
394 public static final com.google.protobuf.Descriptors.EnumDescriptor
396 return com.google.ortools.pdlp.PrimalDualHybridGradientParams.getDescriptor().getEnumTypes().get(1);
402 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
404 throw new java.lang.IllegalArgumentException(
405 "EnumValueDescriptor is not for this type.");
407 return VALUES[desc.getIndex()];
410 private final int value;
421 com.google.protobuf.MessageOrBuilder {
490 com.google.protobuf.GeneratedMessage implements
493 private static final long serialVersionUID = 0L;
495 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
496 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
504 private PresolveOptions(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
510 public static final com.google.protobuf.Descriptors.Descriptor
512 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_PrimalDualHybridGradientParams_PresolveOptions_descriptor;
516 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
518 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_PrimalDualHybridGradientParams_PresolveOptions_fieldAccessorTable
519 .ensureFieldAccessorsInitialized(
520 com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.class, com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.Builder.class);
523 private int bitField0_;
525 private boolean useGlop_ =
false;
543 return ((bitField0_ & 0x00000001) != 0);
578 return ((bitField0_ & 0x00000002) != 0);
591 return glopParameters_ ==
null ? com.google.ortools.glop.GlopParameters.getDefaultInstance() : glopParameters_;
603 return glopParameters_ ==
null ? com.google.ortools.glop.GlopParameters.getDefaultInstance() : glopParameters_;
606 private byte memoizedIsInitialized = -1;
613 memoizedIsInitialized = 1;
618 public void writeTo(com.google.protobuf.CodedOutputStream output)
619 throws java.io.IOException {
620 if (((bitField0_ & 0x00000001) != 0)) {
621 output.writeBool(1, useGlop_);
623 if (((bitField0_ & 0x00000002) != 0)) {
626 getUnknownFields().writeTo(output);
631 int size = memoizedSize;
632 if (size != -1)
return size;
635 if (((bitField0_ & 0x00000001) != 0)) {
636 size += com.google.protobuf.CodedOutputStream
637 .computeBoolSize(1, useGlop_);
639 if (((bitField0_ & 0x00000002) != 0)) {
640 size += com.google.protobuf.CodedOutputStream
643 size += getUnknownFields().getSerializedSize();
649 public boolean equals(
final java.lang.Object obj) {
653 if (!(obj instanceof com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions)) {
654 return super.equals(obj);
668 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
674 if (memoizedHashCode != 0) {
675 return memoizedHashCode;
681 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
688 hash = (29 * hash) + getUnknownFields().hashCode();
689 memoizedHashCode = hash;
694 java.nio.ByteBuffer data)
695 throws com.google.protobuf.InvalidProtocolBufferException {
696 return PARSER.parseFrom(data);
699 java.nio.ByteBuffer data,
700 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
701 throws com.google.protobuf.InvalidProtocolBufferException {
702 return PARSER.parseFrom(data, extensionRegistry);
705 com.google.protobuf.ByteString data)
706 throws com.google.protobuf.InvalidProtocolBufferException {
707 return PARSER.parseFrom(data);
710 com.google.protobuf.ByteString data,
711 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
712 throws com.google.protobuf.InvalidProtocolBufferException {
713 return PARSER.parseFrom(data, extensionRegistry);
716 throws com.google.protobuf.InvalidProtocolBufferException {
717 return PARSER.parseFrom(data);
721 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
722 throws com.google.protobuf.InvalidProtocolBufferException {
723 return PARSER.parseFrom(data, extensionRegistry);
726 throws java.io.IOException {
727 return com.google.protobuf.GeneratedMessage
728 .parseWithIOException(PARSER, input);
731 java.io.InputStream input,
732 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
733 throws java.io.IOException {
734 return com.google.protobuf.GeneratedMessage
735 .parseWithIOException(PARSER, input, extensionRegistry);
739 throws java.io.IOException {
740 return com.google.protobuf.GeneratedMessage
741 .parseDelimitedWithIOException(PARSER, input);
745 java.io.InputStream input,
746 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
747 throws java.io.IOException {
748 return com.google.protobuf.GeneratedMessage
749 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
752 com.google.protobuf.CodedInputStream input)
753 throws java.io.IOException {
754 return com.google.protobuf.GeneratedMessage
755 .parseWithIOException(PARSER, input);
758 com.google.protobuf.CodedInputStream input,
759 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
760 throws java.io.IOException {
761 return com.google.protobuf.GeneratedMessage
762 .parseWithIOException(PARSER, input, extensionRegistry);
770 public static Builder newBuilder(com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions prototype) {
775 return this == DEFAULT_INSTANCE
781 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
789 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
792 public static final com.google.protobuf.Descriptors.Descriptor
794 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_PrimalDualHybridGradientParams_PresolveOptions_descriptor;
798 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
800 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_PrimalDualHybridGradientParams_PresolveOptions_fieldAccessorTable
801 .ensureFieldAccessorsInitialized(
802 com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.class, com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.Builder.class);
807 maybeForceBuilderInitialization();
811 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
813 maybeForceBuilderInitialization();
815 private void maybeForceBuilderInitialization() {
816 if (com.google.protobuf.GeneratedMessage
817 .alwaysUseFieldBuilders) {
818 getGlopParametersFieldBuilder();
826 glopParameters_ =
null;
827 if (glopParametersBuilder_ !=
null) {
828 glopParametersBuilder_.dispose();
829 glopParametersBuilder_ =
null;
835 public com.google.protobuf.Descriptors.Descriptor
837 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_PrimalDualHybridGradientParams_PresolveOptions_descriptor;
842 return com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.getDefaultInstance();
849 throw newUninitializedMessageException(result);
857 if (bitField0_ != 0) { buildPartial0(result); }
862 private void buildPartial0(com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions result) {
863 int from_bitField0_ = bitField0_;
864 int to_bitField0_ = 0;
865 if (((from_bitField0_ & 0x00000001) != 0)) {
866 result.useGlop_ = useGlop_;
867 to_bitField0_ |= 0x00000001;
869 if (((from_bitField0_ & 0x00000002) != 0)) {
870 result.glopParameters_ = glopParametersBuilder_ ==
null
872 : glopParametersBuilder_.build();
873 to_bitField0_ |= 0x00000002;
875 result.bitField0_ |= to_bitField0_;
880 if (other instanceof com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions) {
881 return mergeFrom((com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions)other);
883 super.mergeFrom(other);
888 public Builder mergeFrom(com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions other) {
889 if (other == com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.getDefaultInstance())
return this;
890 if (other.hasUseGlop()) {
893 if (other.hasGlopParameters()) {
896 this.mergeUnknownFields(other.getUnknownFields());
908 com.google.protobuf.CodedInputStream input,
909 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
910 throws java.io.IOException {
911 if (extensionRegistry ==
null) {
912 throw new java.lang.NullPointerException();
915 boolean done =
false;
917 int tag = input.readTag();
923 useGlop_ = input.readBool();
924 bitField0_ |= 0x00000001;
929 getGlopParametersFieldBuilder().getBuilder(),
931 bitField0_ |= 0x00000002;
935 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
942 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
943 throw e.unwrapIOException();
949 private int bitField0_;
951 private boolean useGlop_ ;
969 return ((bitField0_ & 0x00000001) != 0);
1009 bitField0_ |= 0x00000001;
1029 bitField0_ = (bitField0_ & ~0x00000001);
1036 private com.google.protobuf.SingleFieldBuilder<
1037 com.google.ortools.glop.GlopParameters, com.google.ortools.glop.GlopParameters.Builder, com.google.ortools.glop.GlopParametersOrBuilder> glopParametersBuilder_;
1048 return ((bitField0_ & 0x00000002) != 0);
1060 if (glopParametersBuilder_ ==
null) {
1061 return glopParameters_ ==
null ? com.google.ortools.glop.GlopParameters.getDefaultInstance() : glopParameters_;
1063 return glopParametersBuilder_.getMessage();
1075 if (glopParametersBuilder_ ==
null) {
1076 if (value ==
null) {
1077 throw new NullPointerException();
1079 glopParameters_ = value;
1081 glopParametersBuilder_.setMessage(value);
1083 bitField0_ |= 0x00000002;
1096 com.google.ortools.glop.GlopParameters.Builder builderForValue) {
1097 if (glopParametersBuilder_ ==
null) {
1098 glopParameters_ = builderForValue.build();
1100 glopParametersBuilder_.setMessage(builderForValue.build());
1102 bitField0_ |= 0x00000002;
1115 if (glopParametersBuilder_ ==
null) {
1116 if (((bitField0_ & 0x00000002) != 0) &&
1117 glopParameters_ !=
null &&
1118 glopParameters_ != com.google.ortools.glop.GlopParameters.getDefaultInstance()) {
1121 glopParameters_ = value;
1124 glopParametersBuilder_.mergeFrom(value);
1126 if (glopParameters_ !=
null) {
1127 bitField0_ |= 0x00000002;
1141 bitField0_ = (bitField0_ & ~0x00000002);
1142 glopParameters_ =
null;
1143 if (glopParametersBuilder_ !=
null) {
1144 glopParametersBuilder_.dispose();
1145 glopParametersBuilder_ =
null;
1159 bitField0_ |= 0x00000002;
1161 return getGlopParametersFieldBuilder().getBuilder();
1172 if (glopParametersBuilder_ !=
null) {
1173 return glopParametersBuilder_.getMessageOrBuilder();
1175 return glopParameters_ ==
null ?
1176 com.google.ortools.glop.GlopParameters.getDefaultInstance() : glopParameters_;
1187 private com.google.protobuf.SingleFieldBuilder<
1188 com.google.ortools.glop.GlopParameters, com.google.ortools.glop.GlopParameters.Builder, com.google.ortools.glop.GlopParametersOrBuilder>
1189 getGlopParametersFieldBuilder() {
1190 if (glopParametersBuilder_ ==
null) {
1191 glopParametersBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
1192 com.google.ortools.glop.GlopParameters, com.google.ortools.glop.GlopParameters.Builder, com.google.ortools.glop.GlopParametersOrBuilder>(
1194 getParentForChildren(),
1196 glopParameters_ =
null;
1198 return glopParametersBuilder_;
1207 DEFAULT_INSTANCE =
new com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions();
1211 return DEFAULT_INSTANCE;
1218 com.google.protobuf.CodedInputStream input,
1219 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1220 throws com.google.protobuf.InvalidProtocolBufferException {
1223 builder.
mergeFrom(input, extensionRegistry);
1224 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1226 }
catch (com.google.protobuf.UninitializedMessageException e) {
1227 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
1228 }
catch (java.io.IOException e) {
1229 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1247 return DEFAULT_INSTANCE;
1252 private int bitField0_;
1261 return ((bitField0_ & 0x00000001) != 0);
1269 return terminationCriteria_ ==
null ? com.google.ortools.pdlp.TerminationCriteria.getDefaultInstance() : terminationCriteria_;
1276 return terminationCriteria_ ==
null ? com.google.ortools.pdlp.TerminationCriteria.getDefaultInstance() : terminationCriteria_;
1280 private int numThreads_ = 1;
1294 return ((bitField0_ & 0x00000002) != 0);
1313 private int numShards_ = 0;
1332 return ((bitField0_ & 0x00000004) != 0);
1356 private boolean recordIterationStats_ =
false;
1370 return ((bitField0_ & 0x00000008) != 0);
1385 return recordIterationStats_;
1389 private int verbosityLevel_ = 0;
1410 return ((bitField0_ & 0x00000010) != 0);
1432 return verbosityLevel_;
1436 private double logIntervalSeconds_ = 0D;
1451 return ((bitField0_ & 0x00000020) != 0);
1467 return logIntervalSeconds_;
1471 private int majorIterationFrequency_ = 64;
1487 return ((bitField0_ & 0x00000040) != 0);
1504 return majorIterationFrequency_;
1508 private int terminationCheckFrequency_ = 64;
1521 return ((bitField0_ & 0x00000080) != 0);
1535 return terminationCheckFrequency_;
1539 private int restartStrategy_ = 3;
1551 return ((bitField0_ & 0x00000100) != 0);
1565 return result ==
null ? com.google.ortools.pdlp.PrimalDualHybridGradientParams.RestartStrategy.ADAPTIVE_HEURISTIC : result;
1569 private double primalWeightUpdateSmoothing_ = 0.5D;
1587 return ((bitField0_ & 0x00000200) != 0);
1606 return primalWeightUpdateSmoothing_;
1610 private double initialPrimalWeight_ = 0D;
1627 return ((bitField0_ & 0x00000400) != 0);
1645 return initialPrimalWeight_;
1656 return ((bitField0_ & 0x00000800) != 0);
1664 return presolveOptions_ ==
null ? com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.getDefaultInstance() : presolveOptions_;
1671 return presolveOptions_ ==
null ? com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.getDefaultInstance() : presolveOptions_;
1675 private int lInfRuizIterations_ = 5;
1688 return ((bitField0_ & 0x00001000) != 0);
1702 return lInfRuizIterations_;
1706 private boolean l2NormRescaling_ =
true;
1718 return ((bitField0_ & 0x00002000) != 0);
1731 return l2NormRescaling_;
1735 private double sufficientReductionForRestart_ = 0.1D;
1748 return ((bitField0_ & 0x00004000) != 0);
1762 return sufficientReductionForRestart_;
1766 private double necessaryReductionForRestart_ = 0.9D;
1781 return ((bitField0_ & 0x00008000) != 0);
1797 return necessaryReductionForRestart_;
1801 private int linesearchRule_ = 1;
1811 return ((bitField0_ & 0x00010000) != 0);
1823 return result ==
null ? com.google.ortools.pdlp.PrimalDualHybridGradientParams.LinesearchRule.ADAPTIVE_LINESEARCH_RULE : result;
1834 return ((bitField0_ & 0x00020000) != 0);
1842 return adaptiveLinesearchParameters_ ==
null ? com.google.ortools.pdlp.AdaptiveLinesearchParams.getDefaultInstance() : adaptiveLinesearchParameters_;
1849 return adaptiveLinesearchParameters_ ==
null ? com.google.ortools.pdlp.AdaptiveLinesearchParams.getDefaultInstance() : adaptiveLinesearchParameters_;
1860 return ((bitField0_ & 0x00040000) != 0);
1868 return malitskyPockParameters_ ==
null ? com.google.ortools.pdlp.MalitskyPockParams.getDefaultInstance() : malitskyPockParameters_;
1875 return malitskyPockParameters_ ==
null ? com.google.ortools.pdlp.MalitskyPockParams.getDefaultInstance() : malitskyPockParameters_;
1879 private double initialStepSizeScaling_ = 1D;
1891 return ((bitField0_ & 0x00080000) != 0);
1904 return initialStepSizeScaling_;
1908 @SuppressWarnings(
"serial")
1909 private com.google.protobuf.Internal.IntList randomProjectionSeeds_ =
1925 public java.util.List<java.lang.Integer>
1927 return randomProjectionSeeds_;
1943 return randomProjectionSeeds_.size();
1960 return randomProjectionSeeds_.getInt(index);
1962 private int randomProjectionSeedsMemoizedSerializedSize = -1;
1965 private double infiniteConstraintBoundThreshold_ = Double.POSITIVE_INFINITY;
1981 return ((bitField0_ & 0x00100000) != 0);
1998 return infiniteConstraintBoundThreshold_;
2002 private boolean handleSomePrimalGradientsOnFiniteBoundsAsResiduals_ =
true;
2015 return ((bitField0_ & 0x00200000) != 0);
2029 return handleSomePrimalGradientsOnFiniteBoundsAsResiduals_;
2033 private boolean useDiagonalQpTrustRegionSolver_ =
false;
2049 return ((bitField0_ & 0x00400000) != 0);
2066 return useDiagonalQpTrustRegionSolver_;
2070 private double diagonalQpTrustRegionSolverTolerance_ = 1e-08D;
2085 return ((bitField0_ & 0x00800000) != 0);
2101 return diagonalQpTrustRegionSolverTolerance_;
2105 private boolean useFeasibilityPolishing_ =
false;
2141 return ((bitField0_ & 0x01000000) != 0);
2178 return useFeasibilityPolishing_;
2181 private byte memoizedIsInitialized = -1;
2188 memoizedIsInitialized = 1;
2193 public void writeTo(com.google.protobuf.CodedOutputStream output)
2194 throws java.io.IOException {
2196 if (((bitField0_ & 0x00000001) != 0)) {
2199 if (((bitField0_ & 0x00000002) != 0)) {
2200 output.writeInt32(2, numThreads_);
2202 if (((bitField0_ & 0x00000008) != 0)) {
2203 output.writeBool(3, recordIterationStats_);
2205 if (((bitField0_ & 0x00000040) != 0)) {
2206 output.writeInt32(4, majorIterationFrequency_);
2208 if (((bitField0_ & 0x00000080) != 0)) {
2209 output.writeInt32(5, terminationCheckFrequency_);
2211 if (((bitField0_ & 0x00000100) != 0)) {
2212 output.writeEnum(6, restartStrategy_);
2214 if (((bitField0_ & 0x00000200) != 0)) {
2215 output.writeDouble(7, primalWeightUpdateSmoothing_);
2217 if (((bitField0_ & 0x00000400) != 0)) {
2218 output.writeDouble(8, initialPrimalWeight_);
2220 if (((bitField0_ & 0x00001000) != 0)) {
2221 output.writeInt32(9, lInfRuizIterations_);
2223 if (((bitField0_ & 0x00002000) != 0)) {
2224 output.writeBool(10, l2NormRescaling_);
2226 if (((bitField0_ & 0x00004000) != 0)) {
2227 output.writeDouble(11, sufficientReductionForRestart_);
2229 if (((bitField0_ & 0x00010000) != 0)) {
2230 output.writeEnum(12, linesearchRule_);
2232 if (((bitField0_ & 0x00000800) != 0)) {
2235 if (((bitField0_ & 0x00008000) != 0)) {
2236 output.writeDouble(17, necessaryReductionForRestart_);
2238 if (((bitField0_ & 0x00020000) != 0)) {
2241 if (((bitField0_ & 0x00040000) != 0)) {
2244 if (((bitField0_ & 0x00100000) != 0)) {
2245 output.writeDouble(22, infiniteConstraintBoundThreshold_);
2247 if (((bitField0_ & 0x00400000) != 0)) {
2248 output.writeBool(23, useDiagonalQpTrustRegionSolver_);
2250 if (((bitField0_ & 0x00800000) != 0)) {
2251 output.writeDouble(24, diagonalQpTrustRegionSolverTolerance_);
2253 if (((bitField0_ & 0x00080000) != 0)) {
2254 output.writeDouble(25, initialStepSizeScaling_);
2256 if (((bitField0_ & 0x00000010) != 0)) {
2257 output.writeInt32(26, verbosityLevel_);
2259 if (((bitField0_ & 0x00000004) != 0)) {
2260 output.writeInt32(27, numShards_);
2263 output.writeUInt32NoTag(226);
2264 output.writeUInt32NoTag(randomProjectionSeedsMemoizedSerializedSize);
2266 for (
int i = 0; i < randomProjectionSeeds_.size(); i++) {
2267 output.writeInt32NoTag(randomProjectionSeeds_.getInt(i));
2269 if (((bitField0_ & 0x00200000) != 0)) {
2270 output.writeBool(29, handleSomePrimalGradientsOnFiniteBoundsAsResiduals_);
2272 if (((bitField0_ & 0x01000000) != 0)) {
2273 output.writeBool(30, useFeasibilityPolishing_);
2275 if (((bitField0_ & 0x00000020) != 0)) {
2276 output.writeDouble(31, logIntervalSeconds_);
2278 getUnknownFields().writeTo(output);
2283 int size = memoizedSize;
2284 if (size != -1)
return size;
2287 if (((bitField0_ & 0x00000001) != 0)) {
2288 size += com.google.protobuf.CodedOutputStream
2291 if (((bitField0_ & 0x00000002) != 0)) {
2292 size += com.google.protobuf.CodedOutputStream
2293 .computeInt32Size(2, numThreads_);
2295 if (((bitField0_ & 0x00000008) != 0)) {
2296 size += com.google.protobuf.CodedOutputStream
2297 .computeBoolSize(3, recordIterationStats_);
2299 if (((bitField0_ & 0x00000040) != 0)) {
2300 size += com.google.protobuf.CodedOutputStream
2301 .computeInt32Size(4, majorIterationFrequency_);
2303 if (((bitField0_ & 0x00000080) != 0)) {
2304 size += com.google.protobuf.CodedOutputStream
2305 .computeInt32Size(5, terminationCheckFrequency_);
2307 if (((bitField0_ & 0x00000100) != 0)) {
2308 size += com.google.protobuf.CodedOutputStream
2309 .computeEnumSize(6, restartStrategy_);
2311 if (((bitField0_ & 0x00000200) != 0)) {
2312 size += com.google.protobuf.CodedOutputStream
2313 .computeDoubleSize(7, primalWeightUpdateSmoothing_);
2315 if (((bitField0_ & 0x00000400) != 0)) {
2316 size += com.google.protobuf.CodedOutputStream
2317 .computeDoubleSize(8, initialPrimalWeight_);
2319 if (((bitField0_ & 0x00001000) != 0)) {
2320 size += com.google.protobuf.CodedOutputStream
2321 .computeInt32Size(9, lInfRuizIterations_);
2323 if (((bitField0_ & 0x00002000) != 0)) {
2324 size += com.google.protobuf.CodedOutputStream
2325 .computeBoolSize(10, l2NormRescaling_);
2327 if (((bitField0_ & 0x00004000) != 0)) {
2328 size += com.google.protobuf.CodedOutputStream
2329 .computeDoubleSize(11, sufficientReductionForRestart_);
2331 if (((bitField0_ & 0x00010000) != 0)) {
2332 size += com.google.protobuf.CodedOutputStream
2333 .computeEnumSize(12, linesearchRule_);
2335 if (((bitField0_ & 0x00000800) != 0)) {
2336 size += com.google.protobuf.CodedOutputStream
2339 if (((bitField0_ & 0x00008000) != 0)) {
2340 size += com.google.protobuf.CodedOutputStream
2341 .computeDoubleSize(17, necessaryReductionForRestart_);
2343 if (((bitField0_ & 0x00020000) != 0)) {
2344 size += com.google.protobuf.CodedOutputStream
2347 if (((bitField0_ & 0x00040000) != 0)) {
2348 size += com.google.protobuf.CodedOutputStream
2351 if (((bitField0_ & 0x00100000) != 0)) {
2352 size += com.google.protobuf.CodedOutputStream
2353 .computeDoubleSize(22, infiniteConstraintBoundThreshold_);
2355 if (((bitField0_ & 0x00400000) != 0)) {
2356 size += com.google.protobuf.CodedOutputStream
2357 .computeBoolSize(23, useDiagonalQpTrustRegionSolver_);
2359 if (((bitField0_ & 0x00800000) != 0)) {
2360 size += com.google.protobuf.CodedOutputStream
2361 .computeDoubleSize(24, diagonalQpTrustRegionSolverTolerance_);
2363 if (((bitField0_ & 0x00080000) != 0)) {
2364 size += com.google.protobuf.CodedOutputStream
2365 .computeDoubleSize(25, initialStepSizeScaling_);
2367 if (((bitField0_ & 0x00000010) != 0)) {
2368 size += com.google.protobuf.CodedOutputStream
2369 .computeInt32Size(26, verbosityLevel_);
2371 if (((bitField0_ & 0x00000004) != 0)) {
2372 size += com.google.protobuf.CodedOutputStream
2373 .computeInt32Size(27, numShards_);
2377 for (
int i = 0; i < randomProjectionSeeds_.size(); i++) {
2378 dataSize += com.google.protobuf.CodedOutputStream
2379 .computeInt32SizeNoTag(randomProjectionSeeds_.getInt(i));
2384 size += com.google.protobuf.CodedOutputStream
2385 .computeInt32SizeNoTag(dataSize);
2387 randomProjectionSeedsMemoizedSerializedSize = dataSize;
2389 if (((bitField0_ & 0x00200000) != 0)) {
2390 size += com.google.protobuf.CodedOutputStream
2391 .computeBoolSize(29, handleSomePrimalGradientsOnFiniteBoundsAsResiduals_);
2393 if (((bitField0_ & 0x01000000) != 0)) {
2394 size += com.google.protobuf.CodedOutputStream
2395 .computeBoolSize(30, useFeasibilityPolishing_);
2397 if (((bitField0_ & 0x00000020) != 0)) {
2398 size += com.google.protobuf.CodedOutputStream
2399 .computeDoubleSize(31, logIntervalSeconds_);
2401 size += getUnknownFields().getSerializedSize();
2402 memoizedSize = size;
2407 public boolean equals(
final java.lang.Object obj) {
2411 if (!(obj instanceof com.google.ortools.pdlp.PrimalDualHybridGradientParams)) {
2412 return super.equals(obj);
2444 != java.lang.Double.doubleToLongBits(
2459 if (restartStrategy_ != other.restartStrategy_)
return false;
2464 != java.lang.Double.doubleToLongBits(
2470 != java.lang.Double.doubleToLongBits(
2491 != java.lang.Double.doubleToLongBits(
2497 != java.lang.Double.doubleToLongBits(
2502 if (linesearchRule_ != other.linesearchRule_)
return false;
2517 != java.lang.Double.doubleToLongBits(
2525 != java.lang.Double.doubleToLongBits(
2541 != java.lang.Double.doubleToLongBits(
2549 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
2555 if (memoizedHashCode != 0) {
2556 return memoizedHashCode;
2574 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
2583 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2596 hash = (53 * hash) + restartStrategy_;
2600 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2605 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2618 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
2623 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2628 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2633 hash = (53 * hash) + linesearchRule_;
2645 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2654 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2659 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
2664 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
2669 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2674 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
2677 hash = (29 * hash) + getUnknownFields().hashCode();
2678 memoizedHashCode = hash;
2683 java.nio.ByteBuffer data)
2684 throws com.google.protobuf.InvalidProtocolBufferException {
2688 java.nio.ByteBuffer data,
2689 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2690 throws com.google.protobuf.InvalidProtocolBufferException {
2691 return PARSER.
parseFrom(data, extensionRegistry);
2694 com.google.protobuf.ByteString data)
2695 throws com.google.protobuf.InvalidProtocolBufferException {
2699 com.google.protobuf.ByteString data,
2700 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2701 throws com.google.protobuf.InvalidProtocolBufferException {
2702 return PARSER.
parseFrom(data, extensionRegistry);
2705 throws com.google.protobuf.InvalidProtocolBufferException {
2710 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2711 throws com.google.protobuf.InvalidProtocolBufferException {
2712 return PARSER.
parseFrom(data, extensionRegistry);
2715 throws java.io.IOException {
2716 return com.google.protobuf.GeneratedMessage
2717 .parseWithIOException(PARSER, input);
2720 java.io.InputStream input,
2721 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2722 throws java.io.IOException {
2723 return com.google.protobuf.GeneratedMessage
2724 .parseWithIOException(PARSER, input, extensionRegistry);
2728 throws java.io.IOException {
2729 return com.google.protobuf.GeneratedMessage
2730 .parseDelimitedWithIOException(PARSER, input);
2734 java.io.InputStream input,
2735 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2736 throws java.io.IOException {
2737 return com.google.protobuf.GeneratedMessage
2738 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
2741 com.google.protobuf.CodedInputStream input)
2742 throws java.io.IOException {
2743 return com.google.protobuf.GeneratedMessage
2744 .parseWithIOException(PARSER, input);
2747 com.google.protobuf.CodedInputStream input,
2748 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2749 throws java.io.IOException {
2750 return com.google.protobuf.GeneratedMessage
2751 .parseWithIOException(PARSER, input, extensionRegistry);
2759 public static Builder newBuilder(com.google.ortools.pdlp.PrimalDualHybridGradientParams prototype) {
2764 return this == DEFAULT_INSTANCE
2770 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2791 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
2794 public static final com.google.protobuf.Descriptors.Descriptor
2796 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_PrimalDualHybridGradientParams_descriptor;
2800 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2802 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_PrimalDualHybridGradientParams_fieldAccessorTable
2803 .ensureFieldAccessorsInitialized(
2804 com.google.ortools.pdlp.PrimalDualHybridGradientParams.class, com.google.ortools.pdlp.PrimalDualHybridGradientParams.Builder.class);
2809 maybeForceBuilderInitialization();
2813 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2815 maybeForceBuilderInitialization();
2817 private void maybeForceBuilderInitialization() {
2818 if (com.google.protobuf.GeneratedMessage
2819 .alwaysUseFieldBuilders) {
2820 getTerminationCriteriaFieldBuilder();
2821 getPresolveOptionsFieldBuilder();
2822 getAdaptiveLinesearchParametersFieldBuilder();
2823 getMalitskyPockParametersFieldBuilder();
2830 terminationCriteria_ =
null;
2831 if (terminationCriteriaBuilder_ !=
null) {
2832 terminationCriteriaBuilder_.dispose();
2833 terminationCriteriaBuilder_ =
null;
2837 recordIterationStats_ =
false;
2838 verbosityLevel_ = 0;
2839 logIntervalSeconds_ = 0D;
2840 majorIterationFrequency_ = 64;
2841 terminationCheckFrequency_ = 64;
2842 restartStrategy_ = 3;
2843 primalWeightUpdateSmoothing_ = 0.5D;
2844 initialPrimalWeight_ = 0D;
2845 presolveOptions_ =
null;
2846 if (presolveOptionsBuilder_ !=
null) {
2847 presolveOptionsBuilder_.dispose();
2848 presolveOptionsBuilder_ =
null;
2850 lInfRuizIterations_ = 5;
2851 l2NormRescaling_ =
true;
2852 sufficientReductionForRestart_ = 0.1D;
2853 necessaryReductionForRestart_ = 0.9D;
2854 linesearchRule_ = 1;
2855 adaptiveLinesearchParameters_ =
null;
2856 if (adaptiveLinesearchParametersBuilder_ !=
null) {
2857 adaptiveLinesearchParametersBuilder_.dispose();
2858 adaptiveLinesearchParametersBuilder_ =
null;
2860 malitskyPockParameters_ =
null;
2861 if (malitskyPockParametersBuilder_ !=
null) {
2862 malitskyPockParametersBuilder_.dispose();
2863 malitskyPockParametersBuilder_ =
null;
2865 initialStepSizeScaling_ = 1D;
2866 randomProjectionSeeds_ = emptyIntList();
2867 infiniteConstraintBoundThreshold_ = Double.POSITIVE_INFINITY;
2868 handleSomePrimalGradientsOnFiniteBoundsAsResiduals_ =
true;
2869 useDiagonalQpTrustRegionSolver_ =
false;
2870 diagonalQpTrustRegionSolverTolerance_ = 1e-08D;
2871 useFeasibilityPolishing_ =
false;
2876 public com.google.protobuf.Descriptors.Descriptor
2878 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_PrimalDualHybridGradientParams_descriptor;
2883 return com.google.ortools.pdlp.PrimalDualHybridGradientParams.getDefaultInstance();
2890 throw newUninitializedMessageException(result);
2898 if (bitField0_ != 0) { buildPartial0(result); }
2903 private void buildPartial0(com.google.ortools.pdlp.PrimalDualHybridGradientParams result) {
2904 int from_bitField0_ = bitField0_;
2905 int to_bitField0_ = 0;
2906 if (((from_bitField0_ & 0x00000001) != 0)) {
2907 result.terminationCriteria_ = terminationCriteriaBuilder_ ==
null
2908 ? terminationCriteria_
2909 : terminationCriteriaBuilder_.build();
2910 to_bitField0_ |= 0x00000001;
2912 if (((from_bitField0_ & 0x00000002) != 0)) {
2913 result.numThreads_ = numThreads_;
2914 to_bitField0_ |= 0x00000002;
2916 if (((from_bitField0_ & 0x00000004) != 0)) {
2917 result.numShards_ = numShards_;
2918 to_bitField0_ |= 0x00000004;
2920 if (((from_bitField0_ & 0x00000008) != 0)) {
2921 result.recordIterationStats_ = recordIterationStats_;
2922 to_bitField0_ |= 0x00000008;
2924 if (((from_bitField0_ & 0x00000010) != 0)) {
2925 result.verbosityLevel_ = verbosityLevel_;
2926 to_bitField0_ |= 0x00000010;
2928 if (((from_bitField0_ & 0x00000020) != 0)) {
2929 result.logIntervalSeconds_ = logIntervalSeconds_;
2930 to_bitField0_ |= 0x00000020;
2932 if (((from_bitField0_ & 0x00000040) != 0)) {
2933 result.majorIterationFrequency_ = majorIterationFrequency_;
2934 to_bitField0_ |= 0x00000040;
2936 if (((from_bitField0_ & 0x00000080) != 0)) {
2937 result.terminationCheckFrequency_ = terminationCheckFrequency_;
2938 to_bitField0_ |= 0x00000080;
2940 if (((from_bitField0_ & 0x00000100) != 0)) {
2941 result.restartStrategy_ = restartStrategy_;
2942 to_bitField0_ |= 0x00000100;
2944 if (((from_bitField0_ & 0x00000200) != 0)) {
2945 result.primalWeightUpdateSmoothing_ = primalWeightUpdateSmoothing_;
2946 to_bitField0_ |= 0x00000200;
2948 if (((from_bitField0_ & 0x00000400) != 0)) {
2949 result.initialPrimalWeight_ = initialPrimalWeight_;
2950 to_bitField0_ |= 0x00000400;
2952 if (((from_bitField0_ & 0x00000800) != 0)) {
2953 result.presolveOptions_ = presolveOptionsBuilder_ ==
null
2955 : presolveOptionsBuilder_.build();
2956 to_bitField0_ |= 0x00000800;
2958 if (((from_bitField0_ & 0x00001000) != 0)) {
2959 result.lInfRuizIterations_ = lInfRuizIterations_;
2960 to_bitField0_ |= 0x00001000;
2962 if (((from_bitField0_ & 0x00002000) != 0)) {
2963 result.l2NormRescaling_ = l2NormRescaling_;
2964 to_bitField0_ |= 0x00002000;
2966 if (((from_bitField0_ & 0x00004000) != 0)) {
2967 result.sufficientReductionForRestart_ = sufficientReductionForRestart_;
2968 to_bitField0_ |= 0x00004000;
2970 if (((from_bitField0_ & 0x00008000) != 0)) {
2971 result.necessaryReductionForRestart_ = necessaryReductionForRestart_;
2972 to_bitField0_ |= 0x00008000;
2974 if (((from_bitField0_ & 0x00010000) != 0)) {
2975 result.linesearchRule_ = linesearchRule_;
2976 to_bitField0_ |= 0x00010000;
2978 if (((from_bitField0_ & 0x00020000) != 0)) {
2979 result.adaptiveLinesearchParameters_ = adaptiveLinesearchParametersBuilder_ ==
null
2980 ? adaptiveLinesearchParameters_
2981 : adaptiveLinesearchParametersBuilder_.build();
2982 to_bitField0_ |= 0x00020000;
2984 if (((from_bitField0_ & 0x00040000) != 0)) {
2985 result.malitskyPockParameters_ = malitskyPockParametersBuilder_ ==
null
2986 ? malitskyPockParameters_
2987 : malitskyPockParametersBuilder_.build();
2988 to_bitField0_ |= 0x00040000;
2990 if (((from_bitField0_ & 0x00080000) != 0)) {
2991 result.initialStepSizeScaling_ = initialStepSizeScaling_;
2992 to_bitField0_ |= 0x00080000;
2994 if (((from_bitField0_ & 0x00100000) != 0)) {
2995 randomProjectionSeeds_.makeImmutable();
2996 result.randomProjectionSeeds_ = randomProjectionSeeds_;
2998 if (((from_bitField0_ & 0x00200000) != 0)) {
2999 result.infiniteConstraintBoundThreshold_ = infiniteConstraintBoundThreshold_;
3000 to_bitField0_ |= 0x00100000;
3002 if (((from_bitField0_ & 0x00400000) != 0)) {
3003 result.handleSomePrimalGradientsOnFiniteBoundsAsResiduals_ = handleSomePrimalGradientsOnFiniteBoundsAsResiduals_;
3004 to_bitField0_ |= 0x00200000;
3006 if (((from_bitField0_ & 0x00800000) != 0)) {
3007 result.useDiagonalQpTrustRegionSolver_ = useDiagonalQpTrustRegionSolver_;
3008 to_bitField0_ |= 0x00400000;
3010 if (((from_bitField0_ & 0x01000000) != 0)) {
3011 result.diagonalQpTrustRegionSolverTolerance_ = diagonalQpTrustRegionSolverTolerance_;
3012 to_bitField0_ |= 0x00800000;
3014 if (((from_bitField0_ & 0x02000000) != 0)) {
3015 result.useFeasibilityPolishing_ = useFeasibilityPolishing_;
3016 to_bitField0_ |= 0x01000000;
3018 result.bitField0_ |= to_bitField0_;
3023 if (other instanceof com.google.ortools.pdlp.PrimalDualHybridGradientParams) {
3024 return mergeFrom((com.google.ortools.pdlp.PrimalDualHybridGradientParams)other);
3026 super.mergeFrom(other);
3032 if (other == com.google.ortools.pdlp.PrimalDualHybridGradientParams.getDefaultInstance())
return this;
3033 if (other.hasTerminationCriteria()) {
3036 if (other.hasNumThreads()) {
3039 if (other.hasNumShards()) {
3042 if (other.hasRecordIterationStats()) {
3045 if (other.hasVerbosityLevel()) {
3048 if (other.hasLogIntervalSeconds()) {
3051 if (other.hasMajorIterationFrequency()) {
3054 if (other.hasTerminationCheckFrequency()) {
3057 if (other.hasRestartStrategy()) {
3060 if (other.hasPrimalWeightUpdateSmoothing()) {
3063 if (other.hasInitialPrimalWeight()) {
3066 if (other.hasPresolveOptions()) {
3069 if (other.hasLInfRuizIterations()) {
3072 if (other.hasL2NormRescaling()) {
3075 if (other.hasSufficientReductionForRestart()) {
3078 if (other.hasNecessaryReductionForRestart()) {
3081 if (other.hasLinesearchRule()) {
3084 if (other.hasAdaptiveLinesearchParameters()) {
3087 if (other.hasMalitskyPockParameters()) {
3090 if (other.hasInitialStepSizeScaling()) {
3093 if (!other.randomProjectionSeeds_.isEmpty()) {
3094 if (randomProjectionSeeds_.isEmpty()) {
3095 randomProjectionSeeds_ = other.randomProjectionSeeds_;
3096 randomProjectionSeeds_.makeImmutable();
3097 bitField0_ |= 0x00100000;
3099 ensureRandomProjectionSeedsIsMutable();
3100 randomProjectionSeeds_.addAll(other.randomProjectionSeeds_);
3104 if (other.hasInfiniteConstraintBoundThreshold()) {
3107 if (other.hasHandleSomePrimalGradientsOnFiniteBoundsAsResiduals()) {
3110 if (other.hasUseDiagonalQpTrustRegionSolver()) {
3113 if (other.hasDiagonalQpTrustRegionSolverTolerance()) {
3116 if (other.hasUseFeasibilityPolishing()) {
3119 this.mergeUnknownFields(other.getUnknownFields());
3131 com.google.protobuf.CodedInputStream input,
3132 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3133 throws java.io.IOException {
3134 if (extensionRegistry ==
null) {
3135 throw new java.lang.NullPointerException();
3138 boolean done =
false;
3140 int tag = input.readTag();
3147 getTerminationCriteriaFieldBuilder().getBuilder(),
3149 bitField0_ |= 0x00000001;
3153 numThreads_ = input.readInt32();
3154 bitField0_ |= 0x00000002;
3158 recordIterationStats_ = input.readBool();
3159 bitField0_ |= 0x00000008;
3163 majorIterationFrequency_ = input.readInt32();
3164 bitField0_ |= 0x00000040;
3168 terminationCheckFrequency_ = input.readInt32();
3169 bitField0_ |= 0x00000080;
3173 int tmpRaw = input.readEnum();
3175 com.google.ortools.pdlp.PrimalDualHybridGradientParams.RestartStrategy.forNumber(tmpRaw);
3176 if (tmpValue ==
null) {
3177 mergeUnknownVarintField(6, tmpRaw);
3179 restartStrategy_ = tmpRaw;
3180 bitField0_ |= 0x00000100;
3185 primalWeightUpdateSmoothing_ = input.readDouble();
3186 bitField0_ |= 0x00000200;
3190 initialPrimalWeight_ = input.readDouble();
3191 bitField0_ |= 0x00000400;
3195 lInfRuizIterations_ = input.readInt32();
3196 bitField0_ |= 0x00001000;
3200 l2NormRescaling_ = input.readBool();
3201 bitField0_ |= 0x00002000;
3205 sufficientReductionForRestart_ = input.readDouble();
3206 bitField0_ |= 0x00004000;
3210 int tmpRaw = input.readEnum();
3212 com.google.ortools.pdlp.PrimalDualHybridGradientParams.LinesearchRule.forNumber(tmpRaw);
3213 if (tmpValue ==
null) {
3214 mergeUnknownVarintField(12, tmpRaw);
3216 linesearchRule_ = tmpRaw;
3217 bitField0_ |= 0x00010000;
3223 getPresolveOptionsFieldBuilder().getBuilder(),
3225 bitField0_ |= 0x00000800;
3229 necessaryReductionForRestart_ = input.readDouble();
3230 bitField0_ |= 0x00008000;
3235 getAdaptiveLinesearchParametersFieldBuilder().getBuilder(),
3237 bitField0_ |= 0x00020000;
3242 getMalitskyPockParametersFieldBuilder().getBuilder(),
3244 bitField0_ |= 0x00040000;
3248 infiniteConstraintBoundThreshold_ = input.readDouble();
3249 bitField0_ |= 0x00200000;
3253 useDiagonalQpTrustRegionSolver_ = input.readBool();
3254 bitField0_ |= 0x00800000;
3258 diagonalQpTrustRegionSolverTolerance_ = input.readDouble();
3259 bitField0_ |= 0x01000000;
3263 initialStepSizeScaling_ = input.readDouble();
3264 bitField0_ |= 0x00080000;
3268 verbosityLevel_ = input.readInt32();
3269 bitField0_ |= 0x00000010;
3273 numShards_ = input.readInt32();
3274 bitField0_ |= 0x00000004;
3278 int v = input.readInt32();
3279 ensureRandomProjectionSeedsIsMutable();
3280 randomProjectionSeeds_.addInt(v);
3284 int length = input.readRawVarint32();
3285 int limit = input.pushLimit(length);
3286 ensureRandomProjectionSeedsIsMutable();
3287 while (input.getBytesUntilLimit() > 0) {
3288 randomProjectionSeeds_.addInt(input.readInt32());
3290 input.popLimit(limit);
3294 handleSomePrimalGradientsOnFiniteBoundsAsResiduals_ = input.readBool();
3295 bitField0_ |= 0x00400000;
3299 useFeasibilityPolishing_ = input.readBool();
3300 bitField0_ |= 0x02000000;
3304 logIntervalSeconds_ = input.readDouble();
3305 bitField0_ |= 0x00000020;
3309 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
3316 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
3317 throw e.unwrapIOException();
3323 private int bitField0_;
3326 private com.google.protobuf.SingleFieldBuilder<
3327 com.google.ortools.pdlp.TerminationCriteria, com.google.ortools.pdlp.TerminationCriteria.Builder, com.google.ortools.pdlp.TerminationCriteriaOrBuilder> terminationCriteriaBuilder_;
3333 return ((bitField0_ & 0x00000001) != 0);
3340 if (terminationCriteriaBuilder_ ==
null) {
3341 return terminationCriteria_ ==
null ? com.google.ortools.pdlp.TerminationCriteria.getDefaultInstance() : terminationCriteria_;
3343 return terminationCriteriaBuilder_.getMessage();
3350 if (terminationCriteriaBuilder_ ==
null) {
3351 if (value ==
null) {
3352 throw new NullPointerException();
3354 terminationCriteria_ = value;
3356 terminationCriteriaBuilder_.setMessage(value);
3358 bitField0_ |= 0x00000001;
3366 com.google.ortools.pdlp.TerminationCriteria.Builder builderForValue) {
3367 if (terminationCriteriaBuilder_ ==
null) {
3368 terminationCriteria_ = builderForValue.build();
3370 terminationCriteriaBuilder_.setMessage(builderForValue.build());
3372 bitField0_ |= 0x00000001;
3380 if (terminationCriteriaBuilder_ ==
null) {
3381 if (((bitField0_ & 0x00000001) != 0) &&
3382 terminationCriteria_ !=
null &&
3383 terminationCriteria_ != com.google.ortools.pdlp.TerminationCriteria.getDefaultInstance()) {
3386 terminationCriteria_ = value;
3389 terminationCriteriaBuilder_.mergeFrom(value);
3391 if (terminationCriteria_ !=
null) {
3392 bitField0_ |= 0x00000001;
3401 bitField0_ = (bitField0_ & ~0x00000001);
3402 terminationCriteria_ =
null;
3403 if (terminationCriteriaBuilder_ !=
null) {
3404 terminationCriteriaBuilder_.dispose();
3405 terminationCriteriaBuilder_ =
null;
3414 bitField0_ |= 0x00000001;
3416 return getTerminationCriteriaFieldBuilder().getBuilder();
3422 if (terminationCriteriaBuilder_ !=
null) {
3423 return terminationCriteriaBuilder_.getMessageOrBuilder();
3425 return terminationCriteria_ ==
null ?
3426 com.google.ortools.pdlp.TerminationCriteria.getDefaultInstance() : terminationCriteria_;
3432 private com.google.protobuf.SingleFieldBuilder<
3433 com.google.ortools.pdlp.TerminationCriteria, com.google.ortools.pdlp.TerminationCriteria.Builder, com.google.ortools.pdlp.TerminationCriteriaOrBuilder>
3434 getTerminationCriteriaFieldBuilder() {
3435 if (terminationCriteriaBuilder_ ==
null) {
3436 terminationCriteriaBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
3437 com.google.ortools.pdlp.TerminationCriteria, com.google.ortools.pdlp.TerminationCriteria.Builder, com.google.ortools.pdlp.TerminationCriteriaOrBuilder>(
3439 getParentForChildren(),
3441 terminationCriteria_ =
null;
3443 return terminationCriteriaBuilder_;
3446 private int numThreads_ = 1;
3460 return ((bitField0_ & 0x00000002) != 0);
3491 numThreads_ = value;
3492 bitField0_ |= 0x00000002;
3508 bitField0_ = (bitField0_ & ~0x00000002);
3514 private int numShards_ ;
3533 return ((bitField0_ & 0x00000004) != 0);
3575 bitField0_ |= 0x00000004;
3596 bitField0_ = (bitField0_ & ~0x00000004);
3602 private boolean recordIterationStats_ ;
3616 return ((bitField0_ & 0x00000008) != 0);
3631 return recordIterationStats_;
3647 recordIterationStats_ = value;
3648 bitField0_ |= 0x00000008;
3664 bitField0_ = (bitField0_ & ~0x00000008);
3665 recordIterationStats_ =
false;
3670 private int verbosityLevel_ ;
3691 return ((bitField0_ & 0x00000010) != 0);
3713 return verbosityLevel_;
3736 verbosityLevel_ = value;
3737 bitField0_ |= 0x00000010;
3760 bitField0_ = (bitField0_ & ~0x00000010);
3761 verbosityLevel_ = 0;
3766 private double logIntervalSeconds_ ;
3781 return ((bitField0_ & 0x00000020) != 0);
3797 return logIntervalSeconds_;
3814 logIntervalSeconds_ = value;
3815 bitField0_ |= 0x00000020;
3832 bitField0_ = (bitField0_ & ~0x00000020);
3833 logIntervalSeconds_ = 0D;
3838 private int majorIterationFrequency_ = 64;
3854 return ((bitField0_ & 0x00000040) != 0);
3871 return majorIterationFrequency_;
3889 majorIterationFrequency_ = value;
3890 bitField0_ |= 0x00000040;
3908 bitField0_ = (bitField0_ & ~0x00000040);
3909 majorIterationFrequency_ = 64;
3914 private int terminationCheckFrequency_ = 64;
3927 return ((bitField0_ & 0x00000080) != 0);
3941 return terminationCheckFrequency_;
3956 terminationCheckFrequency_ = value;
3957 bitField0_ |= 0x00000080;
3972 bitField0_ = (bitField0_ & ~0x00000080);
3973 terminationCheckFrequency_ = 64;
3978 private int restartStrategy_ = 3;
3990 return ((bitField0_ & 0x00000100) != 0);
4005 return result ==
null ? com.google.ortools.pdlp.PrimalDualHybridGradientParams.RestartStrategy.ADAPTIVE_HEURISTIC : result;
4019 if (value ==
null) {
4020 throw new NullPointerException();
4022 bitField0_ |= 0x00000100;
4023 restartStrategy_ = value.getNumber();
4038 bitField0_ = (bitField0_ & ~0x00000100);
4039 restartStrategy_ = 3;
4044 private double primalWeightUpdateSmoothing_ = 0.5D;
4062 return ((bitField0_ & 0x00000200) != 0);
4081 return primalWeightUpdateSmoothing_;
4101 primalWeightUpdateSmoothing_ = value;
4102 bitField0_ |= 0x00000200;
4122 bitField0_ = (bitField0_ & ~0x00000200);
4123 primalWeightUpdateSmoothing_ = 0.5D;
4128 private double initialPrimalWeight_ ;
4145 return ((bitField0_ & 0x00000400) != 0);
4163 return initialPrimalWeight_;
4182 initialPrimalWeight_ = value;
4183 bitField0_ |= 0x00000400;
4202 bitField0_ = (bitField0_ & ~0x00000400);
4203 initialPrimalWeight_ = 0D;
4209 private com.google.protobuf.SingleFieldBuilder<
4210 com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions, com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.Builder, com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptionsOrBuilder> presolveOptionsBuilder_;
4216 return ((bitField0_ & 0x00000800) != 0);
4223 if (presolveOptionsBuilder_ ==
null) {
4224 return presolveOptions_ ==
null ? com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.getDefaultInstance() : presolveOptions_;
4226 return presolveOptionsBuilder_.getMessage();
4233 if (presolveOptionsBuilder_ ==
null) {
4234 if (value ==
null) {
4235 throw new NullPointerException();
4237 presolveOptions_ = value;
4239 presolveOptionsBuilder_.setMessage(value);
4241 bitField0_ |= 0x00000800;
4249 com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.Builder builderForValue) {
4250 if (presolveOptionsBuilder_ ==
null) {
4251 presolveOptions_ = builderForValue.build();
4253 presolveOptionsBuilder_.setMessage(builderForValue.build());
4255 bitField0_ |= 0x00000800;
4263 if (presolveOptionsBuilder_ ==
null) {
4264 if (((bitField0_ & 0x00000800) != 0) &&
4265 presolveOptions_ !=
null &&
4266 presolveOptions_ != com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.getDefaultInstance()) {
4269 presolveOptions_ = value;
4272 presolveOptionsBuilder_.mergeFrom(value);
4274 if (presolveOptions_ !=
null) {
4275 bitField0_ |= 0x00000800;
4284 bitField0_ = (bitField0_ & ~0x00000800);
4285 presolveOptions_ =
null;
4286 if (presolveOptionsBuilder_ !=
null) {
4287 presolveOptionsBuilder_.dispose();
4288 presolveOptionsBuilder_ =
null;
4297 bitField0_ |= 0x00000800;
4299 return getPresolveOptionsFieldBuilder().getBuilder();
4305 if (presolveOptionsBuilder_ !=
null) {
4306 return presolveOptionsBuilder_.getMessageOrBuilder();
4308 return presolveOptions_ ==
null ?
4309 com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.getDefaultInstance() : presolveOptions_;
4315 private com.google.protobuf.SingleFieldBuilder<
4316 com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions, com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.Builder, com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptionsOrBuilder>
4317 getPresolveOptionsFieldBuilder() {
4318 if (presolveOptionsBuilder_ ==
null) {
4319 presolveOptionsBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
4320 com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions, com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.Builder, com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptionsOrBuilder>(
4322 getParentForChildren(),
4324 presolveOptions_ =
null;
4326 return presolveOptionsBuilder_;
4329 private int lInfRuizIterations_ = 5;
4342 return ((bitField0_ & 0x00001000) != 0);
4356 return lInfRuizIterations_;
4371 lInfRuizIterations_ = value;
4372 bitField0_ |= 0x00001000;
4387 bitField0_ = (bitField0_ & ~0x00001000);
4388 lInfRuizIterations_ = 5;
4393 private boolean l2NormRescaling_ =
true;
4405 return ((bitField0_ & 0x00002000) != 0);
4418 return l2NormRescaling_;
4432 l2NormRescaling_ = value;
4433 bitField0_ |= 0x00002000;
4447 bitField0_ = (bitField0_ & ~0x00002000);
4448 l2NormRescaling_ =
true;
4453 private double sufficientReductionForRestart_ = 0.1D;
4466 return ((bitField0_ & 0x00004000) != 0);
4480 return sufficientReductionForRestart_;
4495 sufficientReductionForRestart_ = value;
4496 bitField0_ |= 0x00004000;
4511 bitField0_ = (bitField0_ & ~0x00004000);
4512 sufficientReductionForRestart_ = 0.1D;
4517 private double necessaryReductionForRestart_ = 0.9D;
4532 return ((bitField0_ & 0x00008000) != 0);
4548 return necessaryReductionForRestart_;
4565 necessaryReductionForRestart_ = value;
4566 bitField0_ |= 0x00008000;
4583 bitField0_ = (bitField0_ & ~0x00008000);
4584 necessaryReductionForRestart_ = 0.9D;
4589 private int linesearchRule_ = 1;
4599 return ((bitField0_ & 0x00010000) != 0);
4612 return result ==
null ? com.google.ortools.pdlp.PrimalDualHybridGradientParams.LinesearchRule.ADAPTIVE_LINESEARCH_RULE : result;
4624 if (value ==
null) {
4625 throw new NullPointerException();
4627 bitField0_ |= 0x00010000;
4628 linesearchRule_ = value.getNumber();
4641 bitField0_ = (bitField0_ & ~0x00010000);
4642 linesearchRule_ = 1;
4648 private com.google.protobuf.SingleFieldBuilder<
4649 com.google.ortools.pdlp.AdaptiveLinesearchParams, com.google.ortools.pdlp.AdaptiveLinesearchParams.Builder, com.google.ortools.pdlp.AdaptiveLinesearchParamsOrBuilder> adaptiveLinesearchParametersBuilder_;
4655 return ((bitField0_ & 0x00020000) != 0);
4662 if (adaptiveLinesearchParametersBuilder_ ==
null) {
4663 return adaptiveLinesearchParameters_ ==
null ? com.google.ortools.pdlp.AdaptiveLinesearchParams.getDefaultInstance() : adaptiveLinesearchParameters_;
4665 return adaptiveLinesearchParametersBuilder_.getMessage();
4672 if (adaptiveLinesearchParametersBuilder_ ==
null) {
4673 if (value ==
null) {
4674 throw new NullPointerException();
4676 adaptiveLinesearchParameters_ = value;
4678 adaptiveLinesearchParametersBuilder_.setMessage(value);
4680 bitField0_ |= 0x00020000;
4688 com.google.ortools.pdlp.AdaptiveLinesearchParams.Builder builderForValue) {
4689 if (adaptiveLinesearchParametersBuilder_ ==
null) {
4690 adaptiveLinesearchParameters_ = builderForValue.build();
4692 adaptiveLinesearchParametersBuilder_.setMessage(builderForValue.build());
4694 bitField0_ |= 0x00020000;
4702 if (adaptiveLinesearchParametersBuilder_ ==
null) {
4703 if (((bitField0_ & 0x00020000) != 0) &&
4704 adaptiveLinesearchParameters_ !=
null &&
4705 adaptiveLinesearchParameters_ != com.google.ortools.pdlp.AdaptiveLinesearchParams.getDefaultInstance()) {
4708 adaptiveLinesearchParameters_ = value;
4711 adaptiveLinesearchParametersBuilder_.mergeFrom(value);
4713 if (adaptiveLinesearchParameters_ !=
null) {
4714 bitField0_ |= 0x00020000;
4723 bitField0_ = (bitField0_ & ~0x00020000);
4724 adaptiveLinesearchParameters_ =
null;
4725 if (adaptiveLinesearchParametersBuilder_ !=
null) {
4726 adaptiveLinesearchParametersBuilder_.dispose();
4727 adaptiveLinesearchParametersBuilder_ =
null;
4736 bitField0_ |= 0x00020000;
4738 return getAdaptiveLinesearchParametersFieldBuilder().getBuilder();
4744 if (adaptiveLinesearchParametersBuilder_ !=
null) {
4745 return adaptiveLinesearchParametersBuilder_.getMessageOrBuilder();
4747 return adaptiveLinesearchParameters_ ==
null ?
4748 com.google.ortools.pdlp.AdaptiveLinesearchParams.getDefaultInstance() : adaptiveLinesearchParameters_;
4754 private com.google.protobuf.SingleFieldBuilder<
4755 com.google.ortools.pdlp.AdaptiveLinesearchParams, com.google.ortools.pdlp.AdaptiveLinesearchParams.Builder, com.google.ortools.pdlp.AdaptiveLinesearchParamsOrBuilder>
4756 getAdaptiveLinesearchParametersFieldBuilder() {
4757 if (adaptiveLinesearchParametersBuilder_ ==
null) {
4758 adaptiveLinesearchParametersBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
4759 com.google.ortools.pdlp.AdaptiveLinesearchParams, com.google.ortools.pdlp.AdaptiveLinesearchParams.Builder, com.google.ortools.pdlp.AdaptiveLinesearchParamsOrBuilder>(
4761 getParentForChildren(),
4763 adaptiveLinesearchParameters_ =
null;
4765 return adaptiveLinesearchParametersBuilder_;
4769 private com.google.protobuf.SingleFieldBuilder<
4770 com.google.ortools.pdlp.MalitskyPockParams, com.google.ortools.pdlp.MalitskyPockParams.Builder, com.google.ortools.pdlp.MalitskyPockParamsOrBuilder> malitskyPockParametersBuilder_;
4776 return ((bitField0_ & 0x00040000) != 0);
4783 if (malitskyPockParametersBuilder_ ==
null) {
4784 return malitskyPockParameters_ ==
null ? com.google.ortools.pdlp.MalitskyPockParams.getDefaultInstance() : malitskyPockParameters_;
4786 return malitskyPockParametersBuilder_.getMessage();
4793 if (malitskyPockParametersBuilder_ ==
null) {
4794 if (value ==
null) {
4795 throw new NullPointerException();
4797 malitskyPockParameters_ = value;
4799 malitskyPockParametersBuilder_.setMessage(value);
4801 bitField0_ |= 0x00040000;
4809 com.google.ortools.pdlp.MalitskyPockParams.Builder builderForValue) {
4810 if (malitskyPockParametersBuilder_ ==
null) {
4811 malitskyPockParameters_ = builderForValue.build();
4813 malitskyPockParametersBuilder_.setMessage(builderForValue.build());
4815 bitField0_ |= 0x00040000;
4823 if (malitskyPockParametersBuilder_ ==
null) {
4824 if (((bitField0_ & 0x00040000) != 0) &&
4825 malitskyPockParameters_ !=
null &&
4826 malitskyPockParameters_ != com.google.ortools.pdlp.MalitskyPockParams.getDefaultInstance()) {
4829 malitskyPockParameters_ = value;
4832 malitskyPockParametersBuilder_.mergeFrom(value);
4834 if (malitskyPockParameters_ !=
null) {
4835 bitField0_ |= 0x00040000;
4844 bitField0_ = (bitField0_ & ~0x00040000);
4845 malitskyPockParameters_ =
null;
4846 if (malitskyPockParametersBuilder_ !=
null) {
4847 malitskyPockParametersBuilder_.dispose();
4848 malitskyPockParametersBuilder_ =
null;
4857 bitField0_ |= 0x00040000;
4859 return getMalitskyPockParametersFieldBuilder().getBuilder();
4865 if (malitskyPockParametersBuilder_ !=
null) {
4866 return malitskyPockParametersBuilder_.getMessageOrBuilder();
4868 return malitskyPockParameters_ ==
null ?
4869 com.google.ortools.pdlp.MalitskyPockParams.getDefaultInstance() : malitskyPockParameters_;
4875 private com.google.protobuf.SingleFieldBuilder<
4876 com.google.ortools.pdlp.MalitskyPockParams, com.google.ortools.pdlp.MalitskyPockParams.Builder, com.google.ortools.pdlp.MalitskyPockParamsOrBuilder>
4877 getMalitskyPockParametersFieldBuilder() {
4878 if (malitskyPockParametersBuilder_ ==
null) {
4879 malitskyPockParametersBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
4880 com.google.ortools.pdlp.MalitskyPockParams, com.google.ortools.pdlp.MalitskyPockParams.Builder, com.google.ortools.pdlp.MalitskyPockParamsOrBuilder>(
4882 getParentForChildren(),
4884 malitskyPockParameters_ =
null;
4886 return malitskyPockParametersBuilder_;
4889 private double initialStepSizeScaling_ = 1D;
4901 return ((bitField0_ & 0x00080000) != 0);
4914 return initialStepSizeScaling_;
4928 initialStepSizeScaling_ = value;
4929 bitField0_ |= 0x00080000;
4943 bitField0_ = (bitField0_ & ~0x00080000);
4944 initialStepSizeScaling_ = 1D;
4949 private com.google.protobuf.Internal.IntList randomProjectionSeeds_ = emptyIntList();
4950 private void ensureRandomProjectionSeedsIsMutable() {
4951 if (!randomProjectionSeeds_.isModifiable()) {
4952 randomProjectionSeeds_ = makeMutableCopy(randomProjectionSeeds_);
4954 bitField0_ |= 0x00100000;
4969 public java.util.List<java.lang.Integer>
4971 randomProjectionSeeds_.makeImmutable();
4972 return randomProjectionSeeds_;
4988 return randomProjectionSeeds_.size();
5005 return randomProjectionSeeds_.getInt(index);
5023 int index,
int value) {
5025 ensureRandomProjectionSeedsIsMutable();
5026 randomProjectionSeeds_.setInt(index, value);
5027 bitField0_ |= 0x00100000;
5047 ensureRandomProjectionSeedsIsMutable();
5048 randomProjectionSeeds_.addInt(value);
5049 bitField0_ |= 0x00100000;
5068 java.lang.Iterable<? extends java.lang.Integer> values) {
5069 ensureRandomProjectionSeedsIsMutable();
5070 com.google.protobuf.AbstractMessageLite.Builder.addAll(
5071 values, randomProjectionSeeds_);
5072 bitField0_ |= 0x00100000;
5090 randomProjectionSeeds_ = emptyIntList();
5091 bitField0_ = (bitField0_ & ~0x00100000);
5096 private double infiniteConstraintBoundThreshold_ = Double.POSITIVE_INFINITY;
5112 return ((bitField0_ & 0x00200000) != 0);
5129 return infiniteConstraintBoundThreshold_;
5147 infiniteConstraintBoundThreshold_ = value;
5148 bitField0_ |= 0x00200000;
5166 bitField0_ = (bitField0_ & ~0x00200000);
5167 infiniteConstraintBoundThreshold_ = Double.POSITIVE_INFINITY;
5172 private boolean handleSomePrimalGradientsOnFiniteBoundsAsResiduals_ =
true;
5185 return ((bitField0_ & 0x00400000) != 0);
5199 return handleSomePrimalGradientsOnFiniteBoundsAsResiduals_;
5214 handleSomePrimalGradientsOnFiniteBoundsAsResiduals_ = value;
5215 bitField0_ |= 0x00400000;
5230 bitField0_ = (bitField0_ & ~0x00400000);
5231 handleSomePrimalGradientsOnFiniteBoundsAsResiduals_ =
true;
5236 private boolean useDiagonalQpTrustRegionSolver_ ;
5252 return ((bitField0_ & 0x00800000) != 0);
5269 return useDiagonalQpTrustRegionSolver_;
5287 useDiagonalQpTrustRegionSolver_ = value;
5288 bitField0_ |= 0x00800000;
5306 bitField0_ = (bitField0_ & ~0x00800000);
5307 useDiagonalQpTrustRegionSolver_ =
false;
5312 private double diagonalQpTrustRegionSolverTolerance_ = 1e-08D;
5327 return ((bitField0_ & 0x01000000) != 0);
5343 return diagonalQpTrustRegionSolverTolerance_;
5360 diagonalQpTrustRegionSolverTolerance_ = value;
5361 bitField0_ |= 0x01000000;
5378 bitField0_ = (bitField0_ & ~0x01000000);
5379 diagonalQpTrustRegionSolverTolerance_ = 1e-08D;
5384 private boolean useFeasibilityPolishing_ ;
5420 return ((bitField0_ & 0x02000000) != 0);
5457 return useFeasibilityPolishing_;
5495 useFeasibilityPolishing_ = value;
5496 bitField0_ |= 0x02000000;
5534 bitField0_ = (bitField0_ & ~0x02000000);
5535 useFeasibilityPolishing_ =
false;
5546 DEFAULT_INSTANCE =
new com.google.ortools.pdlp.PrimalDualHybridGradientParams();
5550 return DEFAULT_INSTANCE;
5557 com.google.protobuf.CodedInputStream input,
5558 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5559 throws com.google.protobuf.InvalidProtocolBufferException {
5562 builder.mergeFrom(input, extensionRegistry);
5563 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
5564 throw e.setUnfinishedMessage(builder.buildPartial());
5565 }
catch (com.google.protobuf.UninitializedMessageException e) {
5566 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
5567 }
catch (java.io.IOException e) {
5568 throw new com.google.protobuf.InvalidProtocolBufferException(e)
5569 .setUnfinishedMessage(builder.buildPartial());
5571 return builder.buildPartial();
5586 return DEFAULT_INSTANCE;