6package com.google.ortools.pdlp;
24public final class PrimalDualHybridGradientParams
extends
25 com.google.protobuf.GeneratedMessage implements
28private static final long serialVersionUID = 0L;
30 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
31 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
36 PrimalDualHybridGradientParams.class.getName());
39 private PrimalDualHybridGradientParams(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
42 private PrimalDualHybridGradientParams() {
45 majorIterationFrequency_ = 64;
46 terminationCheckFrequency_ = 64;
48 primalWeightUpdateSmoothing_ = 0.5D;
49 lInfRuizIterations_ = 5;
50 l2NormRescaling_ =
true;
51 sufficientReductionForRestart_ = 0.1D;
52 necessaryReductionForRestart_ = 0.9D;
54 initialStepSizeScaling_ = 1D;
55 randomProjectionSeeds_ = emptyIntList();
56 infiniteConstraintBoundThreshold_ = Double.POSITIVE_INFINITY;
57 handleSomePrimalGradientsOnFiniteBoundsAsResiduals_ =
true;
58 diagonalQpTrustRegionSolverTolerance_ = 1e-08D;
61 public static final com.google.protobuf.Descriptors.Descriptor
63 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_PrimalDualHybridGradientParams_descriptor;
67 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
69 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_PrimalDualHybridGradientParams_fieldAccessorTable
70 .ensureFieldAccessorsInitialized(
71 com.google.ortools.pdlp.PrimalDualHybridGradientParams.class, com.google.ortools.pdlp.PrimalDualHybridGradientParams.Builder.class);
77 public enum RestartStrategy
78 implements com.google.protobuf.ProtocolMessageEnum {
129 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
130 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
135 RestartStrategy.class.getName());
195 @java.lang.Deprecated
196 public static RestartStrategy
valueOf(
int value) {
211 default:
return null;
215 public static com.google.protobuf.Internal.EnumLiteMap<
RestartStrategy>
217 return internalValueMap;
219 private static final com.google.protobuf.Internal.EnumLiteMap<
227 public final com.google.protobuf.Descriptors.EnumValueDescriptor
231 public final com.google.protobuf.Descriptors.EnumDescriptor
235 public static final com.google.protobuf.Descriptors.EnumDescriptor
237 return com.google.ortools.pdlp.PrimalDualHybridGradientParams.getDescriptor().getEnumTypes().get(0);
243 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
245 throw new java.lang.IllegalArgumentException(
246 "EnumValueDescriptor is not for this type.");
248 return VALUES[desc.getIndex()];
251 private final int value;
263 public enum LinesearchRule
264 implements com.google.protobuf.ProtocolMessageEnum {
303 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
304 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
309 LinesearchRule.class.getName());
357 @java.lang.Deprecated
358 public static LinesearchRule
valueOf(
int value) {
372 default:
return null;
376 public static com.google.protobuf.Internal.EnumLiteMap<
LinesearchRule>
378 return internalValueMap;
380 private static final com.google.protobuf.Internal.EnumLiteMap<
388 public final com.google.protobuf.Descriptors.EnumValueDescriptor
392 public final com.google.protobuf.Descriptors.EnumDescriptor
396 public static final com.google.protobuf.Descriptors.EnumDescriptor
398 return com.google.ortools.pdlp.PrimalDualHybridGradientParams.getDescriptor().getEnumTypes().get(1);
404 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
406 throw new java.lang.IllegalArgumentException(
407 "EnumValueDescriptor is not for this type.");
409 return VALUES[desc.getIndex()];
412 private final int value;
423 com.google.protobuf.MessageOrBuilder {
491 public static final class PresolveOptions
extends
492 com.google.protobuf.GeneratedMessage implements
495 private static final long serialVersionUID = 0L;
497 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
498 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
503 PresolveOptions.class.getName());
506 private PresolveOptions(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
509 private PresolveOptions() {
512 public static final com.google.protobuf.Descriptors.Descriptor
514 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_PrimalDualHybridGradientParams_PresolveOptions_descriptor;
518 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
520 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_PrimalDualHybridGradientParams_PresolveOptions_fieldAccessorTable
521 .ensureFieldAccessorsInitialized(
522 com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.class, com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.Builder.class);
525 private int bitField0_;
527 private boolean useGlop_ =
false;
545 return ((bitField0_ & 0x00000001) != 0);
580 return ((bitField0_ & 0x00000002) != 0);
593 return glopParameters_ ==
null ? com.google.ortools.glop.GlopParameters.getDefaultInstance() : glopParameters_;
605 return glopParameters_ ==
null ? com.google.ortools.glop.GlopParameters.getDefaultInstance() : glopParameters_;
608 private byte memoizedIsInitialized = -1;
615 memoizedIsInitialized = 1;
620 public void writeTo(com.google.protobuf.CodedOutputStream output)
621 throws java.io.IOException {
622 if (((bitField0_ & 0x00000001) != 0)) {
623 output.writeBool(1, useGlop_);
625 if (((bitField0_ & 0x00000002) != 0)) {
628 getUnknownFields().writeTo(output);
633 int size = memoizedSize;
634 if (size != -1)
return size;
637 if (((bitField0_ & 0x00000001) != 0)) {
638 size += com.google.protobuf.CodedOutputStream
639 .computeBoolSize(1, useGlop_);
641 if (((bitField0_ & 0x00000002) != 0)) {
642 size += com.google.protobuf.CodedOutputStream
645 size += getUnknownFields().getSerializedSize();
651 public boolean equals(
final java.lang.Object obj) {
655 if (!(obj instanceof com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions)) {
656 return super.equals(obj);
670 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
676 if (memoizedHashCode != 0) {
677 return memoizedHashCode;
683 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
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();
772 public static Builder newBuilder(com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions prototype) {
773 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
777 return this == DEFAULT_INSTANCE
783 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
790 public static final class Builder
extends
791 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
794 public static final com.google.protobuf.Descriptors.Descriptor
796 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_PrimalDualHybridGradientParams_PresolveOptions_descriptor;
800 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
802 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_PrimalDualHybridGradientParams_PresolveOptions_fieldAccessorTable
803 .ensureFieldAccessorsInitialized(
804 com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.class, com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.Builder.class);
809 maybeForceBuilderInitialization();
813 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
815 maybeForceBuilderInitialization();
817 private void maybeForceBuilderInitialization() {
818 if (com.google.protobuf.GeneratedMessage
819 .alwaysUseFieldBuilders) {
820 getGlopParametersFieldBuilder();
828 glopParameters_ =
null;
829 if (glopParametersBuilder_ !=
null) {
830 glopParametersBuilder_.dispose();
831 glopParametersBuilder_ =
null;
837 public com.google.protobuf.Descriptors.Descriptor
839 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_PrimalDualHybridGradientParams_PresolveOptions_descriptor;
844 return com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.getDefaultInstance();
851 throw newUninitializedMessageException(result);
859 if (bitField0_ != 0) { buildPartial0(result); }
864 private void buildPartial0(com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions result) {
865 int from_bitField0_ = bitField0_;
866 int to_bitField0_ = 0;
867 if (((from_bitField0_ & 0x00000001) != 0)) {
868 result.useGlop_ = useGlop_;
869 to_bitField0_ |= 0x00000001;
871 if (((from_bitField0_ & 0x00000002) != 0)) {
872 result.glopParameters_ = glopParametersBuilder_ ==
null
874 : glopParametersBuilder_.build();
875 to_bitField0_ |= 0x00000002;
877 result.bitField0_ |= to_bitField0_;
881 public Builder
mergeFrom(com.google.protobuf.Message other) {
882 if (other instanceof com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions) {
883 return mergeFrom((com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions)other);
885 super.mergeFrom(other);
890 public Builder
mergeFrom(com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions other) {
891 if (other == com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.getDefaultInstance())
return this;
892 if (other.hasUseGlop()) {
895 if (other.hasGlopParameters()) {
898 this.mergeUnknownFields(other.getUnknownFields());
910 com.google.protobuf.CodedInputStream input,
911 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
912 throws java.io.IOException {
913 if (extensionRegistry ==
null) {
914 throw new java.lang.NullPointerException();
917 boolean done =
false;
919 int tag = input.readTag();
925 useGlop_ = input.readBool();
926 bitField0_ |= 0x00000001;
931 getGlopParametersFieldBuilder().getBuilder(),
933 bitField0_ |= 0x00000002;
937 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
944 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
945 throw e.unwrapIOException();
951 private int bitField0_;
953 private boolean useGlop_ ;
971 return ((bitField0_ & 0x00000001) != 0);
1011 bitField0_ |= 0x00000001;
1031 bitField0_ = (bitField0_ & ~0x00000001);
1038 private com.google.protobuf.SingleFieldBuilder<
1039 com.google.ortools.glop.GlopParameters, com.google.ortools.glop.GlopParameters.Builder, com.google.ortools.glop.GlopParametersOrBuilder> glopParametersBuilder_;
1050 return ((bitField0_ & 0x00000002) != 0);
1062 if (glopParametersBuilder_ ==
null) {
1063 return glopParameters_ ==
null ? com.google.ortools.glop.GlopParameters.getDefaultInstance() : glopParameters_;
1065 return glopParametersBuilder_.getMessage();
1077 if (glopParametersBuilder_ ==
null) {
1078 if (value ==
null) {
1079 throw new NullPointerException();
1081 glopParameters_ = value;
1083 glopParametersBuilder_.setMessage(value);
1085 bitField0_ |= 0x00000002;
1098 com.google.ortools.glop.GlopParameters.Builder builderForValue) {
1099 if (glopParametersBuilder_ ==
null) {
1100 glopParameters_ = builderForValue.build();
1102 glopParametersBuilder_.setMessage(builderForValue.build());
1104 bitField0_ |= 0x00000002;
1117 if (glopParametersBuilder_ ==
null) {
1118 if (((bitField0_ & 0x00000002) != 0) &&
1119 glopParameters_ !=
null &&
1120 glopParameters_ != com.google.ortools.glop.GlopParameters.getDefaultInstance()) {
1123 glopParameters_ = value;
1126 glopParametersBuilder_.mergeFrom(value);
1128 if (glopParameters_ !=
null) {
1129 bitField0_ |= 0x00000002;
1143 bitField0_ = (bitField0_ & ~0x00000002);
1144 glopParameters_ =
null;
1145 if (glopParametersBuilder_ !=
null) {
1146 glopParametersBuilder_.dispose();
1147 glopParametersBuilder_ =
null;
1161 bitField0_ |= 0x00000002;
1163 return getGlopParametersFieldBuilder().getBuilder();
1174 if (glopParametersBuilder_ !=
null) {
1175 return glopParametersBuilder_.getMessageOrBuilder();
1177 return glopParameters_ ==
null ?
1178 com.google.ortools.glop.GlopParameters.getDefaultInstance() : glopParameters_;
1189 private com.google.protobuf.SingleFieldBuilder<
1190 com.google.ortools.glop.GlopParameters, com.google.ortools.glop.GlopParameters.Builder, com.google.ortools.glop.GlopParametersOrBuilder>
1191 getGlopParametersFieldBuilder() {
1192 if (glopParametersBuilder_ ==
null) {
1193 glopParametersBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
1194 com.google.ortools.glop.GlopParameters, com.google.ortools.glop.GlopParameters.Builder, com.google.ortools.glop.GlopParametersOrBuilder>(
1196 getParentForChildren(),
1198 glopParameters_ =
null;
1200 return glopParametersBuilder_;
1209 DEFAULT_INSTANCE =
new com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions();
1213 return DEFAULT_INSTANCE;
1220 com.google.protobuf.CodedInputStream input,
1221 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1222 throws com.google.protobuf.InvalidProtocolBufferException {
1225 builder.
mergeFrom(input, extensionRegistry);
1226 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1228 }
catch (com.google.protobuf.UninitializedMessageException e) {
1229 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
1230 }
catch (java.io.IOException e) {
1231 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1238 public static com.google.protobuf.Parser<PresolveOptions>
parser() {
1249 return DEFAULT_INSTANCE;
1254 private int bitField0_;
1263 return ((bitField0_ & 0x00000001) != 0);
1271 return terminationCriteria_ ==
null ? com.google.ortools.pdlp.TerminationCriteria.getDefaultInstance() : terminationCriteria_;
1278 return terminationCriteria_ ==
null ? com.google.ortools.pdlp.TerminationCriteria.getDefaultInstance() : terminationCriteria_;
1282 private int numThreads_ = 1;
1296 return ((bitField0_ & 0x00000002) != 0);
1315 private int numShards_ = 0;
1334 return ((bitField0_ & 0x00000004) != 0);
1358 private int schedulerType_ = 1;
1369 return ((bitField0_ & 0x00000008) != 0);
1386 private boolean recordIterationStats_ =
false;
1400 return ((bitField0_ & 0x00000010) != 0);
1415 return recordIterationStats_;
1419 private int verbosityLevel_ = 0;
1440 return ((bitField0_ & 0x00000020) != 0);
1462 return verbosityLevel_;
1466 private double logIntervalSeconds_ = 0D;
1481 return ((bitField0_ & 0x00000040) != 0);
1497 return logIntervalSeconds_;
1501 private int majorIterationFrequency_ = 64;
1517 return ((bitField0_ & 0x00000080) != 0);
1534 return majorIterationFrequency_;
1538 private int terminationCheckFrequency_ = 64;
1551 return ((bitField0_ & 0x00000100) != 0);
1565 return terminationCheckFrequency_;
1569 private int restartStrategy_ = 3;
1581 return ((bitField0_ & 0x00000200) != 0);
1599 private double primalWeightUpdateSmoothing_ = 0.5D;
1617 return ((bitField0_ & 0x00000400) != 0);
1636 return primalWeightUpdateSmoothing_;
1640 private double initialPrimalWeight_ = 0D;
1657 return ((bitField0_ & 0x00000800) != 0);
1675 return initialPrimalWeight_;
1686 return ((bitField0_ & 0x00001000) != 0);
1694 return presolveOptions_ ==
null ? com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.getDefaultInstance() : presolveOptions_;
1701 return presolveOptions_ ==
null ? com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.getDefaultInstance() : presolveOptions_;
1705 private int lInfRuizIterations_ = 5;
1718 return ((bitField0_ & 0x00002000) != 0);
1732 return lInfRuizIterations_;
1736 private boolean l2NormRescaling_ =
true;
1748 return ((bitField0_ & 0x00004000) != 0);
1761 return l2NormRescaling_;
1765 private double sufficientReductionForRestart_ = 0.1D;
1778 return ((bitField0_ & 0x00008000) != 0);
1792 return sufficientReductionForRestart_;
1796 private double necessaryReductionForRestart_ = 0.9D;
1811 return ((bitField0_ & 0x00010000) != 0);
1827 return necessaryReductionForRestart_;
1831 private int linesearchRule_ = 1;
1841 return ((bitField0_ & 0x00020000) != 0);
1864 return ((bitField0_ & 0x00040000) != 0);
1872 return adaptiveLinesearchParameters_ ==
null ? com.google.ortools.pdlp.AdaptiveLinesearchParams.getDefaultInstance() : adaptiveLinesearchParameters_;
1879 return adaptiveLinesearchParameters_ ==
null ? com.google.ortools.pdlp.AdaptiveLinesearchParams.getDefaultInstance() : adaptiveLinesearchParameters_;
1890 return ((bitField0_ & 0x00080000) != 0);
1898 return malitskyPockParameters_ ==
null ? com.google.ortools.pdlp.MalitskyPockParams.getDefaultInstance() : malitskyPockParameters_;
1905 return malitskyPockParameters_ ==
null ? com.google.ortools.pdlp.MalitskyPockParams.getDefaultInstance() : malitskyPockParameters_;
1909 private double initialStepSizeScaling_ = 1D;
1921 return ((bitField0_ & 0x00100000) != 0);
1934 return initialStepSizeScaling_;
1938 @SuppressWarnings(
"serial")
1939 private com.google.protobuf.Internal.IntList randomProjectionSeeds_ =
1955 public java.
util.List<java.lang.Integer>
1957 return randomProjectionSeeds_;
1973 return randomProjectionSeeds_.size();
1990 return randomProjectionSeeds_.getInt(index);
1992 private int randomProjectionSeedsMemoizedSerializedSize = -1;
1995 private double infiniteConstraintBoundThreshold_ = Double.POSITIVE_INFINITY;
2011 return ((bitField0_ & 0x00200000) != 0);
2028 return infiniteConstraintBoundThreshold_;
2032 private boolean handleSomePrimalGradientsOnFiniteBoundsAsResiduals_ =
true;
2045 return ((bitField0_ & 0x00400000) != 0);
2059 return handleSomePrimalGradientsOnFiniteBoundsAsResiduals_;
2063 private boolean useDiagonalQpTrustRegionSolver_ =
false;
2079 return ((bitField0_ & 0x00800000) != 0);
2096 return useDiagonalQpTrustRegionSolver_;
2100 private double diagonalQpTrustRegionSolverTolerance_ = 1e-08D;
2115 return ((bitField0_ & 0x01000000) != 0);
2131 return diagonalQpTrustRegionSolverTolerance_;
2135 private boolean useFeasibilityPolishing_ =
false;
2171 return ((bitField0_ & 0x02000000) != 0);
2208 return useFeasibilityPolishing_;
2211 private byte memoizedIsInitialized = -1;
2218 memoizedIsInitialized = 1;
2223 public void writeTo(com.google.protobuf.CodedOutputStream output)
2224 throws java.io.IOException {
2226 if (((bitField0_ & 0x00000001) != 0)) {
2229 if (((bitField0_ & 0x00000002) != 0)) {
2230 output.writeInt32(2, numThreads_);
2232 if (((bitField0_ & 0x00000010) != 0)) {
2233 output.writeBool(3, recordIterationStats_);
2235 if (((bitField0_ & 0x00000080) != 0)) {
2236 output.writeInt32(4, majorIterationFrequency_);
2238 if (((bitField0_ & 0x00000100) != 0)) {
2239 output.writeInt32(5, terminationCheckFrequency_);
2241 if (((bitField0_ & 0x00000200) != 0)) {
2242 output.writeEnum(6, restartStrategy_);
2244 if (((bitField0_ & 0x00000400) != 0)) {
2245 output.writeDouble(7, primalWeightUpdateSmoothing_);
2247 if (((bitField0_ & 0x00000800) != 0)) {
2248 output.writeDouble(8, initialPrimalWeight_);
2250 if (((bitField0_ & 0x00002000) != 0)) {
2251 output.writeInt32(9, lInfRuizIterations_);
2253 if (((bitField0_ & 0x00004000) != 0)) {
2254 output.writeBool(10, l2NormRescaling_);
2256 if (((bitField0_ & 0x00008000) != 0)) {
2257 output.writeDouble(11, sufficientReductionForRestart_);
2259 if (((bitField0_ & 0x00020000) != 0)) {
2260 output.writeEnum(12, linesearchRule_);
2262 if (((bitField0_ & 0x00001000) != 0)) {
2265 if (((bitField0_ & 0x00010000) != 0)) {
2266 output.writeDouble(17, necessaryReductionForRestart_);
2268 if (((bitField0_ & 0x00040000) != 0)) {
2271 if (((bitField0_ & 0x00080000) != 0)) {
2274 if (((bitField0_ & 0x00200000) != 0)) {
2275 output.writeDouble(22, infiniteConstraintBoundThreshold_);
2277 if (((bitField0_ & 0x00800000) != 0)) {
2278 output.writeBool(23, useDiagonalQpTrustRegionSolver_);
2280 if (((bitField0_ & 0x01000000) != 0)) {
2281 output.writeDouble(24, diagonalQpTrustRegionSolverTolerance_);
2283 if (((bitField0_ & 0x00100000) != 0)) {
2284 output.writeDouble(25, initialStepSizeScaling_);
2286 if (((bitField0_ & 0x00000020) != 0)) {
2287 output.writeInt32(26, verbosityLevel_);
2289 if (((bitField0_ & 0x00000004) != 0)) {
2290 output.writeInt32(27, numShards_);
2293 output.writeUInt32NoTag(226);
2294 output.writeUInt32NoTag(randomProjectionSeedsMemoizedSerializedSize);
2296 for (
int i = 0; i < randomProjectionSeeds_.size(); i++) {
2297 output.writeInt32NoTag(randomProjectionSeeds_.getInt(i));
2299 if (((bitField0_ & 0x00400000) != 0)) {
2300 output.writeBool(29, handleSomePrimalGradientsOnFiniteBoundsAsResiduals_);
2302 if (((bitField0_ & 0x02000000) != 0)) {
2303 output.writeBool(30, useFeasibilityPolishing_);
2305 if (((bitField0_ & 0x00000040) != 0)) {
2306 output.writeDouble(31, logIntervalSeconds_);
2308 if (((bitField0_ & 0x00000008) != 0)) {
2309 output.writeEnum(32, schedulerType_);
2311 getUnknownFields().writeTo(output);
2316 int size = memoizedSize;
2317 if (size != -1)
return size;
2320 if (((bitField0_ & 0x00000001) != 0)) {
2321 size += com.google.protobuf.CodedOutputStream
2324 if (((bitField0_ & 0x00000002) != 0)) {
2325 size += com.google.protobuf.CodedOutputStream
2326 .computeInt32Size(2, numThreads_);
2328 if (((bitField0_ & 0x00000010) != 0)) {
2329 size += com.google.protobuf.CodedOutputStream
2330 .computeBoolSize(3, recordIterationStats_);
2332 if (((bitField0_ & 0x00000080) != 0)) {
2333 size += com.google.protobuf.CodedOutputStream
2334 .computeInt32Size(4, majorIterationFrequency_);
2336 if (((bitField0_ & 0x00000100) != 0)) {
2337 size += com.google.protobuf.CodedOutputStream
2338 .computeInt32Size(5, terminationCheckFrequency_);
2340 if (((bitField0_ & 0x00000200) != 0)) {
2341 size += com.google.protobuf.CodedOutputStream
2342 .computeEnumSize(6, restartStrategy_);
2344 if (((bitField0_ & 0x00000400) != 0)) {
2345 size += com.google.protobuf.CodedOutputStream
2346 .computeDoubleSize(7, primalWeightUpdateSmoothing_);
2348 if (((bitField0_ & 0x00000800) != 0)) {
2349 size += com.google.protobuf.CodedOutputStream
2350 .computeDoubleSize(8, initialPrimalWeight_);
2352 if (((bitField0_ & 0x00002000) != 0)) {
2353 size += com.google.protobuf.CodedOutputStream
2354 .computeInt32Size(9, lInfRuizIterations_);
2356 if (((bitField0_ & 0x00004000) != 0)) {
2357 size += com.google.protobuf.CodedOutputStream
2358 .computeBoolSize(10, l2NormRescaling_);
2360 if (((bitField0_ & 0x00008000) != 0)) {
2361 size += com.google.protobuf.CodedOutputStream
2362 .computeDoubleSize(11, sufficientReductionForRestart_);
2364 if (((bitField0_ & 0x00020000) != 0)) {
2365 size += com.google.protobuf.CodedOutputStream
2366 .computeEnumSize(12, linesearchRule_);
2368 if (((bitField0_ & 0x00001000) != 0)) {
2369 size += com.google.protobuf.CodedOutputStream
2372 if (((bitField0_ & 0x00010000) != 0)) {
2373 size += com.google.protobuf.CodedOutputStream
2374 .computeDoubleSize(17, necessaryReductionForRestart_);
2376 if (((bitField0_ & 0x00040000) != 0)) {
2377 size += com.google.protobuf.CodedOutputStream
2380 if (((bitField0_ & 0x00080000) != 0)) {
2381 size += com.google.protobuf.CodedOutputStream
2384 if (((bitField0_ & 0x00200000) != 0)) {
2385 size += com.google.protobuf.CodedOutputStream
2386 .computeDoubleSize(22, infiniteConstraintBoundThreshold_);
2388 if (((bitField0_ & 0x00800000) != 0)) {
2389 size += com.google.protobuf.CodedOutputStream
2390 .computeBoolSize(23, useDiagonalQpTrustRegionSolver_);
2392 if (((bitField0_ & 0x01000000) != 0)) {
2393 size += com.google.protobuf.CodedOutputStream
2394 .computeDoubleSize(24, diagonalQpTrustRegionSolverTolerance_);
2396 if (((bitField0_ & 0x00100000) != 0)) {
2397 size += com.google.protobuf.CodedOutputStream
2398 .computeDoubleSize(25, initialStepSizeScaling_);
2400 if (((bitField0_ & 0x00000020) != 0)) {
2401 size += com.google.protobuf.CodedOutputStream
2402 .computeInt32Size(26, verbosityLevel_);
2404 if (((bitField0_ & 0x00000004) != 0)) {
2405 size += com.google.protobuf.CodedOutputStream
2406 .computeInt32Size(27, numShards_);
2410 for (
int i = 0; i < randomProjectionSeeds_.size(); i++) {
2411 dataSize += com.google.protobuf.CodedOutputStream
2412 .computeInt32SizeNoTag(randomProjectionSeeds_.getInt(i));
2417 size += com.google.protobuf.CodedOutputStream
2418 .computeInt32SizeNoTag(dataSize);
2420 randomProjectionSeedsMemoizedSerializedSize = dataSize;
2422 if (((bitField0_ & 0x00400000) != 0)) {
2423 size += com.google.protobuf.CodedOutputStream
2424 .computeBoolSize(29, handleSomePrimalGradientsOnFiniteBoundsAsResiduals_);
2426 if (((bitField0_ & 0x02000000) != 0)) {
2427 size += com.google.protobuf.CodedOutputStream
2428 .computeBoolSize(30, useFeasibilityPolishing_);
2430 if (((bitField0_ & 0x00000040) != 0)) {
2431 size += com.google.protobuf.CodedOutputStream
2432 .computeDoubleSize(31, logIntervalSeconds_);
2434 if (((bitField0_ & 0x00000008) != 0)) {
2435 size += com.google.protobuf.CodedOutputStream
2436 .computeEnumSize(32, schedulerType_);
2438 size += getUnknownFields().getSerializedSize();
2439 memoizedSize = size;
2444 public boolean equals(
final java.lang.Object obj) {
2448 if (!(obj instanceof com.google.ortools.pdlp.PrimalDualHybridGradientParams)) {
2449 return super.equals(obj);
2470 if (schedulerType_ != other.schedulerType_)
return false;
2485 != java.lang.Double.doubleToLongBits(
2500 if (restartStrategy_ != other.restartStrategy_)
return false;
2505 != java.lang.Double.doubleToLongBits(
2511 != java.lang.Double.doubleToLongBits(
2532 != java.lang.Double.doubleToLongBits(
2538 != java.lang.Double.doubleToLongBits(
2543 if (linesearchRule_ != other.linesearchRule_)
return false;
2558 != java.lang.Double.doubleToLongBits(
2566 != java.lang.Double.doubleToLongBits(
2582 != java.lang.Double.doubleToLongBits(
2590 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
2596 if (memoizedHashCode != 0) {
2597 return memoizedHashCode;
2615 hash = (53 * hash) + schedulerType_;
2619 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
2628 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2641 hash = (53 * hash) + restartStrategy_;
2645 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2650 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2663 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
2668 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2673 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2678 hash = (53 * hash) + linesearchRule_;
2690 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2699 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2704 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
2709 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
2714 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2719 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
2722 hash = (29 * hash) + getUnknownFields().hashCode();
2723 memoizedHashCode = hash;
2728 java.nio.ByteBuffer data)
2729 throws com.google.protobuf.InvalidProtocolBufferException {
2730 return PARSER.parseFrom(data);
2733 java.nio.ByteBuffer data,
2734 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2735 throws com.google.protobuf.InvalidProtocolBufferException {
2736 return PARSER.parseFrom(data, extensionRegistry);
2739 com.google.protobuf.ByteString data)
2740 throws com.google.protobuf.InvalidProtocolBufferException {
2741 return PARSER.parseFrom(data);
2744 com.google.protobuf.ByteString data,
2745 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2746 throws com.google.protobuf.InvalidProtocolBufferException {
2747 return PARSER.parseFrom(data, extensionRegistry);
2750 throws com.google.protobuf.InvalidProtocolBufferException {
2751 return PARSER.parseFrom(data);
2755 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2756 throws com.google.protobuf.InvalidProtocolBufferException {
2757 return PARSER.parseFrom(data, extensionRegistry);
2760 throws java.io.IOException {
2761 return com.google.protobuf.GeneratedMessage
2762 .parseWithIOException(PARSER, input);
2765 java.io.InputStream input,
2766 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2767 throws java.io.IOException {
2768 return com.google.protobuf.GeneratedMessage
2769 .parseWithIOException(PARSER, input, extensionRegistry);
2773 throws java.io.IOException {
2774 return com.google.protobuf.GeneratedMessage
2775 .parseDelimitedWithIOException(PARSER, input);
2779 java.io.InputStream input,
2780 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2781 throws java.io.IOException {
2782 return com.google.protobuf.GeneratedMessage
2783 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
2786 com.google.protobuf.CodedInputStream input)
2787 throws java.io.IOException {
2788 return com.google.protobuf.GeneratedMessage
2789 .parseWithIOException(PARSER, input);
2792 com.google.protobuf.CodedInputStream input,
2793 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2794 throws java.io.IOException {
2795 return com.google.protobuf.GeneratedMessage
2796 .parseWithIOException(PARSER, input, extensionRegistry);
2802 return DEFAULT_INSTANCE.toBuilder();
2804 public static Builder newBuilder(com.google.ortools.pdlp.PrimalDualHybridGradientParams prototype) {
2805 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
2809 return this == DEFAULT_INSTANCE
2815 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2835 public static final class Builder
extends
2836 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
2839 public static final com.google.protobuf.Descriptors.Descriptor
2841 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_PrimalDualHybridGradientParams_descriptor;
2845 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2847 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_PrimalDualHybridGradientParams_fieldAccessorTable
2848 .ensureFieldAccessorsInitialized(
2849 com.google.ortools.pdlp.PrimalDualHybridGradientParams.class, com.google.ortools.pdlp.PrimalDualHybridGradientParams.Builder.class);
2854 maybeForceBuilderInitialization();
2858 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2860 maybeForceBuilderInitialization();
2862 private void maybeForceBuilderInitialization() {
2863 if (com.google.protobuf.GeneratedMessage
2864 .alwaysUseFieldBuilders) {
2865 getTerminationCriteriaFieldBuilder();
2866 getPresolveOptionsFieldBuilder();
2867 getAdaptiveLinesearchParametersFieldBuilder();
2868 getMalitskyPockParametersFieldBuilder();
2875 terminationCriteria_ =
null;
2876 if (terminationCriteriaBuilder_ !=
null) {
2877 terminationCriteriaBuilder_.dispose();
2878 terminationCriteriaBuilder_ =
null;
2883 recordIterationStats_ =
false;
2884 verbosityLevel_ = 0;
2885 logIntervalSeconds_ = 0D;
2886 majorIterationFrequency_ = 64;
2887 terminationCheckFrequency_ = 64;
2888 restartStrategy_ = 3;
2889 primalWeightUpdateSmoothing_ = 0.5D;
2890 initialPrimalWeight_ = 0D;
2891 presolveOptions_ =
null;
2892 if (presolveOptionsBuilder_ !=
null) {
2893 presolveOptionsBuilder_.dispose();
2894 presolveOptionsBuilder_ =
null;
2896 lInfRuizIterations_ = 5;
2897 l2NormRescaling_ =
true;
2898 sufficientReductionForRestart_ = 0.1D;
2899 necessaryReductionForRestart_ = 0.9D;
2900 linesearchRule_ = 1;
2901 adaptiveLinesearchParameters_ =
null;
2902 if (adaptiveLinesearchParametersBuilder_ !=
null) {
2903 adaptiveLinesearchParametersBuilder_.dispose();
2904 adaptiveLinesearchParametersBuilder_ =
null;
2906 malitskyPockParameters_ =
null;
2907 if (malitskyPockParametersBuilder_ !=
null) {
2908 malitskyPockParametersBuilder_.dispose();
2909 malitskyPockParametersBuilder_ =
null;
2911 initialStepSizeScaling_ = 1D;
2912 randomProjectionSeeds_ = emptyIntList();
2913 infiniteConstraintBoundThreshold_ = Double.POSITIVE_INFINITY;
2914 handleSomePrimalGradientsOnFiniteBoundsAsResiduals_ =
true;
2915 useDiagonalQpTrustRegionSolver_ =
false;
2916 diagonalQpTrustRegionSolverTolerance_ = 1e-08D;
2917 useFeasibilityPolishing_ =
false;
2922 public com.google.protobuf.Descriptors.Descriptor
2924 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_PrimalDualHybridGradientParams_descriptor;
2929 return com.google.ortools.pdlp.PrimalDualHybridGradientParams.getDefaultInstance();
2936 throw newUninitializedMessageException(result);
2944 if (bitField0_ != 0) { buildPartial0(result); }
2949 private void buildPartial0(com.google.ortools.pdlp.PrimalDualHybridGradientParams result) {
2950 int from_bitField0_ = bitField0_;
2951 int to_bitField0_ = 0;
2952 if (((from_bitField0_ & 0x00000001) != 0)) {
2953 result.terminationCriteria_ = terminationCriteriaBuilder_ ==
null
2954 ? terminationCriteria_
2955 : terminationCriteriaBuilder_.build();
2956 to_bitField0_ |= 0x00000001;
2958 if (((from_bitField0_ & 0x00000002) != 0)) {
2959 result.numThreads_ = numThreads_;
2960 to_bitField0_ |= 0x00000002;
2962 if (((from_bitField0_ & 0x00000004) != 0)) {
2963 result.numShards_ = numShards_;
2964 to_bitField0_ |= 0x00000004;
2966 if (((from_bitField0_ & 0x00000008) != 0)) {
2967 result.schedulerType_ = schedulerType_;
2968 to_bitField0_ |= 0x00000008;
2970 if (((from_bitField0_ & 0x00000010) != 0)) {
2971 result.recordIterationStats_ = recordIterationStats_;
2972 to_bitField0_ |= 0x00000010;
2974 if (((from_bitField0_ & 0x00000020) != 0)) {
2975 result.verbosityLevel_ = verbosityLevel_;
2976 to_bitField0_ |= 0x00000020;
2978 if (((from_bitField0_ & 0x00000040) != 0)) {
2979 result.logIntervalSeconds_ = logIntervalSeconds_;
2980 to_bitField0_ |= 0x00000040;
2982 if (((from_bitField0_ & 0x00000080) != 0)) {
2983 result.majorIterationFrequency_ = majorIterationFrequency_;
2984 to_bitField0_ |= 0x00000080;
2986 if (((from_bitField0_ & 0x00000100) != 0)) {
2987 result.terminationCheckFrequency_ = terminationCheckFrequency_;
2988 to_bitField0_ |= 0x00000100;
2990 if (((from_bitField0_ & 0x00000200) != 0)) {
2991 result.restartStrategy_ = restartStrategy_;
2992 to_bitField0_ |= 0x00000200;
2994 if (((from_bitField0_ & 0x00000400) != 0)) {
2995 result.primalWeightUpdateSmoothing_ = primalWeightUpdateSmoothing_;
2996 to_bitField0_ |= 0x00000400;
2998 if (((from_bitField0_ & 0x00000800) != 0)) {
2999 result.initialPrimalWeight_ = initialPrimalWeight_;
3000 to_bitField0_ |= 0x00000800;
3002 if (((from_bitField0_ & 0x00001000) != 0)) {
3003 result.presolveOptions_ = presolveOptionsBuilder_ ==
null
3005 : presolveOptionsBuilder_.build();
3006 to_bitField0_ |= 0x00001000;
3008 if (((from_bitField0_ & 0x00002000) != 0)) {
3009 result.lInfRuizIterations_ = lInfRuizIterations_;
3010 to_bitField0_ |= 0x00002000;
3012 if (((from_bitField0_ & 0x00004000) != 0)) {
3013 result.l2NormRescaling_ = l2NormRescaling_;
3014 to_bitField0_ |= 0x00004000;
3016 if (((from_bitField0_ & 0x00008000) != 0)) {
3017 result.sufficientReductionForRestart_ = sufficientReductionForRestart_;
3018 to_bitField0_ |= 0x00008000;
3020 if (((from_bitField0_ & 0x00010000) != 0)) {
3021 result.necessaryReductionForRestart_ = necessaryReductionForRestart_;
3022 to_bitField0_ |= 0x00010000;
3024 if (((from_bitField0_ & 0x00020000) != 0)) {
3025 result.linesearchRule_ = linesearchRule_;
3026 to_bitField0_ |= 0x00020000;
3028 if (((from_bitField0_ & 0x00040000) != 0)) {
3029 result.adaptiveLinesearchParameters_ = adaptiveLinesearchParametersBuilder_ ==
null
3030 ? adaptiveLinesearchParameters_
3031 : adaptiveLinesearchParametersBuilder_.build();
3032 to_bitField0_ |= 0x00040000;
3034 if (((from_bitField0_ & 0x00080000) != 0)) {
3035 result.malitskyPockParameters_ = malitskyPockParametersBuilder_ ==
null
3036 ? malitskyPockParameters_
3037 : malitskyPockParametersBuilder_.build();
3038 to_bitField0_ |= 0x00080000;
3040 if (((from_bitField0_ & 0x00100000) != 0)) {
3041 result.initialStepSizeScaling_ = initialStepSizeScaling_;
3042 to_bitField0_ |= 0x00100000;
3044 if (((from_bitField0_ & 0x00200000) != 0)) {
3045 randomProjectionSeeds_.makeImmutable();
3046 result.randomProjectionSeeds_ = randomProjectionSeeds_;
3048 if (((from_bitField0_ & 0x00400000) != 0)) {
3049 result.infiniteConstraintBoundThreshold_ = infiniteConstraintBoundThreshold_;
3050 to_bitField0_ |= 0x00200000;
3052 if (((from_bitField0_ & 0x00800000) != 0)) {
3053 result.handleSomePrimalGradientsOnFiniteBoundsAsResiduals_ = handleSomePrimalGradientsOnFiniteBoundsAsResiduals_;
3054 to_bitField0_ |= 0x00400000;
3056 if (((from_bitField0_ & 0x01000000) != 0)) {
3057 result.useDiagonalQpTrustRegionSolver_ = useDiagonalQpTrustRegionSolver_;
3058 to_bitField0_ |= 0x00800000;
3060 if (((from_bitField0_ & 0x02000000) != 0)) {
3061 result.diagonalQpTrustRegionSolverTolerance_ = diagonalQpTrustRegionSolverTolerance_;
3062 to_bitField0_ |= 0x01000000;
3064 if (((from_bitField0_ & 0x04000000) != 0)) {
3065 result.useFeasibilityPolishing_ = useFeasibilityPolishing_;
3066 to_bitField0_ |= 0x02000000;
3068 result.bitField0_ |= to_bitField0_;
3072 public Builder
mergeFrom(com.google.protobuf.Message other) {
3073 if (other instanceof com.google.ortools.pdlp.PrimalDualHybridGradientParams) {
3074 return mergeFrom((com.google.ortools.pdlp.PrimalDualHybridGradientParams)other);
3076 super.mergeFrom(other);
3081 public Builder
mergeFrom(com.google.ortools.pdlp.PrimalDualHybridGradientParams other) {
3082 if (other == com.google.ortools.pdlp.PrimalDualHybridGradientParams.getDefaultInstance())
return this;
3083 if (other.hasTerminationCriteria()) {
3086 if (other.hasNumThreads()) {
3089 if (other.hasNumShards()) {
3092 if (other.hasSchedulerType()) {
3095 if (other.hasRecordIterationStats()) {
3098 if (other.hasVerbosityLevel()) {
3101 if (other.hasLogIntervalSeconds()) {
3104 if (other.hasMajorIterationFrequency()) {
3107 if (other.hasTerminationCheckFrequency()) {
3110 if (other.hasRestartStrategy()) {
3113 if (other.hasPrimalWeightUpdateSmoothing()) {
3116 if (other.hasInitialPrimalWeight()) {
3119 if (other.hasPresolveOptions()) {
3122 if (other.hasLInfRuizIterations()) {
3125 if (other.hasL2NormRescaling()) {
3128 if (other.hasSufficientReductionForRestart()) {
3131 if (other.hasNecessaryReductionForRestart()) {
3134 if (other.hasLinesearchRule()) {
3137 if (other.hasAdaptiveLinesearchParameters()) {
3140 if (other.hasMalitskyPockParameters()) {
3143 if (other.hasInitialStepSizeScaling()) {
3146 if (!other.randomProjectionSeeds_.isEmpty()) {
3147 if (randomProjectionSeeds_.isEmpty()) {
3148 randomProjectionSeeds_ = other.randomProjectionSeeds_;
3149 randomProjectionSeeds_.makeImmutable();
3150 bitField0_ |= 0x00200000;
3152 ensureRandomProjectionSeedsIsMutable();
3153 randomProjectionSeeds_.addAll(other.randomProjectionSeeds_);
3157 if (other.hasInfiniteConstraintBoundThreshold()) {
3160 if (other.hasHandleSomePrimalGradientsOnFiniteBoundsAsResiduals()) {
3163 if (other.hasUseDiagonalQpTrustRegionSolver()) {
3166 if (other.hasDiagonalQpTrustRegionSolverTolerance()) {
3169 if (other.hasUseFeasibilityPolishing()) {
3172 this.mergeUnknownFields(other.getUnknownFields());
3184 com.google.protobuf.CodedInputStream input,
3185 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3186 throws java.io.IOException {
3187 if (extensionRegistry ==
null) {
3188 throw new java.lang.NullPointerException();
3191 boolean done =
false;
3193 int tag = input.readTag();
3200 getTerminationCriteriaFieldBuilder().getBuilder(),
3202 bitField0_ |= 0x00000001;
3206 numThreads_ = input.readInt32();
3207 bitField0_ |= 0x00000002;
3211 recordIterationStats_ = input.readBool();
3212 bitField0_ |= 0x00000010;
3216 majorIterationFrequency_ = input.readInt32();
3217 bitField0_ |= 0x00000080;
3221 terminationCheckFrequency_ = input.readInt32();
3222 bitField0_ |= 0x00000100;
3226 int tmpRaw = input.readEnum();
3228 com.google.ortools.pdlp.PrimalDualHybridGradientParams.RestartStrategy.forNumber(tmpRaw);
3229 if (tmpValue ==
null) {
3230 mergeUnknownVarintField(6, tmpRaw);
3232 restartStrategy_ = tmpRaw;
3233 bitField0_ |= 0x00000200;
3238 primalWeightUpdateSmoothing_ = input.readDouble();
3239 bitField0_ |= 0x00000400;
3243 initialPrimalWeight_ = input.readDouble();
3244 bitField0_ |= 0x00000800;
3248 lInfRuizIterations_ = input.readInt32();
3249 bitField0_ |= 0x00002000;
3253 l2NormRescaling_ = input.readBool();
3254 bitField0_ |= 0x00004000;
3258 sufficientReductionForRestart_ = input.readDouble();
3259 bitField0_ |= 0x00008000;
3263 int tmpRaw = input.readEnum();
3265 com.google.ortools.pdlp.PrimalDualHybridGradientParams.LinesearchRule.forNumber(tmpRaw);
3266 if (tmpValue ==
null) {
3267 mergeUnknownVarintField(12, tmpRaw);
3269 linesearchRule_ = tmpRaw;
3270 bitField0_ |= 0x00020000;
3276 getPresolveOptionsFieldBuilder().getBuilder(),
3278 bitField0_ |= 0x00001000;
3282 necessaryReductionForRestart_ = input.readDouble();
3283 bitField0_ |= 0x00010000;
3288 getAdaptiveLinesearchParametersFieldBuilder().getBuilder(),
3290 bitField0_ |= 0x00040000;
3295 getMalitskyPockParametersFieldBuilder().getBuilder(),
3297 bitField0_ |= 0x00080000;
3301 infiniteConstraintBoundThreshold_ = input.readDouble();
3302 bitField0_ |= 0x00400000;
3306 useDiagonalQpTrustRegionSolver_ = input.readBool();
3307 bitField0_ |= 0x01000000;
3311 diagonalQpTrustRegionSolverTolerance_ = input.readDouble();
3312 bitField0_ |= 0x02000000;
3316 initialStepSizeScaling_ = input.readDouble();
3317 bitField0_ |= 0x00100000;
3321 verbosityLevel_ = input.readInt32();
3322 bitField0_ |= 0x00000020;
3326 numShards_ = input.readInt32();
3327 bitField0_ |= 0x00000004;
3331 int v = input.readInt32();
3332 ensureRandomProjectionSeedsIsMutable();
3333 randomProjectionSeeds_.addInt(v);
3337 int length = input.readRawVarint32();
3338 int limit = input.pushLimit(length);
3339 ensureRandomProjectionSeedsIsMutable();
3340 while (input.getBytesUntilLimit() > 0) {
3341 randomProjectionSeeds_.addInt(input.readInt32());
3343 input.popLimit(limit);
3347 handleSomePrimalGradientsOnFiniteBoundsAsResiduals_ = input.readBool();
3348 bitField0_ |= 0x00800000;
3352 useFeasibilityPolishing_ = input.readBool();
3353 bitField0_ |= 0x04000000;
3357 logIntervalSeconds_ = input.readDouble();
3358 bitField0_ |= 0x00000040;
3362 int tmpRaw = input.readEnum();
3364 com.google.ortools.pdlp.SchedulerType.forNumber(tmpRaw);
3365 if (tmpValue ==
null) {
3366 mergeUnknownVarintField(32, tmpRaw);
3368 schedulerType_ = tmpRaw;
3369 bitField0_ |= 0x00000008;
3374 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
3381 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
3382 throw e.unwrapIOException();
3388 private int bitField0_;
3391 private com.google.protobuf.SingleFieldBuilder<
3392 com.google.ortools.pdlp.TerminationCriteria, com.google.ortools.pdlp.TerminationCriteria.Builder, com.google.ortools.pdlp.TerminationCriteriaOrBuilder> terminationCriteriaBuilder_;
3398 return ((bitField0_ & 0x00000001) != 0);
3405 if (terminationCriteriaBuilder_ ==
null) {
3406 return terminationCriteria_ ==
null ? com.google.ortools.pdlp.TerminationCriteria.getDefaultInstance() : terminationCriteria_;
3408 return terminationCriteriaBuilder_.getMessage();
3415 if (terminationCriteriaBuilder_ ==
null) {
3416 if (value ==
null) {
3417 throw new NullPointerException();
3419 terminationCriteria_ = value;
3421 terminationCriteriaBuilder_.setMessage(value);
3423 bitField0_ |= 0x00000001;
3431 com.google.ortools.pdlp.TerminationCriteria.Builder builderForValue) {
3432 if (terminationCriteriaBuilder_ ==
null) {
3433 terminationCriteria_ = builderForValue.build();
3435 terminationCriteriaBuilder_.setMessage(builderForValue.build());
3437 bitField0_ |= 0x00000001;
3445 if (terminationCriteriaBuilder_ ==
null) {
3446 if (((bitField0_ & 0x00000001) != 0) &&
3447 terminationCriteria_ !=
null &&
3448 terminationCriteria_ != com.google.ortools.pdlp.TerminationCriteria.getDefaultInstance()) {
3451 terminationCriteria_ = value;
3454 terminationCriteriaBuilder_.mergeFrom(value);
3456 if (terminationCriteria_ !=
null) {
3457 bitField0_ |= 0x00000001;
3466 bitField0_ = (bitField0_ & ~0x00000001);
3467 terminationCriteria_ =
null;
3468 if (terminationCriteriaBuilder_ !=
null) {
3469 terminationCriteriaBuilder_.dispose();
3470 terminationCriteriaBuilder_ =
null;
3479 bitField0_ |= 0x00000001;
3481 return getTerminationCriteriaFieldBuilder().getBuilder();
3487 if (terminationCriteriaBuilder_ !=
null) {
3488 return terminationCriteriaBuilder_.getMessageOrBuilder();
3490 return terminationCriteria_ ==
null ?
3491 com.google.ortools.pdlp.TerminationCriteria.getDefaultInstance() : terminationCriteria_;
3497 private com.google.protobuf.SingleFieldBuilder<
3498 com.google.ortools.pdlp.TerminationCriteria, com.google.ortools.pdlp.TerminationCriteria.Builder, com.google.ortools.pdlp.TerminationCriteriaOrBuilder>
3499 getTerminationCriteriaFieldBuilder() {
3500 if (terminationCriteriaBuilder_ ==
null) {
3501 terminationCriteriaBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
3502 com.google.ortools.pdlp.TerminationCriteria, com.google.ortools.pdlp.TerminationCriteria.Builder, com.google.ortools.pdlp.TerminationCriteriaOrBuilder>(
3504 getParentForChildren(),
3506 terminationCriteria_ =
null;
3508 return terminationCriteriaBuilder_;
3511 private int numThreads_ = 1;
3525 return ((bitField0_ & 0x00000002) != 0);
3556 numThreads_ = value;
3557 bitField0_ |= 0x00000002;
3573 bitField0_ = (bitField0_ & ~0x00000002);
3579 private int numShards_ ;
3598 return ((bitField0_ & 0x00000004) != 0);
3640 bitField0_ |= 0x00000004;
3661 bitField0_ = (bitField0_ & ~0x00000004);
3667 private int schedulerType_ = 1;
3678 return ((bitField0_ & 0x00000008) != 0);
3705 if (value ==
null) {
3706 throw new NullPointerException();
3708 bitField0_ |= 0x00000008;
3709 schedulerType_ = value.getNumber();
3723 bitField0_ = (bitField0_ & ~0x00000008);
3729 private boolean recordIterationStats_ ;
3743 return ((bitField0_ & 0x00000010) != 0);
3758 return recordIterationStats_;
3774 recordIterationStats_ = value;
3775 bitField0_ |= 0x00000010;
3791 bitField0_ = (bitField0_ & ~0x00000010);
3792 recordIterationStats_ =
false;
3797 private int verbosityLevel_ ;
3818 return ((bitField0_ & 0x00000020) != 0);
3840 return verbosityLevel_;
3863 verbosityLevel_ = value;
3864 bitField0_ |= 0x00000020;
3887 bitField0_ = (bitField0_ & ~0x00000020);
3888 verbosityLevel_ = 0;
3893 private double logIntervalSeconds_ ;
3908 return ((bitField0_ & 0x00000040) != 0);
3924 return logIntervalSeconds_;
3941 logIntervalSeconds_ = value;
3942 bitField0_ |= 0x00000040;
3959 bitField0_ = (bitField0_ & ~0x00000040);
3960 logIntervalSeconds_ = 0D;
3965 private int majorIterationFrequency_ = 64;
3981 return ((bitField0_ & 0x00000080) != 0);
3998 return majorIterationFrequency_;
4016 majorIterationFrequency_ = value;
4017 bitField0_ |= 0x00000080;
4035 bitField0_ = (bitField0_ & ~0x00000080);
4036 majorIterationFrequency_ = 64;
4041 private int terminationCheckFrequency_ = 64;
4054 return ((bitField0_ & 0x00000100) != 0);
4068 return terminationCheckFrequency_;
4083 terminationCheckFrequency_ = value;
4084 bitField0_ |= 0x00000100;
4099 bitField0_ = (bitField0_ & ~0x00000100);
4100 terminationCheckFrequency_ = 64;
4105 private int restartStrategy_ = 3;
4117 return ((bitField0_ & 0x00000200) != 0);
4145 public Builder
setRestartStrategy(com.google.ortools.pdlp.PrimalDualHybridGradientParams.RestartStrategy value) {
4146 if (value ==
null) {
4147 throw new NullPointerException();
4149 bitField0_ |= 0x00000200;
4150 restartStrategy_ = value.getNumber();
4165 bitField0_ = (bitField0_ & ~0x00000200);
4166 restartStrategy_ = 3;
4171 private double primalWeightUpdateSmoothing_ = 0.5D;
4189 return ((bitField0_ & 0x00000400) != 0);
4208 return primalWeightUpdateSmoothing_;
4228 primalWeightUpdateSmoothing_ = value;
4229 bitField0_ |= 0x00000400;
4249 bitField0_ = (bitField0_ & ~0x00000400);
4250 primalWeightUpdateSmoothing_ = 0.5D;
4255 private double initialPrimalWeight_ ;
4272 return ((bitField0_ & 0x00000800) != 0);
4290 return initialPrimalWeight_;
4309 initialPrimalWeight_ = value;
4310 bitField0_ |= 0x00000800;
4329 bitField0_ = (bitField0_ & ~0x00000800);
4330 initialPrimalWeight_ = 0D;
4336 private com.google.protobuf.SingleFieldBuilder<
4337 com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions, com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.Builder, com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptionsOrBuilder> presolveOptionsBuilder_;
4343 return ((bitField0_ & 0x00001000) != 0);
4350 if (presolveOptionsBuilder_ ==
null) {
4351 return presolveOptions_ ==
null ? com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.getDefaultInstance() : presolveOptions_;
4353 return presolveOptionsBuilder_.getMessage();
4359 public Builder
setPresolveOptions(com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions value) {
4360 if (presolveOptionsBuilder_ ==
null) {
4361 if (value ==
null) {
4362 throw new NullPointerException();
4364 presolveOptions_ = value;
4366 presolveOptionsBuilder_.setMessage(value);
4368 bitField0_ |= 0x00001000;
4376 com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.Builder builderForValue) {
4377 if (presolveOptionsBuilder_ ==
null) {
4378 presolveOptions_ = builderForValue.build();
4380 presolveOptionsBuilder_.setMessage(builderForValue.build());
4382 bitField0_ |= 0x00001000;
4389 public Builder
mergePresolveOptions(com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions value) {
4390 if (presolveOptionsBuilder_ ==
null) {
4391 if (((bitField0_ & 0x00001000) != 0) &&
4392 presolveOptions_ !=
null &&
4393 presolveOptions_ != com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.getDefaultInstance()) {
4396 presolveOptions_ = value;
4399 presolveOptionsBuilder_.mergeFrom(value);
4401 if (presolveOptions_ !=
null) {
4402 bitField0_ |= 0x00001000;
4411 bitField0_ = (bitField0_ & ~0x00001000);
4412 presolveOptions_ =
null;
4413 if (presolveOptionsBuilder_ !=
null) {
4414 presolveOptionsBuilder_.dispose();
4415 presolveOptionsBuilder_ =
null;
4424 bitField0_ |= 0x00001000;
4426 return getPresolveOptionsFieldBuilder().getBuilder();
4432 if (presolveOptionsBuilder_ !=
null) {
4433 return presolveOptionsBuilder_.getMessageOrBuilder();
4435 return presolveOptions_ ==
null ?
4436 com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.getDefaultInstance() : presolveOptions_;
4442 private com.google.protobuf.SingleFieldBuilder<
4443 com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions, com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.Builder, com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptionsOrBuilder>
4444 getPresolveOptionsFieldBuilder() {
4445 if (presolveOptionsBuilder_ ==
null) {
4446 presolveOptionsBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
4447 com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions, com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptions.Builder, com.google.ortools.pdlp.PrimalDualHybridGradientParams.PresolveOptionsOrBuilder>(
4449 getParentForChildren(),
4451 presolveOptions_ =
null;
4453 return presolveOptionsBuilder_;
4456 private int lInfRuizIterations_ = 5;
4469 return ((bitField0_ & 0x00002000) != 0);
4483 return lInfRuizIterations_;
4498 lInfRuizIterations_ = value;
4499 bitField0_ |= 0x00002000;
4514 bitField0_ = (bitField0_ & ~0x00002000);
4515 lInfRuizIterations_ = 5;
4520 private boolean l2NormRescaling_ =
true;
4532 return ((bitField0_ & 0x00004000) != 0);
4545 return l2NormRescaling_;
4559 l2NormRescaling_ = value;
4560 bitField0_ |= 0x00004000;
4574 bitField0_ = (bitField0_ & ~0x00004000);
4575 l2NormRescaling_ =
true;
4580 private double sufficientReductionForRestart_ = 0.1D;
4593 return ((bitField0_ & 0x00008000) != 0);
4607 return sufficientReductionForRestart_;
4622 sufficientReductionForRestart_ = value;
4623 bitField0_ |= 0x00008000;
4638 bitField0_ = (bitField0_ & ~0x00008000);
4639 sufficientReductionForRestart_ = 0.1D;
4644 private double necessaryReductionForRestart_ = 0.9D;
4659 return ((bitField0_ & 0x00010000) != 0);
4675 return necessaryReductionForRestart_;
4692 necessaryReductionForRestart_ = value;
4693 bitField0_ |= 0x00010000;
4710 bitField0_ = (bitField0_ & ~0x00010000);
4711 necessaryReductionForRestart_ = 0.9D;
4716 private int linesearchRule_ = 1;
4726 return ((bitField0_ & 0x00020000) != 0);
4750 public Builder
setLinesearchRule(com.google.ortools.pdlp.PrimalDualHybridGradientParams.LinesearchRule value) {
4751 if (value ==
null) {
4752 throw new NullPointerException();
4754 bitField0_ |= 0x00020000;
4755 linesearchRule_ = value.getNumber();
4768 bitField0_ = (bitField0_ & ~0x00020000);
4769 linesearchRule_ = 1;
4775 private com.google.protobuf.SingleFieldBuilder<
4776 com.google.ortools.pdlp.AdaptiveLinesearchParams, com.google.ortools.pdlp.AdaptiveLinesearchParams.Builder, com.google.ortools.pdlp.AdaptiveLinesearchParamsOrBuilder> adaptiveLinesearchParametersBuilder_;
4782 return ((bitField0_ & 0x00040000) != 0);
4789 if (adaptiveLinesearchParametersBuilder_ ==
null) {
4790 return adaptiveLinesearchParameters_ ==
null ? com.google.ortools.pdlp.AdaptiveLinesearchParams.getDefaultInstance() : adaptiveLinesearchParameters_;
4792 return adaptiveLinesearchParametersBuilder_.getMessage();
4799 if (adaptiveLinesearchParametersBuilder_ ==
null) {
4800 if (value ==
null) {
4801 throw new NullPointerException();
4803 adaptiveLinesearchParameters_ = value;
4805 adaptiveLinesearchParametersBuilder_.setMessage(value);
4807 bitField0_ |= 0x00040000;
4815 com.google.ortools.pdlp.AdaptiveLinesearchParams.Builder builderForValue) {
4816 if (adaptiveLinesearchParametersBuilder_ ==
null) {
4817 adaptiveLinesearchParameters_ = builderForValue.build();
4819 adaptiveLinesearchParametersBuilder_.setMessage(builderForValue.build());
4821 bitField0_ |= 0x00040000;
4829 if (adaptiveLinesearchParametersBuilder_ ==
null) {
4830 if (((bitField0_ & 0x00040000) != 0) &&
4831 adaptiveLinesearchParameters_ !=
null &&
4832 adaptiveLinesearchParameters_ != com.google.ortools.pdlp.AdaptiveLinesearchParams.getDefaultInstance()) {
4835 adaptiveLinesearchParameters_ = value;
4838 adaptiveLinesearchParametersBuilder_.mergeFrom(value);
4840 if (adaptiveLinesearchParameters_ !=
null) {
4841 bitField0_ |= 0x00040000;
4850 bitField0_ = (bitField0_ & ~0x00040000);
4851 adaptiveLinesearchParameters_ =
null;
4852 if (adaptiveLinesearchParametersBuilder_ !=
null) {
4853 adaptiveLinesearchParametersBuilder_.dispose();
4854 adaptiveLinesearchParametersBuilder_ =
null;
4863 bitField0_ |= 0x00040000;
4865 return getAdaptiveLinesearchParametersFieldBuilder().getBuilder();
4871 if (adaptiveLinesearchParametersBuilder_ !=
null) {
4872 return adaptiveLinesearchParametersBuilder_.getMessageOrBuilder();
4874 return adaptiveLinesearchParameters_ ==
null ?
4875 com.google.ortools.pdlp.AdaptiveLinesearchParams.getDefaultInstance() : adaptiveLinesearchParameters_;
4881 private com.google.protobuf.SingleFieldBuilder<
4882 com.google.ortools.pdlp.AdaptiveLinesearchParams, com.google.ortools.pdlp.AdaptiveLinesearchParams.Builder, com.google.ortools.pdlp.AdaptiveLinesearchParamsOrBuilder>
4883 getAdaptiveLinesearchParametersFieldBuilder() {
4884 if (adaptiveLinesearchParametersBuilder_ ==
null) {
4885 adaptiveLinesearchParametersBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
4886 com.google.ortools.pdlp.AdaptiveLinesearchParams, com.google.ortools.pdlp.AdaptiveLinesearchParams.Builder, com.google.ortools.pdlp.AdaptiveLinesearchParamsOrBuilder>(
4888 getParentForChildren(),
4890 adaptiveLinesearchParameters_ =
null;
4892 return adaptiveLinesearchParametersBuilder_;
4896 private com.google.protobuf.SingleFieldBuilder<
4897 com.google.ortools.pdlp.MalitskyPockParams, com.google.ortools.pdlp.MalitskyPockParams.Builder, com.google.ortools.pdlp.MalitskyPockParamsOrBuilder> malitskyPockParametersBuilder_;
4903 return ((bitField0_ & 0x00080000) != 0);
4910 if (malitskyPockParametersBuilder_ ==
null) {
4911 return malitskyPockParameters_ ==
null ? com.google.ortools.pdlp.MalitskyPockParams.getDefaultInstance() : malitskyPockParameters_;
4913 return malitskyPockParametersBuilder_.getMessage();
4920 if (malitskyPockParametersBuilder_ ==
null) {
4921 if (value ==
null) {
4922 throw new NullPointerException();
4924 malitskyPockParameters_ = value;
4926 malitskyPockParametersBuilder_.setMessage(value);
4928 bitField0_ |= 0x00080000;
4936 com.google.ortools.pdlp.MalitskyPockParams.Builder builderForValue) {
4937 if (malitskyPockParametersBuilder_ ==
null) {
4938 malitskyPockParameters_ = builderForValue.build();
4940 malitskyPockParametersBuilder_.setMessage(builderForValue.build());
4942 bitField0_ |= 0x00080000;
4950 if (malitskyPockParametersBuilder_ ==
null) {
4951 if (((bitField0_ & 0x00080000) != 0) &&
4952 malitskyPockParameters_ !=
null &&
4953 malitskyPockParameters_ != com.google.ortools.pdlp.MalitskyPockParams.getDefaultInstance()) {
4956 malitskyPockParameters_ = value;
4959 malitskyPockParametersBuilder_.mergeFrom(value);
4961 if (malitskyPockParameters_ !=
null) {
4962 bitField0_ |= 0x00080000;
4971 bitField0_ = (bitField0_ & ~0x00080000);
4972 malitskyPockParameters_ =
null;
4973 if (malitskyPockParametersBuilder_ !=
null) {
4974 malitskyPockParametersBuilder_.dispose();
4975 malitskyPockParametersBuilder_ =
null;
4984 bitField0_ |= 0x00080000;
4986 return getMalitskyPockParametersFieldBuilder().getBuilder();
4992 if (malitskyPockParametersBuilder_ !=
null) {
4993 return malitskyPockParametersBuilder_.getMessageOrBuilder();
4995 return malitskyPockParameters_ ==
null ?
4996 com.google.ortools.pdlp.MalitskyPockParams.getDefaultInstance() : malitskyPockParameters_;
5002 private com.google.protobuf.SingleFieldBuilder<
5003 com.google.ortools.pdlp.MalitskyPockParams, com.google.ortools.pdlp.MalitskyPockParams.Builder, com.google.ortools.pdlp.MalitskyPockParamsOrBuilder>
5004 getMalitskyPockParametersFieldBuilder() {
5005 if (malitskyPockParametersBuilder_ ==
null) {
5006 malitskyPockParametersBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
5007 com.google.ortools.pdlp.MalitskyPockParams, com.google.ortools.pdlp.MalitskyPockParams.Builder, com.google.ortools.pdlp.MalitskyPockParamsOrBuilder>(
5009 getParentForChildren(),
5011 malitskyPockParameters_ =
null;
5013 return malitskyPockParametersBuilder_;
5016 private double initialStepSizeScaling_ = 1D;
5028 return ((bitField0_ & 0x00100000) != 0);
5041 return initialStepSizeScaling_;
5055 initialStepSizeScaling_ = value;
5056 bitField0_ |= 0x00100000;
5070 bitField0_ = (bitField0_ & ~0x00100000);
5071 initialStepSizeScaling_ = 1D;
5076 private com.google.protobuf.Internal.IntList randomProjectionSeeds_ = emptyIntList();
5077 private void ensureRandomProjectionSeedsIsMutable() {
5078 if (!randomProjectionSeeds_.isModifiable()) {
5079 randomProjectionSeeds_ = makeMutableCopy(randomProjectionSeeds_);
5081 bitField0_ |= 0x00200000;
5096 public java.util.List<java.lang.Integer>
5098 randomProjectionSeeds_.makeImmutable();
5099 return randomProjectionSeeds_;
5115 return randomProjectionSeeds_.size();
5132 return randomProjectionSeeds_.getInt(index);
5150 int index,
int value) {
5152 ensureRandomProjectionSeedsIsMutable();
5153 randomProjectionSeeds_.setInt(index, value);
5154 bitField0_ |= 0x00200000;
5174 ensureRandomProjectionSeedsIsMutable();
5175 randomProjectionSeeds_.addInt(value);
5176 bitField0_ |= 0x00200000;
5195 java.lang.Iterable<? extends java.lang.Integer> values) {
5196 ensureRandomProjectionSeedsIsMutable();
5197 com.google.protobuf.AbstractMessageLite.Builder.addAll(
5198 values, randomProjectionSeeds_);
5199 bitField0_ |= 0x00200000;
5217 randomProjectionSeeds_ = emptyIntList();
5218 bitField0_ = (bitField0_ & ~0x00200000);
5223 private double infiniteConstraintBoundThreshold_ = Double.POSITIVE_INFINITY;
5239 return ((bitField0_ & 0x00400000) != 0);
5256 return infiniteConstraintBoundThreshold_;
5274 infiniteConstraintBoundThreshold_ = value;
5275 bitField0_ |= 0x00400000;
5293 bitField0_ = (bitField0_ & ~0x00400000);
5294 infiniteConstraintBoundThreshold_ = Double.POSITIVE_INFINITY;
5299 private boolean handleSomePrimalGradientsOnFiniteBoundsAsResiduals_ =
true;
5312 return ((bitField0_ & 0x00800000) != 0);
5326 return handleSomePrimalGradientsOnFiniteBoundsAsResiduals_;
5341 handleSomePrimalGradientsOnFiniteBoundsAsResiduals_ = value;
5342 bitField0_ |= 0x00800000;
5357 bitField0_ = (bitField0_ & ~0x00800000);
5358 handleSomePrimalGradientsOnFiniteBoundsAsResiduals_ =
true;
5363 private boolean useDiagonalQpTrustRegionSolver_ ;
5379 return ((bitField0_ & 0x01000000) != 0);
5396 return useDiagonalQpTrustRegionSolver_;
5414 useDiagonalQpTrustRegionSolver_ = value;
5415 bitField0_ |= 0x01000000;
5433 bitField0_ = (bitField0_ & ~0x01000000);
5434 useDiagonalQpTrustRegionSolver_ =
false;
5439 private double diagonalQpTrustRegionSolverTolerance_ = 1e-08D;
5454 return ((bitField0_ & 0x02000000) != 0);
5470 return diagonalQpTrustRegionSolverTolerance_;
5487 diagonalQpTrustRegionSolverTolerance_ = value;
5488 bitField0_ |= 0x02000000;
5505 bitField0_ = (bitField0_ & ~0x02000000);
5506 diagonalQpTrustRegionSolverTolerance_ = 1e-08D;
5511 private boolean useFeasibilityPolishing_ ;
5547 return ((bitField0_ & 0x04000000) != 0);
5584 return useFeasibilityPolishing_;
5622 useFeasibilityPolishing_ = value;
5623 bitField0_ |= 0x04000000;
5661 bitField0_ = (bitField0_ & ~0x04000000);
5662 useFeasibilityPolishing_ =
false;
5673 DEFAULT_INSTANCE =
new com.google.ortools.pdlp.PrimalDualHybridGradientParams();
5677 return DEFAULT_INSTANCE;
5684 com.google.protobuf.CodedInputStream input,
5685 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5686 throws com.google.protobuf.InvalidProtocolBufferException {
5689 builder.mergeFrom(input, extensionRegistry);
5690 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
5691 throw e.setUnfinishedMessage(builder.buildPartial());
5692 }
catch (com.google.protobuf.UninitializedMessageException e) {
5693 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
5694 }
catch (java.io.IOException e) {
5695 throw new com.google.protobuf.InvalidProtocolBufferException(e)
5696 .setUnfinishedMessage(builder.buildPartial());
5698 return builder.buildPartial();
5702 public static com.google.protobuf.Parser<PrimalDualHybridGradientParams>
parser() {
5713 return DEFAULT_INSTANCE;