161 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
165 private static readonly pb::MessageParser<TerminationCriteria> _parser =
new pb::MessageParser<TerminationCriteria>(() =>
new TerminationCriteria());
166 private pb::UnknownFieldSet _unknownFields;
167 private int _hasBits0;
168 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
169 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
170 public static pb::MessageParser<TerminationCriteria> Parser {
get {
return _parser; } }
172 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
173 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
174 public static pbr::MessageDescriptor Descriptor {
175 get {
return global::Google.OrTools.PDLP.SolversReflection.Descriptor.MessageTypes[0]; }
178 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
179 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
180 pbr::MessageDescriptor pb::IMessage.Descriptor {
181 get {
return Descriptor; }
184 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
185 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
190 partial
void OnConstruction();
192 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
193 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
195 _hasBits0 = other._hasBits0;
196 optimalityNorm_ = other.optimalityNorm_;
197 epsOptimalAbsolute_ = other.epsOptimalAbsolute_;
198 epsOptimalRelative_ = other.epsOptimalRelative_;
199 epsPrimalInfeasible_ = other.epsPrimalInfeasible_;
200 epsDualInfeasible_ = other.epsDualInfeasible_;
201 timeSecLimit_ = other.timeSecLimit_;
202 iterationLimit_ = other.iterationLimit_;
203 kktMatrixPassLimit_ = other.kktMatrixPassLimit_;
205 case OptimalityCriteriaOneofCase.SimpleOptimalityCriteria:
206 SimpleOptimalityCriteria = other.SimpleOptimalityCriteria.Clone();
208 case OptimalityCriteriaOneofCase.DetailedOptimalityCriteria:
209 DetailedOptimalityCriteria = other.DetailedOptimalityCriteria.Clone();
213 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
216 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
217 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
223 public const int OptimalityNormFieldNumber = 1;
224 private readonly
static global::Google.OrTools.PDLP.
OptimalityNorm OptimalityNormDefaultValue = global::Google.OrTools.PDLP.OptimalityNorm.L2;
226 private global::Google.OrTools.PDLP.OptimalityNorm optimalityNorm_;
230 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
231 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
233 get { if ((_hasBits0 & 1) != 0) { return optimalityNorm_; } else { return OptimalityNormDefaultValue; } }
236 optimalityNorm_ = value;
240 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
241 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
242 public bool HasOptimalityNorm {
243 get {
return (_hasBits0 & 1) != 0; }
246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
247 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
253 public const int SimpleOptimalityCriteriaFieldNumber = 9;
254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
255 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
256 public global::Google.OrTools.PDLP.TerminationCriteria.Types.SimpleOptimalityCriteria SimpleOptimalityCriteria {
257 get { return optimalityCriteriaCase_ == OptimalityCriteriaOneofCase.SimpleOptimalityCriteria ? (global::Google.OrTools.PDLP.TerminationCriteria.Types.SimpleOptimalityCriteria) optimalityCriteria_ : null; }
259 optimalityCriteria_ = value;
260 optimalityCriteriaCase_ = value == null ? OptimalityCriteriaOneofCase.None : OptimalityCriteriaOneofCase.SimpleOptimalityCriteria;
265 public const int DetailedOptimalityCriteriaFieldNumber = 10;
266 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
267 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
268 public global::Google.OrTools.PDLP.TerminationCriteria.Types.DetailedOptimalityCriteria DetailedOptimalityCriteria {
269 get { return optimalityCriteriaCase_ == OptimalityCriteriaOneofCase.DetailedOptimalityCriteria ? (global::Google.OrTools.PDLP.TerminationCriteria.Types.DetailedOptimalityCriteria) optimalityCriteria_ : null; }
271 optimalityCriteria_ = value;
272 optimalityCriteriaCase_ = value == null ? OptimalityCriteriaOneofCase.None : OptimalityCriteriaOneofCase.DetailedOptimalityCriteria;
277 public const int EpsOptimalAbsoluteFieldNumber = 2;
278 private readonly
static double EpsOptimalAbsoluteDefaultValue = 1e-06D;
280 private double epsOptimalAbsolute_;
287 [global::System.ObsoleteAttribute]
288 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
289 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
290 public double EpsOptimalAbsolute {
291 get {
if ((_hasBits0 & 2) != 0) {
return epsOptimalAbsolute_; }
else {
return EpsOptimalAbsoluteDefaultValue; } }
294 epsOptimalAbsolute_ = value;
298 [global::System.ObsoleteAttribute]
299 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
300 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
301 public bool HasEpsOptimalAbsolute {
302 get {
return (_hasBits0 & 2) != 0; }
305 [global::System.ObsoleteAttribute]
306 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
307 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
313 public const int EpsOptimalRelativeFieldNumber = 3;
314 private readonly
static double EpsOptimalRelativeDefaultValue = 1e-06D;
316 private double epsOptimalRelative_;
323 [global::System.ObsoleteAttribute]
324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
325 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
326 public double EpsOptimalRelative {
327 get {
if ((_hasBits0 & 4) != 0) {
return epsOptimalRelative_; }
else {
return EpsOptimalRelativeDefaultValue; } }
330 epsOptimalRelative_ = value;
334 [global::System.ObsoleteAttribute]
335 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
336 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
337 public bool HasEpsOptimalRelative {
338 get {
return (_hasBits0 & 4) != 0; }
341 [global::System.ObsoleteAttribute]
342 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
343 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
349 public const int EpsPrimalInfeasibleFieldNumber = 4;
350 private readonly
static double EpsPrimalInfeasibleDefaultValue = 1e-08D;
352 private double epsPrimalInfeasible_;
361 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
362 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
363 public double EpsPrimalInfeasible {
364 get {
if ((_hasBits0 & 8) != 0) {
return epsPrimalInfeasible_; }
else {
return EpsPrimalInfeasibleDefaultValue; } }
367 epsPrimalInfeasible_ = value;
371 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
372 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
373 public bool HasEpsPrimalInfeasible {
374 get {
return (_hasBits0 & 8) != 0; }
377 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
378 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
384 public const int EpsDualInfeasibleFieldNumber = 5;
385 private readonly
static double EpsDualInfeasibleDefaultValue = 1e-08D;
387 private double epsDualInfeasible_;
398 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
399 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
400 public double EpsDualInfeasible {
401 get {
if ((_hasBits0 & 16) != 0) {
return epsDualInfeasible_; }
else {
return EpsDualInfeasibleDefaultValue; } }
404 epsDualInfeasible_ = value;
408 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
409 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
410 public bool HasEpsDualInfeasible {
411 get {
return (_hasBits0 & 16) != 0; }
414 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
415 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
421 public const int TimeSecLimitFieldNumber = 6;
422 private readonly
static double TimeSecLimitDefaultValue =
double.PositiveInfinity;
424 private double timeSecLimit_;
429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
430 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
431 public double TimeSecLimit {
432 get {
if ((_hasBits0 & 32) != 0) {
return timeSecLimit_; }
else {
return TimeSecLimitDefaultValue; } }
435 timeSecLimit_ = value;
439 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
440 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
441 public bool HasTimeSecLimit {
442 get {
return (_hasBits0 & 32) != 0; }
445 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
446 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
452 public const int IterationLimitFieldNumber = 7;
453 private readonly
static int IterationLimitDefaultValue = 2147483647;
455 private int iterationLimit_;
460 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
461 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
462 public int IterationLimit {
463 get {
if ((_hasBits0 & 64) != 0) {
return iterationLimit_; }
else {
return IterationLimitDefaultValue; } }
466 iterationLimit_ = value;
470 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
471 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
472 public bool HasIterationLimit {
473 get {
return (_hasBits0 & 64) != 0; }
476 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
477 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
483 public const int KktMatrixPassLimitFieldNumber = 8;
484 private readonly
static double KktMatrixPassLimitDefaultValue =
double.PositiveInfinity;
486 private double kktMatrixPassLimit_;
491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
492 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
493 public double KktMatrixPassLimit {
494 get {
if ((_hasBits0 & 128) != 0) {
return kktMatrixPassLimit_; }
else {
return KktMatrixPassLimitDefaultValue; } }
497 kktMatrixPassLimit_ = value;
501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
502 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
503 public bool HasKktMatrixPassLimit {
504 get {
return (_hasBits0 & 128) != 0; }
507 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
508 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
513 private object optimalityCriteria_;
517 SimpleOptimalityCriteria = 9,
518 DetailedOptimalityCriteria = 10,
520 private OptimalityCriteriaOneofCase optimalityCriteriaCase_ = OptimalityCriteriaOneofCase.None;
521 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
522 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
524 get {
return optimalityCriteriaCase_; }
527 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
528 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
531 optimalityCriteria_ =
null;
534 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
535 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
536 public override bool Equals(
object other) {
540 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
541 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
543 if (ReferenceEquals(other,
null)) {
546 if (ReferenceEquals(other,
this)) {
552 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(EpsOptimalAbsolute, other.
EpsOptimalAbsolute))
return false;
553 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(EpsOptimalRelative, other.
EpsOptimalRelative))
return false;
554 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(EpsPrimalInfeasible, other.
EpsPrimalInfeasible))
return false;
555 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(EpsDualInfeasible, other.
EpsDualInfeasible))
return false;
556 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TimeSecLimit, other.
TimeSecLimit))
return false;
560 return Equals(_unknownFields, other._unknownFields);
563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
564 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
568 if (optimalityCriteriaCase_ ==
OptimalityCriteriaOneofCase.SimpleOptimalityCriteria) hash ^= SimpleOptimalityCriteria.GetHashCode();
569 if (optimalityCriteriaCase_ ==
OptimalityCriteriaOneofCase.DetailedOptimalityCriteria) hash ^= DetailedOptimalityCriteria.GetHashCode();
570 if (HasEpsOptimalAbsolute) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EpsOptimalAbsolute);
571 if (HasEpsOptimalRelative) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EpsOptimalRelative);
572 if (HasEpsPrimalInfeasible) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EpsPrimalInfeasible);
573 if (HasEpsDualInfeasible) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EpsDualInfeasible);
574 if (HasTimeSecLimit) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TimeSecLimit);
576 if (HasKktMatrixPassLimit) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(
KktMatrixPassLimit);
577 hash ^= (int) optimalityCriteriaCase_;
578 if (_unknownFields !=
null) {
579 hash ^= _unknownFields.GetHashCode();
584 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
585 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
587 return pb::JsonFormatter.ToDiagnosticString(
this);
590 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
591 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
592 public void WriteTo(pb::CodedOutputStream output) {
593 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
594 output.WriteRawMessage(
this);
596 if (HasOptimalityNorm) {
597 output.WriteRawTag(8);
600 if (HasEpsOptimalAbsolute) {
601 output.WriteRawTag(17);
602 output.WriteDouble(EpsOptimalAbsolute);
604 if (HasEpsOptimalRelative) {
605 output.WriteRawTag(25);
606 output.WriteDouble(EpsOptimalRelative);
608 if (HasEpsPrimalInfeasible) {
609 output.WriteRawTag(33);
610 output.WriteDouble(EpsPrimalInfeasible);
612 if (HasEpsDualInfeasible) {
613 output.WriteRawTag(41);
614 output.WriteDouble(EpsDualInfeasible);
616 if (HasTimeSecLimit) {
617 output.WriteRawTag(49);
618 output.WriteDouble(TimeSecLimit);
620 if (HasIterationLimit) {
621 output.WriteRawTag(56);
624 if (HasKktMatrixPassLimit) {
625 output.WriteRawTag(65);
629 output.WriteRawTag(74);
630 output.WriteMessage(SimpleOptimalityCriteria);
633 output.WriteRawTag(82);
634 output.WriteMessage(DetailedOptimalityCriteria);
636 if (_unknownFields !=
null) {
637 _unknownFields.WriteTo(output);
642 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
644 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
645 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
646 if (HasOptimalityNorm) {
647 output.WriteRawTag(8);
650 if (HasEpsOptimalAbsolute) {
651 output.WriteRawTag(17);
652 output.WriteDouble(EpsOptimalAbsolute);
654 if (HasEpsOptimalRelative) {
655 output.WriteRawTag(25);
656 output.WriteDouble(EpsOptimalRelative);
658 if (HasEpsPrimalInfeasible) {
659 output.WriteRawTag(33);
660 output.WriteDouble(EpsPrimalInfeasible);
662 if (HasEpsDualInfeasible) {
663 output.WriteRawTag(41);
664 output.WriteDouble(EpsDualInfeasible);
666 if (HasTimeSecLimit) {
667 output.WriteRawTag(49);
668 output.WriteDouble(TimeSecLimit);
670 if (HasIterationLimit) {
671 output.WriteRawTag(56);
672 output.WriteInt32(IterationLimit);
674 if (HasKktMatrixPassLimit) {
675 output.WriteRawTag(65);
676 output.WriteDouble(KktMatrixPassLimit);
678 if (optimalityCriteriaCase_ == OptimalityCriteriaOneofCase.SimpleOptimalityCriteria) {
679 output.WriteRawTag(74);
680 output.WriteMessage(SimpleOptimalityCriteria);
682 if (optimalityCriteriaCase_ == OptimalityCriteriaOneofCase.DetailedOptimalityCriteria) {
683 output.WriteRawTag(82);
684 output.WriteMessage(DetailedOptimalityCriteria);
686 if (_unknownFields !=
null) {
687 _unknownFields.WriteTo(ref output);
692 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
693 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
696 if (HasOptimalityNorm) {
697 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int)
OptimalityNorm);
700 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SimpleOptimalityCriteria);
703 size += 1 + pb::CodedOutputStream.ComputeMessageSize(DetailedOptimalityCriteria);
705 if (HasEpsOptimalAbsolute) {
708 if (HasEpsOptimalRelative) {
711 if (HasEpsPrimalInfeasible) {
714 if (HasEpsDualInfeasible) {
717 if (HasTimeSecLimit) {
720 if (HasIterationLimit) {
721 size += 1 + pb::CodedOutputStream.ComputeInt32Size(
IterationLimit);
723 if (HasKktMatrixPassLimit) {
726 if (_unknownFields !=
null) {
727 size += _unknownFields.CalculateSize();
732 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
733 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
764 if (SimpleOptimalityCriteria ==
null) {
765 SimpleOptimalityCriteria =
new global::Google.OrTools.PDLP.TerminationCriteria.Types.SimpleOptimalityCriteria();
770 if (DetailedOptimalityCriteria ==
null) {
771 DetailedOptimalityCriteria =
new global::Google.OrTools.PDLP.TerminationCriteria.Types.DetailedOptimalityCriteria();
777 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
781 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
783 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
784 input.ReadRawMessage(
this);
787 while ((tag = input.ReadTag()) != 0) {
790 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
793 OptimalityNorm = (global::Google.OrTools.PDLP.OptimalityNorm) input.ReadEnum();
797 EpsOptimalAbsolute = input.ReadDouble();
801 EpsOptimalRelative = input.ReadDouble();
805 EpsPrimalInfeasible = input.ReadDouble();
809 EpsDualInfeasible = input.ReadDouble();
813 TimeSecLimit = input.ReadDouble();
825 global::Google.OrTools.PDLP.TerminationCriteria.Types.SimpleOptimalityCriteria subBuilder =
new global::Google.OrTools.PDLP.TerminationCriteria.Types.SimpleOptimalityCriteria();
827 subBuilder.MergeFrom(SimpleOptimalityCriteria);
829 input.ReadMessage(subBuilder);
830 SimpleOptimalityCriteria = subBuilder;
834 global::Google.OrTools.PDLP.TerminationCriteria.Types.DetailedOptimalityCriteria subBuilder =
new global::Google.OrTools.PDLP.TerminationCriteria.Types.DetailedOptimalityCriteria();
836 subBuilder.MergeFrom(DetailedOptimalityCriteria);
838 input.ReadMessage(subBuilder);
839 DetailedOptimalityCriteria = subBuilder;
847 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
848 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
849 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
850 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
852 while ((tag = input.ReadTag()) != 0) {
855 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
858 OptimalityNorm = (global::Google.OrTools.PDLP.OptimalityNorm) input.ReadEnum();
862 EpsOptimalAbsolute = input.ReadDouble();
866 EpsOptimalRelative = input.ReadDouble();
870 EpsPrimalInfeasible = input.ReadDouble();
874 EpsDualInfeasible = input.ReadDouble();
878 TimeSecLimit = input.ReadDouble();
890 global::Google.OrTools.PDLP.TerminationCriteria.Types.SimpleOptimalityCriteria subBuilder =
new global::Google.OrTools.PDLP.TerminationCriteria.Types.SimpleOptimalityCriteria();
891 if (optimalityCriteriaCase_ == OptimalityCriteriaOneofCase.SimpleOptimalityCriteria) {
892 subBuilder.MergeFrom(SimpleOptimalityCriteria);
894 input.ReadMessage(subBuilder);
895 SimpleOptimalityCriteria = subBuilder;
899 global::Google.OrTools.PDLP.TerminationCriteria.Types.DetailedOptimalityCriteria subBuilder =
new global::Google.OrTools.PDLP.TerminationCriteria.Types.DetailedOptimalityCriteria();
900 if (optimalityCriteriaCase_ == OptimalityCriteriaOneofCase.DetailedOptimalityCriteria) {
901 subBuilder.MergeFrom(DetailedOptimalityCriteria);
903 input.ReadMessage(subBuilder);
904 DetailedOptimalityCriteria = subBuilder;
914 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
915 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
917 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
919 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
923 private static readonly pb::MessageParser<SimpleOptimalityCriteria> _parser =
new pb::MessageParser<SimpleOptimalityCriteria>(() =>
new SimpleOptimalityCriteria());
924 private pb::UnknownFieldSet _unknownFields;
925 private int _hasBits0;
926 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
927 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
928 public static pb::MessageParser<SimpleOptimalityCriteria> Parser {
get {
return _parser; } }
930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
931 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
932 public static pbr::MessageDescriptor Descriptor {
933 get {
return global::Google.OrTools.PDLP.TerminationCriteria.Descriptor.NestedTypes[0]; }
936 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
937 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
938 pbr::MessageDescriptor pb::IMessage.Descriptor {
939 get {
return Descriptor; }
942 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
943 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
948 partial
void OnConstruction();
950 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
951 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
953 _hasBits0 = other._hasBits0;
954 epsOptimalAbsolute_ = other.epsOptimalAbsolute_;
955 epsOptimalRelative_ = other.epsOptimalRelative_;
956 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
959 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
960 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
966 public const int EpsOptimalAbsoluteFieldNumber = 1;
967 private readonly
static double EpsOptimalAbsoluteDefaultValue = 1e-06D;
969 private double epsOptimalAbsolute_;
974 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
975 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
976 public double EpsOptimalAbsolute {
977 get {
if ((_hasBits0 & 1) != 0) {
return epsOptimalAbsolute_; }
else {
return EpsOptimalAbsoluteDefaultValue; } }
980 epsOptimalAbsolute_ = value;
984 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
985 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
986 public bool HasEpsOptimalAbsolute {
987 get {
return (_hasBits0 & 1) != 0; }
990 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
991 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
997 public const int EpsOptimalRelativeFieldNumber = 2;
998 private readonly
static double EpsOptimalRelativeDefaultValue = 1e-06D;
1000 private double epsOptimalRelative_;
1005 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1006 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1007 public double EpsOptimalRelative {
1008 get {
if ((_hasBits0 & 2) != 0) {
return epsOptimalRelative_; }
else {
return EpsOptimalRelativeDefaultValue; } }
1011 epsOptimalRelative_ = value;
1015 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1016 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1017 public bool HasEpsOptimalRelative {
1018 get {
return (_hasBits0 & 2) != 0; }
1021 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1022 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1027 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1028 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1033 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1034 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1036 if (ReferenceEquals(other,
null)) {
1039 if (ReferenceEquals(other,
this)) {
1042 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(EpsOptimalAbsolute, other.
EpsOptimalAbsolute))
return false;
1043 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(EpsOptimalRelative, other.
EpsOptimalRelative))
return false;
1044 return Equals(_unknownFields, other._unknownFields);
1047 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1048 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1051 if (HasEpsOptimalAbsolute) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EpsOptimalAbsolute);
1052 if (HasEpsOptimalRelative) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EpsOptimalRelative);
1053 if (_unknownFields !=
null) {
1054 hash ^= _unknownFields.GetHashCode();
1059 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1060 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1062 return pb::JsonFormatter.ToDiagnosticString(
this);
1065 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1066 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1067 public void WriteTo(pb::CodedOutputStream output) {
1068 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1069 output.WriteRawMessage(
this);
1071 if (HasEpsOptimalAbsolute) {
1072 output.WriteRawTag(9);
1073 output.WriteDouble(EpsOptimalAbsolute);
1075 if (HasEpsOptimalRelative) {
1076 output.WriteRawTag(17);
1077 output.WriteDouble(EpsOptimalRelative);
1079 if (_unknownFields !=
null) {
1080 _unknownFields.WriteTo(output);
1085 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1086 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1087 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1088 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1089 if (HasEpsOptimalAbsolute) {
1090 output.WriteRawTag(9);
1091 output.WriteDouble(EpsOptimalAbsolute);
1093 if (HasEpsOptimalRelative) {
1094 output.WriteRawTag(17);
1095 output.WriteDouble(EpsOptimalRelative);
1097 if (_unknownFields !=
null) {
1098 _unknownFields.WriteTo(ref output);
1103 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1104 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1107 if (HasEpsOptimalAbsolute) {
1110 if (HasEpsOptimalRelative) {
1113 if (_unknownFields !=
null) {
1114 size += _unknownFields.CalculateSize();
1119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1120 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1122 if (other ==
null) {
1131 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1135 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1137 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1138 input.ReadRawMessage(
this);
1141 while ((tag = input.ReadTag()) != 0) {
1144 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1147 EpsOptimalAbsolute = input.ReadDouble();
1151 EpsOptimalRelative = input.ReadDouble();
1159 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1161 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1162 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1164 while ((tag = input.ReadTag()) != 0) {
1167 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1170 EpsOptimalAbsolute = input.ReadDouble();
1174 EpsOptimalRelative = input.ReadDouble();
1184 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
1186 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1187 , pb::IBufferMessage
1190 private static readonly pb::MessageParser<DetailedOptimalityCriteria> _parser =
new pb::MessageParser<DetailedOptimalityCriteria>(() =>
new DetailedOptimalityCriteria());
1191 private pb::UnknownFieldSet _unknownFields;
1192 private int _hasBits0;
1193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1194 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1195 public static pb::MessageParser<DetailedOptimalityCriteria> Parser {
get {
return _parser; } }
1197 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1198 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1199 public static pbr::MessageDescriptor Descriptor {
1200 get {
return global::Google.OrTools.PDLP.TerminationCriteria.Descriptor.NestedTypes[1]; }
1203 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1204 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1205 pbr::MessageDescriptor pb::IMessage.Descriptor {
1206 get {
return Descriptor; }
1209 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1210 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1215 partial
void OnConstruction();
1217 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1218 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1220 _hasBits0 = other._hasBits0;
1221 epsOptimalPrimalResidualAbsolute_ = other.epsOptimalPrimalResidualAbsolute_;
1222 epsOptimalPrimalResidualRelative_ = other.epsOptimalPrimalResidualRelative_;
1223 epsOptimalDualResidualAbsolute_ = other.epsOptimalDualResidualAbsolute_;
1224 epsOptimalDualResidualRelative_ = other.epsOptimalDualResidualRelative_;
1225 epsOptimalObjectiveGapAbsolute_ = other.epsOptimalObjectiveGapAbsolute_;
1226 epsOptimalObjectiveGapRelative_ = other.epsOptimalObjectiveGapRelative_;
1227 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1230 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1231 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1237 public const int EpsOptimalPrimalResidualAbsoluteFieldNumber = 1;
1238 private readonly
static double EpsOptimalPrimalResidualAbsoluteDefaultValue = 1e-06D;
1240 private double epsOptimalPrimalResidualAbsolute_;
1244 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1245 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1246 public double EpsOptimalPrimalResidualAbsolute {
1247 get {
if ((_hasBits0 & 1) != 0) {
return epsOptimalPrimalResidualAbsolute_; }
else {
return EpsOptimalPrimalResidualAbsoluteDefaultValue; } }
1250 epsOptimalPrimalResidualAbsolute_ = value;
1254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1255 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1256 public bool HasEpsOptimalPrimalResidualAbsolute {
1257 get {
return (_hasBits0 & 1) != 0; }
1260 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1261 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1267 public const int EpsOptimalPrimalResidualRelativeFieldNumber = 2;
1268 private readonly
static double EpsOptimalPrimalResidualRelativeDefaultValue = 1e-06D;
1270 private double epsOptimalPrimalResidualRelative_;
1274 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1275 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1276 public double EpsOptimalPrimalResidualRelative {
1277 get {
if ((_hasBits0 & 2) != 0) {
return epsOptimalPrimalResidualRelative_; }
else {
return EpsOptimalPrimalResidualRelativeDefaultValue; } }
1280 epsOptimalPrimalResidualRelative_ = value;
1284 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1285 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1286 public bool HasEpsOptimalPrimalResidualRelative {
1287 get {
return (_hasBits0 & 2) != 0; }
1290 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1291 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1297 public const int EpsOptimalDualResidualAbsoluteFieldNumber = 3;
1298 private readonly
static double EpsOptimalDualResidualAbsoluteDefaultValue = 1e-06D;
1300 private double epsOptimalDualResidualAbsolute_;
1304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1305 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1306 public double EpsOptimalDualResidualAbsolute {
1307 get {
if ((_hasBits0 & 4) != 0) {
return epsOptimalDualResidualAbsolute_; }
else {
return EpsOptimalDualResidualAbsoluteDefaultValue; } }
1310 epsOptimalDualResidualAbsolute_ = value;
1314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1315 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1316 public bool HasEpsOptimalDualResidualAbsolute {
1317 get {
return (_hasBits0 & 4) != 0; }
1320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1321 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1327 public const int EpsOptimalDualResidualRelativeFieldNumber = 4;
1328 private readonly
static double EpsOptimalDualResidualRelativeDefaultValue = 1e-06D;
1330 private double epsOptimalDualResidualRelative_;
1334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1335 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1336 public double EpsOptimalDualResidualRelative {
1337 get {
if ((_hasBits0 & 8) != 0) {
return epsOptimalDualResidualRelative_; }
else {
return EpsOptimalDualResidualRelativeDefaultValue; } }
1340 epsOptimalDualResidualRelative_ = value;
1344 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1345 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1346 public bool HasEpsOptimalDualResidualRelative {
1347 get {
return (_hasBits0 & 8) != 0; }
1350 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1351 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1357 public const int EpsOptimalObjectiveGapAbsoluteFieldNumber = 5;
1358 private readonly
static double EpsOptimalObjectiveGapAbsoluteDefaultValue = 1e-06D;
1360 private double epsOptimalObjectiveGapAbsolute_;
1364 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1365 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1366 public double EpsOptimalObjectiveGapAbsolute {
1367 get {
if ((_hasBits0 & 16) != 0) {
return epsOptimalObjectiveGapAbsolute_; }
else {
return EpsOptimalObjectiveGapAbsoluteDefaultValue; } }
1370 epsOptimalObjectiveGapAbsolute_ = value;
1374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1375 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1376 public bool HasEpsOptimalObjectiveGapAbsolute {
1377 get {
return (_hasBits0 & 16) != 0; }
1380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1381 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1387 public const int EpsOptimalObjectiveGapRelativeFieldNumber = 6;
1388 private readonly
static double EpsOptimalObjectiveGapRelativeDefaultValue = 1e-06D;
1390 private double epsOptimalObjectiveGapRelative_;
1394 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1395 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1396 public double EpsOptimalObjectiveGapRelative {
1397 get {
if ((_hasBits0 & 32) != 0) {
return epsOptimalObjectiveGapRelative_; }
else {
return EpsOptimalObjectiveGapRelativeDefaultValue; } }
1400 epsOptimalObjectiveGapRelative_ = value;
1404 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1405 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1406 public bool HasEpsOptimalObjectiveGapRelative {
1407 get {
return (_hasBits0 & 32) != 0; }
1410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1411 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1417 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1422 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1423 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1425 if (ReferenceEquals(other,
null)) {
1428 if (ReferenceEquals(other,
this)) {
1431 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(EpsOptimalPrimalResidualAbsolute, other.
EpsOptimalPrimalResidualAbsolute))
return false;
1432 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(EpsOptimalPrimalResidualRelative, other.
EpsOptimalPrimalResidualRelative))
return false;
1433 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(EpsOptimalDualResidualAbsolute, other.
EpsOptimalDualResidualAbsolute))
return false;
1434 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(EpsOptimalDualResidualRelative, other.
EpsOptimalDualResidualRelative))
return false;
1435 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(EpsOptimalObjectiveGapAbsolute, other.
EpsOptimalObjectiveGapAbsolute))
return false;
1436 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(EpsOptimalObjectiveGapRelative, other.
EpsOptimalObjectiveGapRelative))
return false;
1437 return Equals(_unknownFields, other._unknownFields);
1440 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1441 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1444 if (HasEpsOptimalPrimalResidualAbsolute) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EpsOptimalPrimalResidualAbsolute);
1445 if (HasEpsOptimalPrimalResidualRelative) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EpsOptimalPrimalResidualRelative);
1446 if (HasEpsOptimalDualResidualAbsolute) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EpsOptimalDualResidualAbsolute);
1447 if (HasEpsOptimalDualResidualRelative) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EpsOptimalDualResidualRelative);
1448 if (HasEpsOptimalObjectiveGapAbsolute) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EpsOptimalObjectiveGapAbsolute);
1449 if (HasEpsOptimalObjectiveGapRelative) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EpsOptimalObjectiveGapRelative);
1450 if (_unknownFields !=
null) {
1451 hash ^= _unknownFields.GetHashCode();
1456 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1457 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1459 return pb::JsonFormatter.ToDiagnosticString(
this);
1462 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1463 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1464 public void WriteTo(pb::CodedOutputStream output) {
1465 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1466 output.WriteRawMessage(
this);
1468 if (HasEpsOptimalPrimalResidualAbsolute) {
1469 output.WriteRawTag(9);
1470 output.WriteDouble(EpsOptimalPrimalResidualAbsolute);
1472 if (HasEpsOptimalPrimalResidualRelative) {
1473 output.WriteRawTag(17);
1474 output.WriteDouble(EpsOptimalPrimalResidualRelative);
1476 if (HasEpsOptimalDualResidualAbsolute) {
1477 output.WriteRawTag(25);
1478 output.WriteDouble(EpsOptimalDualResidualAbsolute);
1480 if (HasEpsOptimalDualResidualRelative) {
1481 output.WriteRawTag(33);
1482 output.WriteDouble(EpsOptimalDualResidualRelative);
1484 if (HasEpsOptimalObjectiveGapAbsolute) {
1485 output.WriteRawTag(41);
1486 output.WriteDouble(EpsOptimalObjectiveGapAbsolute);
1488 if (HasEpsOptimalObjectiveGapRelative) {
1489 output.WriteRawTag(49);
1490 output.WriteDouble(EpsOptimalObjectiveGapRelative);
1492 if (_unknownFields !=
null) {
1493 _unknownFields.WriteTo(output);
1498 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1499 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1500 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1501 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1502 if (HasEpsOptimalPrimalResidualAbsolute) {
1503 output.WriteRawTag(9);
1504 output.WriteDouble(EpsOptimalPrimalResidualAbsolute);
1506 if (HasEpsOptimalPrimalResidualRelative) {
1507 output.WriteRawTag(17);
1508 output.WriteDouble(EpsOptimalPrimalResidualRelative);
1510 if (HasEpsOptimalDualResidualAbsolute) {
1511 output.WriteRawTag(25);
1512 output.WriteDouble(EpsOptimalDualResidualAbsolute);
1514 if (HasEpsOptimalDualResidualRelative) {
1515 output.WriteRawTag(33);
1516 output.WriteDouble(EpsOptimalDualResidualRelative);
1518 if (HasEpsOptimalObjectiveGapAbsolute) {
1519 output.WriteRawTag(41);
1520 output.WriteDouble(EpsOptimalObjectiveGapAbsolute);
1522 if (HasEpsOptimalObjectiveGapRelative) {
1523 output.WriteRawTag(49);
1524 output.WriteDouble(EpsOptimalObjectiveGapRelative);
1526 if (_unknownFields !=
null) {
1527 _unknownFields.WriteTo(ref output);
1532 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1533 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1536 if (HasEpsOptimalPrimalResidualAbsolute) {
1539 if (HasEpsOptimalPrimalResidualRelative) {
1542 if (HasEpsOptimalDualResidualAbsolute) {
1545 if (HasEpsOptimalDualResidualRelative) {
1548 if (HasEpsOptimalObjectiveGapAbsolute) {
1551 if (HasEpsOptimalObjectiveGapRelative) {
1554 if (_unknownFields !=
null) {
1555 size += _unknownFields.CalculateSize();
1560 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1561 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1563 if (other ==
null) {
1584 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1588 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1590 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1591 input.ReadRawMessage(
this);
1594 while ((tag = input.ReadTag()) != 0) {
1597 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1600 EpsOptimalPrimalResidualAbsolute = input.ReadDouble();
1604 EpsOptimalPrimalResidualRelative = input.ReadDouble();
1608 EpsOptimalDualResidualAbsolute = input.ReadDouble();
1612 EpsOptimalDualResidualRelative = input.ReadDouble();
1616 EpsOptimalObjectiveGapAbsolute = input.ReadDouble();
1620 EpsOptimalObjectiveGapRelative = input.ReadDouble();
1628 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1629 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1630 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1631 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1633 while ((tag = input.ReadTag()) != 0) {
1636 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1639 EpsOptimalPrimalResidualAbsolute = input.ReadDouble();
1643 EpsOptimalPrimalResidualRelative = input.ReadDouble();
1647 EpsOptimalDualResidualAbsolute = input.ReadDouble();
1651 EpsOptimalDualResidualRelative = input.ReadDouble();
1655 EpsOptimalObjectiveGapAbsolute = input.ReadDouble();
1659 EpsOptimalObjectiveGapRelative = input.ReadDouble();
1681 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1682 , pb::IBufferMessage
1685 private static readonly pb::MessageParser<AdaptiveLinesearchParams> _parser =
new pb::MessageParser<AdaptiveLinesearchParams>(() =>
new AdaptiveLinesearchParams());
1686 private pb::UnknownFieldSet _unknownFields;
1687 private int _hasBits0;
1688 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1689 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1690 public static pb::MessageParser<AdaptiveLinesearchParams> Parser {
get {
return _parser; } }
1692 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1693 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1694 public static pbr::MessageDescriptor Descriptor {
1695 get {
return global::Google.OrTools.PDLP.SolversReflection.Descriptor.MessageTypes[1]; }
1698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1699 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1700 pbr::MessageDescriptor pb::IMessage.Descriptor {
1701 get {
return Descriptor; }
1704 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1705 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1710 partial
void OnConstruction();
1712 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1713 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1715 _hasBits0 = other._hasBits0;
1716 stepSizeReductionExponent_ = other.stepSizeReductionExponent_;
1717 stepSizeGrowthExponent_ = other.stepSizeGrowthExponent_;
1718 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1721 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1722 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1728 public const int StepSizeReductionExponentFieldNumber = 1;
1729 private readonly
static double StepSizeReductionExponentDefaultValue = 0.3D;
1731 private double stepSizeReductionExponent_;
1738 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1739 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1740 public double StepSizeReductionExponent {
1741 get {
if ((_hasBits0 & 1) != 0) {
return stepSizeReductionExponent_; }
else {
return StepSizeReductionExponentDefaultValue; } }
1744 stepSizeReductionExponent_ = value;
1748 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1749 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1750 public bool HasStepSizeReductionExponent {
1751 get {
return (_hasBits0 & 1) != 0; }
1754 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1755 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1761 public const int StepSizeGrowthExponentFieldNumber = 2;
1762 private readonly
static double StepSizeGrowthExponentDefaultValue = 0.6D;
1764 private double stepSizeGrowthExponent_;
1770 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1771 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1772 public double StepSizeGrowthExponent {
1773 get {
if ((_hasBits0 & 2) != 0) {
return stepSizeGrowthExponent_; }
else {
return StepSizeGrowthExponentDefaultValue; } }
1776 stepSizeGrowthExponent_ = value;
1780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1781 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1782 public bool HasStepSizeGrowthExponent {
1783 get {
return (_hasBits0 & 2) != 0; }
1786 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1787 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1792 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1793 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1798 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1799 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1801 if (ReferenceEquals(other,
null)) {
1804 if (ReferenceEquals(other,
this)) {
1807 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(StepSizeReductionExponent, other.
StepSizeReductionExponent))
return false;
1808 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(StepSizeGrowthExponent, other.
StepSizeGrowthExponent))
return false;
1809 return Equals(_unknownFields, other._unknownFields);
1812 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1813 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1816 if (HasStepSizeReductionExponent) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(StepSizeReductionExponent);
1817 if (HasStepSizeGrowthExponent) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(StepSizeGrowthExponent);
1818 if (_unknownFields !=
null) {
1819 hash ^= _unknownFields.GetHashCode();
1824 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1825 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1827 return pb::JsonFormatter.ToDiagnosticString(
this);
1830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1831 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1832 public void WriteTo(pb::CodedOutputStream output) {
1833 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1834 output.WriteRawMessage(
this);
1836 if (HasStepSizeReductionExponent) {
1837 output.WriteRawTag(9);
1838 output.WriteDouble(StepSizeReductionExponent);
1840 if (HasStepSizeGrowthExponent) {
1841 output.WriteRawTag(17);
1842 output.WriteDouble(StepSizeGrowthExponent);
1844 if (_unknownFields !=
null) {
1845 _unknownFields.WriteTo(output);
1850 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1852 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1853 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1854 if (HasStepSizeReductionExponent) {
1855 output.WriteRawTag(9);
1856 output.WriteDouble(StepSizeReductionExponent);
1858 if (HasStepSizeGrowthExponent) {
1859 output.WriteRawTag(17);
1860 output.WriteDouble(StepSizeGrowthExponent);
1862 if (_unknownFields !=
null) {
1863 _unknownFields.WriteTo(ref output);
1868 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1869 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1872 if (HasStepSizeReductionExponent) {
1875 if (HasStepSizeGrowthExponent) {
1878 if (_unknownFields !=
null) {
1879 size += _unknownFields.CalculateSize();
1884 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1885 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1887 if (other ==
null) {
1896 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1899 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1900 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1902 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1903 input.ReadRawMessage(
this);
1906 while ((tag = input.ReadTag()) != 0) {
1909 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1912 StepSizeReductionExponent = input.ReadDouble();
1916 StepSizeGrowthExponent = input.ReadDouble();
1924 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1925 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1926 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1927 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1929 while ((tag = input.ReadTag()) != 0) {
1932 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1935 StepSizeReductionExponent = input.ReadDouble();
1939 StepSizeGrowthExponent = input.ReadDouble();
1951 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1952 , pb::IBufferMessage
1955 private static readonly pb::MessageParser<MalitskyPockParams> _parser =
new pb::MessageParser<MalitskyPockParams>(() =>
new MalitskyPockParams());
1956 private pb::UnknownFieldSet _unknownFields;
1957 private int _hasBits0;
1958 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1959 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1960 public static pb::MessageParser<MalitskyPockParams> Parser {
get {
return _parser; } }
1962 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1963 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1964 public static pbr::MessageDescriptor Descriptor {
1965 get {
return global::Google.OrTools.PDLP.SolversReflection.Descriptor.MessageTypes[2]; }
1968 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1969 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1970 pbr::MessageDescriptor pb::IMessage.Descriptor {
1971 get {
return Descriptor; }
1974 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1975 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1980 partial
void OnConstruction();
1982 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1983 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1985 _hasBits0 = other._hasBits0;
1986 stepSizeDownscalingFactor_ = other.stepSizeDownscalingFactor_;
1987 linesearchContractionFactor_ = other.linesearchContractionFactor_;
1988 stepSizeInterpolation_ = other.stepSizeInterpolation_;
1989 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1992 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1993 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1999 public const int StepSizeDownscalingFactorFieldNumber = 1;
2000 private readonly
static double StepSizeDownscalingFactorDefaultValue = 0.7D;
2002 private double stepSizeDownscalingFactor_;
2009 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2010 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2011 public double StepSizeDownscalingFactor {
2012 get {
if ((_hasBits0 & 1) != 0) {
return stepSizeDownscalingFactor_; }
else {
return StepSizeDownscalingFactorDefaultValue; } }
2015 stepSizeDownscalingFactor_ = value;
2019 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2020 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2021 public bool HasStepSizeDownscalingFactor {
2022 get {
return (_hasBits0 & 1) != 0; }
2025 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2026 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2032 public const int LinesearchContractionFactorFieldNumber = 2;
2033 private readonly
static double LinesearchContractionFactorDefaultValue = 0.99D;
2035 private double linesearchContractionFactor_;
2043 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2044 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2045 public double LinesearchContractionFactor {
2046 get {
if ((_hasBits0 & 2) != 0) {
return linesearchContractionFactor_; }
else {
return LinesearchContractionFactorDefaultValue; } }
2049 linesearchContractionFactor_ = value;
2053 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2054 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2055 public bool HasLinesearchContractionFactor {
2056 get {
return (_hasBits0 & 2) != 0; }
2059 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2060 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2066 public const int StepSizeInterpolationFieldNumber = 3;
2067 private readonly
static double StepSizeInterpolationDefaultValue = 1D;
2069 private double stepSizeInterpolation_;
2077 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2078 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2079 public double StepSizeInterpolation {
2080 get {
if ((_hasBits0 & 4) != 0) {
return stepSizeInterpolation_; }
else {
return StepSizeInterpolationDefaultValue; } }
2083 stepSizeInterpolation_ = value;
2087 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2088 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2089 public bool HasStepSizeInterpolation {
2090 get {
return (_hasBits0 & 4) != 0; }
2093 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2094 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2099 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2100 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2105 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2106 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2108 if (ReferenceEquals(other,
null)) {
2111 if (ReferenceEquals(other,
this)) {
2114 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(StepSizeDownscalingFactor, other.
StepSizeDownscalingFactor))
return false;
2115 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LinesearchContractionFactor, other.
LinesearchContractionFactor))
return false;
2116 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(StepSizeInterpolation, other.
StepSizeInterpolation))
return false;
2117 return Equals(_unknownFields, other._unknownFields);
2120 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2121 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2124 if (HasStepSizeDownscalingFactor) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(StepSizeDownscalingFactor);
2125 if (HasLinesearchContractionFactor) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LinesearchContractionFactor);
2126 if (HasStepSizeInterpolation) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(StepSizeInterpolation);
2127 if (_unknownFields !=
null) {
2128 hash ^= _unknownFields.GetHashCode();
2133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2134 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2136 return pb::JsonFormatter.ToDiagnosticString(
this);
2139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2140 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2141 public void WriteTo(pb::CodedOutputStream output) {
2142 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2143 output.WriteRawMessage(
this);
2145 if (HasStepSizeDownscalingFactor) {
2146 output.WriteRawTag(9);
2147 output.WriteDouble(StepSizeDownscalingFactor);
2149 if (HasLinesearchContractionFactor) {
2150 output.WriteRawTag(17);
2151 output.WriteDouble(LinesearchContractionFactor);
2153 if (HasStepSizeInterpolation) {
2154 output.WriteRawTag(25);
2155 output.WriteDouble(StepSizeInterpolation);
2157 if (_unknownFields !=
null) {
2158 _unknownFields.WriteTo(output);
2163 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2165 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2166 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2167 if (HasStepSizeDownscalingFactor) {
2168 output.WriteRawTag(9);
2169 output.WriteDouble(StepSizeDownscalingFactor);
2171 if (HasLinesearchContractionFactor) {
2172 output.WriteRawTag(17);
2173 output.WriteDouble(LinesearchContractionFactor);
2175 if (HasStepSizeInterpolation) {
2176 output.WriteRawTag(25);
2177 output.WriteDouble(StepSizeInterpolation);
2179 if (_unknownFields !=
null) {
2180 _unknownFields.WriteTo(ref output);
2185 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2186 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2189 if (HasStepSizeDownscalingFactor) {
2192 if (HasLinesearchContractionFactor) {
2195 if (HasStepSizeInterpolation) {
2198 if (_unknownFields !=
null) {
2199 size += _unknownFields.CalculateSize();
2204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2205 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2207 if (other ==
null) {
2219 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2222 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2223 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2225 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2226 input.ReadRawMessage(
this);
2229 while ((tag = input.ReadTag()) != 0) {
2232 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2235 StepSizeDownscalingFactor = input.ReadDouble();
2239 LinesearchContractionFactor = input.ReadDouble();
2243 StepSizeInterpolation = input.ReadDouble();
2251 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2252 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2253 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2254 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2256 while ((tag = input.ReadTag()) != 0) {
2259 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2262 StepSizeDownscalingFactor = input.ReadDouble();
2266 LinesearchContractionFactor = input.ReadDouble();
2270 StepSizeInterpolation = input.ReadDouble();
2294 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2295 , pb::IBufferMessage
2298 private static readonly pb::MessageParser<PrimalDualHybridGradientParams> _parser =
new pb::MessageParser<PrimalDualHybridGradientParams>(() =>
new PrimalDualHybridGradientParams());
2299 private pb::UnknownFieldSet _unknownFields;
2300 private int _hasBits0;
2301 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2302 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2303 public static pb::MessageParser<PrimalDualHybridGradientParams> Parser {
get {
return _parser; } }
2305 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2306 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2307 public static pbr::MessageDescriptor Descriptor {
2308 get {
return global::Google.OrTools.PDLP.SolversReflection.Descriptor.MessageTypes[3]; }
2311 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2312 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2313 pbr::MessageDescriptor pb::IMessage.Descriptor {
2314 get {
return Descriptor; }
2317 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2318 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2323 partial
void OnConstruction();
2325 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2326 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2328 _hasBits0 = other._hasBits0;
2329 terminationCriteria_ = other.terminationCriteria_ !=
null ? other.terminationCriteria_.
Clone() :
null;
2330 numThreads_ = other.numThreads_;
2331 numShards_ = other.numShards_;
2332 recordIterationStats_ = other.recordIterationStats_;
2333 verbosityLevel_ = other.verbosityLevel_;
2334 logIntervalSeconds_ = other.logIntervalSeconds_;
2335 majorIterationFrequency_ = other.majorIterationFrequency_;
2336 terminationCheckFrequency_ = other.terminationCheckFrequency_;
2337 restartStrategy_ = other.restartStrategy_;
2338 primalWeightUpdateSmoothing_ = other.primalWeightUpdateSmoothing_;
2339 initialPrimalWeight_ = other.initialPrimalWeight_;
2340 presolveOptions_ = other.presolveOptions_ !=
null ? other.presolveOptions_.
Clone() :
null;
2341 lInfRuizIterations_ = other.lInfRuizIterations_;
2342 l2NormRescaling_ = other.l2NormRescaling_;
2343 sufficientReductionForRestart_ = other.sufficientReductionForRestart_;
2344 necessaryReductionForRestart_ = other.necessaryReductionForRestart_;
2345 linesearchRule_ = other.linesearchRule_;
2346 adaptiveLinesearchParameters_ = other.adaptiveLinesearchParameters_ !=
null ? other.adaptiveLinesearchParameters_.
Clone() :
null;
2347 malitskyPockParameters_ = other.malitskyPockParameters_ !=
null ? other.malitskyPockParameters_.
Clone() :
null;
2348 initialStepSizeScaling_ = other.initialStepSizeScaling_;
2349 randomProjectionSeeds_ = other.randomProjectionSeeds_.Clone();
2350 infiniteConstraintBoundThreshold_ = other.infiniteConstraintBoundThreshold_;
2351 handleSomePrimalGradientsOnFiniteBoundsAsResiduals_ = other.handleSomePrimalGradientsOnFiniteBoundsAsResiduals_;
2352 useDiagonalQpTrustRegionSolver_ = other.useDiagonalQpTrustRegionSolver_;
2353 diagonalQpTrustRegionSolverTolerance_ = other.diagonalQpTrustRegionSolverTolerance_;
2354 useFeasibilityPolishing_ = other.useFeasibilityPolishing_;
2355 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2358 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2359 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2365 public const int TerminationCriteriaFieldNumber = 1;
2367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2368 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2370 get { return terminationCriteria_; }
2372 terminationCriteria_ = value;
2377 public const int NumThreadsFieldNumber = 2;
2378 private readonly
static int NumThreadsDefaultValue = 1;
2380 private int numThreads_;
2387 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2388 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2389 public int NumThreads {
2390 get {
if ((_hasBits0 & 1) != 0) {
return numThreads_; }
else {
return NumThreadsDefaultValue; } }
2393 numThreads_ = value;
2397 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2398 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2399 public bool HasNumThreads {
2400 get {
return (_hasBits0 & 1) != 0; }
2403 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2404 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2410 public const int NumShardsFieldNumber = 27;
2411 private readonly
static int NumShardsDefaultValue = 0;
2413 private int numShards_;
2425 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2426 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2427 public int NumShards {
2428 get {
if ((_hasBits0 & 131072) != 0) {
return numShards_; }
else {
return NumShardsDefaultValue; } }
2430 _hasBits0 |= 131072;
2435 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2436 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2437 public bool HasNumShards {
2438 get {
return (_hasBits0 & 131072) != 0; }
2441 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2442 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2444 _hasBits0 &= ~131072;
2448 public const int RecordIterationStatsFieldNumber = 3;
2449 private readonly
static bool RecordIterationStatsDefaultValue =
false;
2451 private bool recordIterationStats_;
2458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2459 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2460 public bool RecordIterationStats {
2461 get {
if ((_hasBits0 & 2) != 0) {
return recordIterationStats_; }
else {
return RecordIterationStatsDefaultValue; } }
2464 recordIterationStats_ = value;
2468 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2469 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2470 public bool HasRecordIterationStats {
2471 get {
return (_hasBits0 & 2) != 0; }
2474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2475 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2481 public const int VerbosityLevelFieldNumber = 26;
2482 private readonly
static int VerbosityLevelDefaultValue = 0;
2484 private int verbosityLevel_;
2498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2499 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2500 public int VerbosityLevel {
2501 get {
if ((_hasBits0 & 65536) != 0) {
return verbosityLevel_; }
else {
return VerbosityLevelDefaultValue; } }
2504 verbosityLevel_ = value;
2508 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2509 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2510 public bool HasVerbosityLevel {
2511 get {
return (_hasBits0 & 65536) != 0; }
2514 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2515 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2517 _hasBits0 &= ~65536;
2521 public const int LogIntervalSecondsFieldNumber = 31;
2522 private readonly
static double LogIntervalSecondsDefaultValue = 0D;
2524 private double logIntervalSeconds_;
2532 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2533 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2534 public double LogIntervalSeconds {
2535 get {
if ((_hasBits0 & 1048576) != 0) {
return logIntervalSeconds_; }
else {
return LogIntervalSecondsDefaultValue; } }
2537 _hasBits0 |= 1048576;
2538 logIntervalSeconds_ = value;
2542 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2543 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2544 public bool HasLogIntervalSeconds {
2545 get {
return (_hasBits0 & 1048576) != 0; }
2548 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2549 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2551 _hasBits0 &= ~1048576;
2555 public const int MajorIterationFrequencyFieldNumber = 4;
2556 private readonly
static int MajorIterationFrequencyDefaultValue = 64;
2558 private int majorIterationFrequency_;
2567 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2568 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2569 public int MajorIterationFrequency {
2570 get {
if ((_hasBits0 & 4) != 0) {
return majorIterationFrequency_; }
else {
return MajorIterationFrequencyDefaultValue; } }
2573 majorIterationFrequency_ = value;
2577 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2578 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2579 public bool HasMajorIterationFrequency {
2580 get {
return (_hasBits0 & 4) != 0; }
2583 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2584 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2590 public const int TerminationCheckFrequencyFieldNumber = 5;
2591 private readonly
static int TerminationCheckFrequencyDefaultValue = 64;
2593 private int terminationCheckFrequency_;
2599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2600 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2601 public int TerminationCheckFrequency {
2602 get {
if ((_hasBits0 & 8) != 0) {
return terminationCheckFrequency_; }
else {
return TerminationCheckFrequencyDefaultValue; } }
2605 terminationCheckFrequency_ = value;
2609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2610 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2611 public bool HasTerminationCheckFrequency {
2612 get {
return (_hasBits0 & 8) != 0; }
2615 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2616 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2622 public const int RestartStrategyFieldNumber = 6;
2623 private readonly
static global::Google.OrTools.PDLP.PrimalDualHybridGradientParams.Types.RestartStrategy RestartStrategyDefaultValue = global::Google.OrTools.PDLP.PrimalDualHybridGradientParams.Types.RestartStrategy.AdaptiveHeuristic;
2625 private global::Google.OrTools.PDLP.PrimalDualHybridGradientParams.Types.RestartStrategy restartStrategy_;
2631 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2632 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2633 public global::Google.OrTools.PDLP.PrimalDualHybridGradientParams.Types.RestartStrategy RestartStrategy {
2634 get { if ((_hasBits0 & 16) != 0) { return restartStrategy_; } else { return RestartStrategyDefaultValue; } }
2637 restartStrategy_ = value;
2641 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2642 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2643 public bool HasRestartStrategy {
2644 get {
return (_hasBits0 & 16) != 0; }
2647 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2648 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2654 public const int PrimalWeightUpdateSmoothingFieldNumber = 7;
2655 private readonly
static double PrimalWeightUpdateSmoothingDefaultValue = 0.5D;
2657 private double primalWeightUpdateSmoothing_;
2668 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2669 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2670 public double PrimalWeightUpdateSmoothing {
2671 get {
if ((_hasBits0 & 32) != 0) {
return primalWeightUpdateSmoothing_; }
else {
return PrimalWeightUpdateSmoothingDefaultValue; } }
2674 primalWeightUpdateSmoothing_ = value;
2678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2679 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2680 public bool HasPrimalWeightUpdateSmoothing {
2681 get {
return (_hasBits0 & 32) != 0; }
2684 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2685 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2691 public const int InitialPrimalWeightFieldNumber = 8;
2692 private readonly
static double InitialPrimalWeightDefaultValue = 0D;
2694 private double initialPrimalWeight_;
2704 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2705 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2706 public double InitialPrimalWeight {
2707 get {
if ((_hasBits0 & 64) != 0) {
return initialPrimalWeight_; }
else {
return InitialPrimalWeightDefaultValue; } }
2710 initialPrimalWeight_ = value;
2714 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2715 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2716 public bool HasInitialPrimalWeight {
2717 get {
return (_hasBits0 & 64) != 0; }
2720 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2721 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2727 public const int PresolveOptionsFieldNumber = 16;
2728 private global::Google.OrTools.PDLP.PrimalDualHybridGradientParams.Types.PresolveOptions presolveOptions_;
2729 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2730 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2731 public global::Google.OrTools.PDLP.PrimalDualHybridGradientParams.Types.PresolveOptions PresolveOptions {
2732 get { return presolveOptions_; }
2734 presolveOptions_ = value;
2739 public const int LInfRuizIterationsFieldNumber = 9;
2740 private readonly
static int LInfRuizIterationsDefaultValue = 5;
2742 private int lInfRuizIterations_;
2748 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2749 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2750 public int LInfRuizIterations {
2751 get {
if ((_hasBits0 & 128) != 0) {
return lInfRuizIterations_; }
else {
return LInfRuizIterationsDefaultValue; } }
2754 lInfRuizIterations_ = value;
2758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2759 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2760 public bool HasLInfRuizIterations {
2761 get {
return (_hasBits0 & 128) != 0; }
2764 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2765 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2771 public const int L2NormRescalingFieldNumber = 10;
2772 private readonly
static bool L2NormRescalingDefaultValue =
true;
2774 private bool l2NormRescaling_;
2779 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2780 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2781 public bool L2NormRescaling {
2782 get {
if ((_hasBits0 & 256) != 0) {
return l2NormRescaling_; }
else {
return L2NormRescalingDefaultValue; } }
2785 l2NormRescaling_ = value;
2789 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2790 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2791 public bool HasL2NormRescaling {
2792 get {
return (_hasBits0 & 256) != 0; }
2795 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2796 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2802 public const int SufficientReductionForRestartFieldNumber = 11;
2803 private readonly
static double SufficientReductionForRestartDefaultValue = 0.1D;
2805 private double sufficientReductionForRestart_;
2811 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2812 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2813 public double SufficientReductionForRestart {
2814 get {
if ((_hasBits0 & 512) != 0) {
return sufficientReductionForRestart_; }
else {
return SufficientReductionForRestartDefaultValue; } }
2817 sufficientReductionForRestart_ = value;
2821 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2822 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2823 public bool HasSufficientReductionForRestart {
2824 get {
return (_hasBits0 & 512) != 0; }
2827 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2828 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2834 public const int NecessaryReductionForRestartFieldNumber = 17;
2835 private readonly
static double NecessaryReductionForRestartDefaultValue = 0.9D;
2837 private double necessaryReductionForRestart_;
2845 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2846 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2847 public double NecessaryReductionForRestart {
2848 get {
if ((_hasBits0 & 2048) != 0) {
return necessaryReductionForRestart_; }
else {
return NecessaryReductionForRestartDefaultValue; } }
2851 necessaryReductionForRestart_ = value;
2855 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2856 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2857 public bool HasNecessaryReductionForRestart {
2858 get {
return (_hasBits0 & 2048) != 0; }
2861 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2862 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2868 public const int LinesearchRuleFieldNumber = 12;
2869 private readonly
static global::Google.OrTools.PDLP.PrimalDualHybridGradientParams.Types.LinesearchRule LinesearchRuleDefaultValue = global::Google.OrTools.PDLP.PrimalDualHybridGradientParams.Types.LinesearchRule.AdaptiveLinesearchRule;
2871 private global::Google.OrTools.PDLP.PrimalDualHybridGradientParams.Types.LinesearchRule linesearchRule_;
2875 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2876 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2877 public global::Google.OrTools.PDLP.PrimalDualHybridGradientParams.Types.LinesearchRule LinesearchRule {
2878 get { if ((_hasBits0 & 1024) != 0) { return linesearchRule_; } else { return LinesearchRuleDefaultValue; } }
2881 linesearchRule_ = value;
2885 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2886 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2887 public bool HasLinesearchRule {
2888 get {
return (_hasBits0 & 1024) != 0; }
2891 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2892 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2898 public const int AdaptiveLinesearchParametersFieldNumber = 18;
2899 private global::Google.OrTools.PDLP.AdaptiveLinesearchParams adaptiveLinesearchParameters_;
2900 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2901 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2902 public global::Google.OrTools.PDLP.AdaptiveLinesearchParams AdaptiveLinesearchParameters {
2903 get { return adaptiveLinesearchParameters_; }
2905 adaptiveLinesearchParameters_ = value;
2910 public const int MalitskyPockParametersFieldNumber = 19;
2911 private global::Google.OrTools.PDLP.MalitskyPockParams malitskyPockParameters_;
2912 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2913 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2914 public global::Google.OrTools.PDLP.MalitskyPockParams MalitskyPockParameters {
2915 get { return malitskyPockParameters_; }
2917 malitskyPockParameters_ = value;
2922 public const int InitialStepSizeScalingFieldNumber = 25;
2923 private readonly
static double InitialStepSizeScalingDefaultValue = 1D;
2925 private double initialStepSizeScaling_;
2930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2931 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2932 public double InitialStepSizeScaling {
2933 get {
if ((_hasBits0 & 32768) != 0) {
return initialStepSizeScaling_; }
else {
return InitialStepSizeScalingDefaultValue; } }
2936 initialStepSizeScaling_ = value;
2940 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2941 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2942 public bool HasInitialStepSizeScaling {
2943 get {
return (_hasBits0 & 32768) != 0; }
2946 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2947 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2949 _hasBits0 &= ~32768;
2953 public const int RandomProjectionSeedsFieldNumber = 28;
2954 private static readonly pb::FieldCodec<int> _repeated_randomProjectionSeeds_codec
2955 = pb::FieldCodec.ForInt32(226);
2956 private readonly pbc::RepeatedField<int> randomProjectionSeeds_ =
new pbc::RepeatedField<int>();
2965 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2966 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2967 public pbc::RepeatedField<int> RandomProjectionSeeds {
2968 get {
return randomProjectionSeeds_; }
2972 public const int InfiniteConstraintBoundThresholdFieldNumber = 22;
2973 private readonly
static double InfiniteConstraintBoundThresholdDefaultValue =
double.PositiveInfinity;
2975 private double infiniteConstraintBoundThreshold_;
2984 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2985 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2986 public double InfiniteConstraintBoundThreshold {
2987 get {
if ((_hasBits0 & 4096) != 0) {
return infiniteConstraintBoundThreshold_; }
else {
return InfiniteConstraintBoundThresholdDefaultValue; } }
2990 infiniteConstraintBoundThreshold_ = value;
2994 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2995 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2996 public bool HasInfiniteConstraintBoundThreshold {
2997 get {
return (_hasBits0 & 4096) != 0; }
3000 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3001 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3007 public const int HandleSomePrimalGradientsOnFiniteBoundsAsResidualsFieldNumber = 29;
3008 private readonly
static bool HandleSomePrimalGradientsOnFiniteBoundsAsResidualsDefaultValue =
true;
3010 private bool handleSomePrimalGradientsOnFiniteBoundsAsResiduals_;
3016 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3017 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3018 public bool HandleSomePrimalGradientsOnFiniteBoundsAsResiduals {
3019 get {
if ((_hasBits0 & 262144) != 0) {
return handleSomePrimalGradientsOnFiniteBoundsAsResiduals_; }
else {
return HandleSomePrimalGradientsOnFiniteBoundsAsResidualsDefaultValue; } }
3021 _hasBits0 |= 262144;
3022 handleSomePrimalGradientsOnFiniteBoundsAsResiduals_ = value;
3026 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3027 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3028 public bool HasHandleSomePrimalGradientsOnFiniteBoundsAsResiduals {
3029 get {
return (_hasBits0 & 262144) != 0; }
3032 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3033 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3035 _hasBits0 &= ~262144;
3039 public const int UseDiagonalQpTrustRegionSolverFieldNumber = 23;
3040 private readonly
static bool UseDiagonalQpTrustRegionSolverDefaultValue =
false;
3042 private bool useDiagonalQpTrustRegionSolver_;
3051 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3052 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3053 public bool UseDiagonalQpTrustRegionSolver {
3054 get {
if ((_hasBits0 & 8192) != 0) {
return useDiagonalQpTrustRegionSolver_; }
else {
return UseDiagonalQpTrustRegionSolverDefaultValue; } }
3057 useDiagonalQpTrustRegionSolver_ = value;
3061 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3062 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3063 public bool HasUseDiagonalQpTrustRegionSolver {
3064 get {
return (_hasBits0 & 8192) != 0; }
3067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3068 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3074 public const int DiagonalQpTrustRegionSolverToleranceFieldNumber = 24;
3075 private readonly
static double DiagonalQpTrustRegionSolverToleranceDefaultValue = 1e-08D;
3077 private double diagonalQpTrustRegionSolverTolerance_;
3085 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3086 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3087 public double DiagonalQpTrustRegionSolverTolerance {
3088 get {
if ((_hasBits0 & 16384) != 0) {
return diagonalQpTrustRegionSolverTolerance_; }
else {
return DiagonalQpTrustRegionSolverToleranceDefaultValue; } }
3091 diagonalQpTrustRegionSolverTolerance_ = value;
3095 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3096 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3097 public bool HasDiagonalQpTrustRegionSolverTolerance {
3098 get {
return (_hasBits0 & 16384) != 0; }
3101 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3102 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3104 _hasBits0 &= ~16384;
3108 public const int UseFeasibilityPolishingFieldNumber = 30;
3109 private readonly
static bool UseFeasibilityPolishingDefaultValue =
false;
3111 private bool useFeasibilityPolishing_;
3140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3141 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3142 public bool UseFeasibilityPolishing {
3143 get {
if ((_hasBits0 & 524288) != 0) {
return useFeasibilityPolishing_; }
else {
return UseFeasibilityPolishingDefaultValue; } }
3145 _hasBits0 |= 524288;
3146 useFeasibilityPolishing_ = value;
3150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3151 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3152 public bool HasUseFeasibilityPolishing {
3153 get {
return (_hasBits0 & 524288) != 0; }
3156 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3157 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3158 public void ClearUseFeasibilityPolishing() {
3159 _hasBits0 &= ~524288;
3162 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3163 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3164 public override bool Equals(
object other) {
3168 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3169 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3171 if (ReferenceEquals(other,
null)) {
3174 if (ReferenceEquals(other,
this)) {
3178 if (NumThreads != other.
NumThreads)
return false;
3179 if (NumShards != other.
NumShards)
return false;
3182 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LogIntervalSeconds, other.
LogIntervalSeconds))
return false;
3186 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(PrimalWeightUpdateSmoothing, other.
PrimalWeightUpdateSmoothing))
return false;
3187 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(InitialPrimalWeight, other.
InitialPrimalWeight))
return false;
3188 if (!
object.Equals(PresolveOptions, other.
PresolveOptions))
return false;
3191 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SufficientReductionForRestart, other.
SufficientReductionForRestart))
return false;
3192 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(NecessaryReductionForRestart, other.
NecessaryReductionForRestart))
return false;
3196 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(InitialStepSizeScaling, other.
InitialStepSizeScaling))
return false;
3197 if(!randomProjectionSeeds_.Equals(other.randomProjectionSeeds_))
return false;
3198 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(InfiniteConstraintBoundThreshold, other.
InfiniteConstraintBoundThreshold))
return false;
3203 return Equals(_unknownFields, other._unknownFields);
3206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3207 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3208 public override int GetHashCode() {
3211 if (HasNumThreads) hash ^= NumThreads.GetHashCode();
3212 if (HasNumShards) hash ^= NumShards.GetHashCode();
3213 if (HasRecordIterationStats) hash ^= RecordIterationStats.GetHashCode();
3214 if (HasVerbosityLevel) hash ^= VerbosityLevel.GetHashCode();
3215 if (HasLogIntervalSeconds) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LogIntervalSeconds);
3216 if (HasMajorIterationFrequency) hash ^= MajorIterationFrequency.GetHashCode();
3217 if (HasTerminationCheckFrequency) hash ^= TerminationCheckFrequency.GetHashCode();
3218 if (HasRestartStrategy) hash ^= RestartStrategy.GetHashCode();
3219 if (HasPrimalWeightUpdateSmoothing) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PrimalWeightUpdateSmoothing);
3220 if (HasInitialPrimalWeight) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(InitialPrimalWeight);
3221 if (presolveOptions_ !=
null) hash ^= PresolveOptions.GetHashCode();
3222 if (HasLInfRuizIterations) hash ^= LInfRuizIterations.GetHashCode();
3223 if (HasL2NormRescaling) hash ^= L2NormRescaling.GetHashCode();
3224 if (HasSufficientReductionForRestart) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SufficientReductionForRestart);
3225 if (HasNecessaryReductionForRestart) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NecessaryReductionForRestart);
3226 if (HasLinesearchRule) hash ^= LinesearchRule.GetHashCode();
3227 if (adaptiveLinesearchParameters_ !=
null) hash ^= AdaptiveLinesearchParameters.GetHashCode();
3228 if (malitskyPockParameters_ !=
null) hash ^= MalitskyPockParameters.GetHashCode();
3229 if (HasInitialStepSizeScaling) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(InitialStepSizeScaling);
3230 hash ^= randomProjectionSeeds_.GetHashCode();
3231 if (HasInfiniteConstraintBoundThreshold) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(InfiniteConstraintBoundThreshold);
3232 if (HasHandleSomePrimalGradientsOnFiniteBoundsAsResiduals) hash ^= HandleSomePrimalGradientsOnFiniteBoundsAsResiduals.GetHashCode();
3233 if (HasUseDiagonalQpTrustRegionSolver) hash ^= UseDiagonalQpTrustRegionSolver.GetHashCode();
3234 if (HasDiagonalQpTrustRegionSolverTolerance) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DiagonalQpTrustRegionSolverTolerance);
3235 if (HasUseFeasibilityPolishing) hash ^= UseFeasibilityPolishing.GetHashCode();
3236 if (_unknownFields !=
null) {
3237 hash ^= _unknownFields.GetHashCode();
3242 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3243 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3244 public override string ToString() {
3245 return pb::JsonFormatter.ToDiagnosticString(
this);
3248 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3249 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3250 public void WriteTo(pb::CodedOutputStream output) {
3251 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3252 output.WriteRawMessage(
this);
3254 if (terminationCriteria_ !=
null) {
3255 output.WriteRawTag(10);
3258 if (HasNumThreads) {
3259 output.WriteRawTag(16);
3260 output.WriteInt32(NumThreads);
3262 if (HasRecordIterationStats) {
3263 output.WriteRawTag(24);
3264 output.WriteBool(RecordIterationStats);
3266 if (HasMajorIterationFrequency) {
3267 output.WriteRawTag(32);
3268 output.WriteInt32(MajorIterationFrequency);
3270 if (HasTerminationCheckFrequency) {
3271 output.WriteRawTag(40);
3272 output.WriteInt32(TerminationCheckFrequency);
3274 if (HasRestartStrategy) {
3275 output.WriteRawTag(48);
3276 output.WriteEnum((
int) RestartStrategy);
3278 if (HasPrimalWeightUpdateSmoothing) {
3279 output.WriteRawTag(57);
3280 output.WriteDouble(PrimalWeightUpdateSmoothing);
3282 if (HasInitialPrimalWeight) {
3283 output.WriteRawTag(65);
3284 output.WriteDouble(InitialPrimalWeight);
3286 if (HasLInfRuizIterations) {
3287 output.WriteRawTag(72);
3288 output.WriteInt32(LInfRuizIterations);
3290 if (HasL2NormRescaling) {
3291 output.WriteRawTag(80);
3292 output.WriteBool(L2NormRescaling);
3294 if (HasSufficientReductionForRestart) {
3295 output.WriteRawTag(89);
3296 output.WriteDouble(SufficientReductionForRestart);
3298 if (HasLinesearchRule) {
3299 output.WriteRawTag(96);
3300 output.WriteEnum((
int) LinesearchRule);
3302 if (presolveOptions_ !=
null) {
3303 output.WriteRawTag(130, 1);
3304 output.WriteMessage(PresolveOptions);
3306 if (HasNecessaryReductionForRestart) {
3307 output.WriteRawTag(137, 1);
3308 output.WriteDouble(NecessaryReductionForRestart);
3310 if (adaptiveLinesearchParameters_ !=
null) {
3311 output.WriteRawTag(146, 1);
3312 output.WriteMessage(AdaptiveLinesearchParameters);
3314 if (malitskyPockParameters_ !=
null) {
3315 output.WriteRawTag(154, 1);
3316 output.WriteMessage(MalitskyPockParameters);
3318 if (HasInfiniteConstraintBoundThreshold) {
3319 output.WriteRawTag(177, 1);
3320 output.WriteDouble(InfiniteConstraintBoundThreshold);
3322 if (HasUseDiagonalQpTrustRegionSolver) {
3323 output.WriteRawTag(184, 1);
3324 output.WriteBool(UseDiagonalQpTrustRegionSolver);
3326 if (HasDiagonalQpTrustRegionSolverTolerance) {
3327 output.WriteRawTag(193, 1);
3328 output.WriteDouble(DiagonalQpTrustRegionSolverTolerance);
3330 if (HasInitialStepSizeScaling) {
3331 output.WriteRawTag(201, 1);
3332 output.WriteDouble(InitialStepSizeScaling);
3334 if (HasVerbosityLevel) {
3335 output.WriteRawTag(208, 1);
3336 output.WriteInt32(VerbosityLevel);
3339 output.WriteRawTag(216, 1);
3340 output.WriteInt32(NumShards);
3342 randomProjectionSeeds_.WriteTo(output, _repeated_randomProjectionSeeds_codec);
3343 if (HasHandleSomePrimalGradientsOnFiniteBoundsAsResiduals) {
3344 output.WriteRawTag(232, 1);
3345 output.WriteBool(HandleSomePrimalGradientsOnFiniteBoundsAsResiduals);
3347 if (HasUseFeasibilityPolishing) {
3348 output.WriteRawTag(240, 1);
3349 output.WriteBool(UseFeasibilityPolishing);
3351 if (HasLogIntervalSeconds) {
3352 output.WriteRawTag(249, 1);
3353 output.WriteDouble(LogIntervalSeconds);
3355 if (_unknownFields !=
null) {
3356 _unknownFields.WriteTo(output);
3361 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3362 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3363 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3364 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3365 if (terminationCriteria_ !=
null) {
3366 output.WriteRawTag(10);
3367 output.WriteMessage(TerminationCriteria);
3369 if (HasNumThreads) {
3370 output.WriteRawTag(16);
3371 output.WriteInt32(NumThreads);
3373 if (HasRecordIterationStats) {
3374 output.WriteRawTag(24);
3375 output.WriteBool(RecordIterationStats);
3377 if (HasMajorIterationFrequency) {
3378 output.WriteRawTag(32);
3379 output.WriteInt32(MajorIterationFrequency);
3381 if (HasTerminationCheckFrequency) {
3382 output.WriteRawTag(40);
3383 output.WriteInt32(TerminationCheckFrequency);
3385 if (HasRestartStrategy) {
3386 output.WriteRawTag(48);
3387 output.WriteEnum((
int) RestartStrategy);
3389 if (HasPrimalWeightUpdateSmoothing) {
3390 output.WriteRawTag(57);
3391 output.WriteDouble(PrimalWeightUpdateSmoothing);
3393 if (HasInitialPrimalWeight) {
3394 output.WriteRawTag(65);
3395 output.WriteDouble(InitialPrimalWeight);
3397 if (HasLInfRuizIterations) {
3398 output.WriteRawTag(72);
3399 output.WriteInt32(LInfRuizIterations);
3401 if (HasL2NormRescaling) {
3402 output.WriteRawTag(80);
3403 output.WriteBool(L2NormRescaling);
3405 if (HasSufficientReductionForRestart) {
3406 output.WriteRawTag(89);
3407 output.WriteDouble(SufficientReductionForRestart);
3409 if (HasLinesearchRule) {
3410 output.WriteRawTag(96);
3411 output.WriteEnum((
int) LinesearchRule);
3413 if (presolveOptions_ !=
null) {
3414 output.WriteRawTag(130, 1);
3415 output.WriteMessage(PresolveOptions);
3417 if (HasNecessaryReductionForRestart) {
3418 output.WriteRawTag(137, 1);
3419 output.WriteDouble(NecessaryReductionForRestart);
3421 if (adaptiveLinesearchParameters_ !=
null) {
3422 output.WriteRawTag(146, 1);
3423 output.WriteMessage(AdaptiveLinesearchParameters);
3425 if (malitskyPockParameters_ !=
null) {
3426 output.WriteRawTag(154, 1);
3427 output.WriteMessage(MalitskyPockParameters);
3429 if (HasInfiniteConstraintBoundThreshold) {
3430 output.WriteRawTag(177, 1);
3431 output.WriteDouble(InfiniteConstraintBoundThreshold);
3433 if (HasUseDiagonalQpTrustRegionSolver) {
3434 output.WriteRawTag(184, 1);
3435 output.WriteBool(UseDiagonalQpTrustRegionSolver);
3437 if (HasDiagonalQpTrustRegionSolverTolerance) {
3438 output.WriteRawTag(193, 1);
3439 output.WriteDouble(DiagonalQpTrustRegionSolverTolerance);
3441 if (HasInitialStepSizeScaling) {
3442 output.WriteRawTag(201, 1);
3443 output.WriteDouble(InitialStepSizeScaling);
3445 if (HasVerbosityLevel) {
3446 output.WriteRawTag(208, 1);
3447 output.WriteInt32(VerbosityLevel);
3450 output.WriteRawTag(216, 1);
3451 output.WriteInt32(NumShards);
3453 randomProjectionSeeds_.WriteTo(ref output, _repeated_randomProjectionSeeds_codec);
3454 if (HasHandleSomePrimalGradientsOnFiniteBoundsAsResiduals) {
3455 output.WriteRawTag(232, 1);
3456 output.WriteBool(HandleSomePrimalGradientsOnFiniteBoundsAsResiduals);
3458 if (HasUseFeasibilityPolishing) {
3459 output.WriteRawTag(240, 1);
3460 output.WriteBool(UseFeasibilityPolishing);
3462 if (HasLogIntervalSeconds) {
3463 output.WriteRawTag(249, 1);
3464 output.WriteDouble(LogIntervalSeconds);
3466 if (_unknownFields !=
null) {
3467 _unknownFields.WriteTo(ref output);
3472 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3473 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3474 public int CalculateSize() {
3476 if (terminationCriteria_ !=
null) {
3479 if (HasNumThreads) {
3480 size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumThreads);
3483 size += 2 + pb::CodedOutputStream.ComputeInt32Size(NumShards);
3485 if (HasRecordIterationStats) {
3488 if (HasVerbosityLevel) {
3489 size += 2 + pb::CodedOutputStream.ComputeInt32Size(VerbosityLevel);
3491 if (HasLogIntervalSeconds) {
3494 if (HasMajorIterationFrequency) {
3495 size += 1 + pb::CodedOutputStream.ComputeInt32Size(MajorIterationFrequency);
3497 if (HasTerminationCheckFrequency) {
3498 size += 1 + pb::CodedOutputStream.ComputeInt32Size(TerminationCheckFrequency);
3500 if (HasRestartStrategy) {
3501 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) RestartStrategy);
3503 if (HasPrimalWeightUpdateSmoothing) {
3506 if (HasInitialPrimalWeight) {
3509 if (presolveOptions_ !=
null) {
3510 size += 2 + pb::CodedOutputStream.ComputeMessageSize(PresolveOptions);
3512 if (HasLInfRuizIterations) {
3513 size += 1 + pb::CodedOutputStream.ComputeInt32Size(LInfRuizIterations);
3515 if (HasL2NormRescaling) {
3518 if (HasSufficientReductionForRestart) {
3521 if (HasNecessaryReductionForRestart) {
3524 if (HasLinesearchRule) {
3525 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) LinesearchRule);
3527 if (adaptiveLinesearchParameters_ !=
null) {
3528 size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdaptiveLinesearchParameters);
3530 if (malitskyPockParameters_ !=
null) {
3531 size += 2 + pb::CodedOutputStream.ComputeMessageSize(MalitskyPockParameters);
3533 if (HasInitialStepSizeScaling) {
3536 size += randomProjectionSeeds_.CalculateSize(_repeated_randomProjectionSeeds_codec);
3537 if (HasInfiniteConstraintBoundThreshold) {
3540 if (HasHandleSomePrimalGradientsOnFiniteBoundsAsResiduals) {
3543 if (HasUseDiagonalQpTrustRegionSolver) {
3546 if (HasDiagonalQpTrustRegionSolverTolerance) {
3549 if (HasUseFeasibilityPolishing) {
3552 if (_unknownFields !=
null) {
3553 size += _unknownFields.CalculateSize();
3558 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3559 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3560 public void MergeFrom(PrimalDualHybridGradientParams other) {
3561 if (other ==
null) {
3564 if (other.terminationCriteria_ !=
null) {
3565 if (terminationCriteria_ ==
null) {
3568 TerminationCriteria.MergeFrom(other.TerminationCriteria);
3570 if (other.HasNumThreads) {
3571 NumThreads = other.NumThreads;
3573 if (other.HasNumShards) {
3574 NumShards = other.NumShards;
3576 if (other.HasRecordIterationStats) {
3577 RecordIterationStats = other.RecordIterationStats;
3579 if (other.HasVerbosityLevel) {
3580 VerbosityLevel = other.VerbosityLevel;
3582 if (other.HasLogIntervalSeconds) {
3583 LogIntervalSeconds = other.LogIntervalSeconds;
3585 if (other.HasMajorIterationFrequency) {
3586 MajorIterationFrequency = other.MajorIterationFrequency;
3588 if (other.HasTerminationCheckFrequency) {
3589 TerminationCheckFrequency = other.TerminationCheckFrequency;
3591 if (other.HasRestartStrategy) {
3592 RestartStrategy = other.RestartStrategy;
3594 if (other.HasPrimalWeightUpdateSmoothing) {
3595 PrimalWeightUpdateSmoothing = other.PrimalWeightUpdateSmoothing;
3597 if (other.HasInitialPrimalWeight) {
3598 InitialPrimalWeight = other.InitialPrimalWeight;
3600 if (other.presolveOptions_ !=
null) {
3601 if (presolveOptions_ ==
null) {
3602 PresolveOptions =
new global::Google.OrTools.PDLP.PrimalDualHybridGradientParams.Types.PresolveOptions();
3604 PresolveOptions.MergeFrom(other.PresolveOptions);
3606 if (other.HasLInfRuizIterations) {
3607 LInfRuizIterations = other.LInfRuizIterations;
3609 if (other.HasL2NormRescaling) {
3610 L2NormRescaling = other.L2NormRescaling;
3612 if (other.HasSufficientReductionForRestart) {
3613 SufficientReductionForRestart = other.SufficientReductionForRestart;
3615 if (other.HasNecessaryReductionForRestart) {
3616 NecessaryReductionForRestart = other.NecessaryReductionForRestart;
3618 if (other.HasLinesearchRule) {
3619 LinesearchRule = other.LinesearchRule;
3621 if (other.adaptiveLinesearchParameters_ !=
null) {
3622 if (adaptiveLinesearchParameters_ ==
null) {
3623 AdaptiveLinesearchParameters =
new global::Google.OrTools.PDLP.AdaptiveLinesearchParams();
3625 AdaptiveLinesearchParameters.MergeFrom(other.AdaptiveLinesearchParameters);
3627 if (other.malitskyPockParameters_ !=
null) {
3628 if (malitskyPockParameters_ ==
null) {
3629 MalitskyPockParameters =
new global::Google.OrTools.PDLP.MalitskyPockParams();
3631 MalitskyPockParameters.MergeFrom(other.MalitskyPockParameters);
3633 if (other.HasInitialStepSizeScaling) {
3634 InitialStepSizeScaling = other.InitialStepSizeScaling;
3636 randomProjectionSeeds_.Add(other.randomProjectionSeeds_);
3637 if (other.HasInfiniteConstraintBoundThreshold) {
3638 InfiniteConstraintBoundThreshold = other.InfiniteConstraintBoundThreshold;
3640 if (other.HasHandleSomePrimalGradientsOnFiniteBoundsAsResiduals) {
3641 HandleSomePrimalGradientsOnFiniteBoundsAsResiduals = other.HandleSomePrimalGradientsOnFiniteBoundsAsResiduals;
3643 if (other.HasUseDiagonalQpTrustRegionSolver) {
3644 UseDiagonalQpTrustRegionSolver = other.UseDiagonalQpTrustRegionSolver;
3646 if (other.HasDiagonalQpTrustRegionSolverTolerance) {
3647 DiagonalQpTrustRegionSolverTolerance = other.DiagonalQpTrustRegionSolverTolerance;
3649 if (other.HasUseFeasibilityPolishing) {
3650 UseFeasibilityPolishing = other.UseFeasibilityPolishing;
3652 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3655 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3656 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3657 public void MergeFrom(pb::CodedInputStream input) {
3658 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3659 input.ReadRawMessage(
this);
3662 while ((tag = input.ReadTag()) != 0) {
3665 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3668 if (terminationCriteria_ ==
null) {
3675 NumThreads = input.ReadInt32();
3679 RecordIterationStats = input.ReadBool();
3683 MajorIterationFrequency = input.ReadInt32();
3687 TerminationCheckFrequency = input.ReadInt32();
3691 RestartStrategy = (global::Google.OrTools.PDLP.PrimalDualHybridGradientParams.Types.RestartStrategy) input.ReadEnum();
3695 PrimalWeightUpdateSmoothing = input.ReadDouble();
3699 InitialPrimalWeight = input.ReadDouble();
3703 LInfRuizIterations = input.ReadInt32();
3707 L2NormRescaling = input.ReadBool();
3711 SufficientReductionForRestart = input.ReadDouble();
3715 LinesearchRule = (global::Google.OrTools.PDLP.PrimalDualHybridGradientParams.Types.LinesearchRule) input.ReadEnum();
3719 if (presolveOptions_ ==
null) {
3720 PresolveOptions =
new global::Google.OrTools.PDLP.PrimalDualHybridGradientParams.Types.PresolveOptions();
3722 input.ReadMessage(PresolveOptions);
3726 NecessaryReductionForRestart = input.ReadDouble();
3730 if (adaptiveLinesearchParameters_ ==
null) {
3731 AdaptiveLinesearchParameters =
new global::Google.OrTools.PDLP.AdaptiveLinesearchParams();
3733 input.ReadMessage(AdaptiveLinesearchParameters);
3737 if (malitskyPockParameters_ ==
null) {
3738 MalitskyPockParameters =
new global::Google.OrTools.PDLP.MalitskyPockParams();
3740 input.ReadMessage(MalitskyPockParameters);
3744 InfiniteConstraintBoundThreshold = input.ReadDouble();
3748 UseDiagonalQpTrustRegionSolver = input.ReadBool();
3752 DiagonalQpTrustRegionSolverTolerance = input.ReadDouble();
3756 InitialStepSizeScaling = input.ReadDouble();
3760 VerbosityLevel = input.ReadInt32();
3764 NumShards = input.ReadInt32();
3769 randomProjectionSeeds_.AddEntriesFrom(input, _repeated_randomProjectionSeeds_codec);
3773 HandleSomePrimalGradientsOnFiniteBoundsAsResiduals = input.ReadBool();
3777 UseFeasibilityPolishing = input.ReadBool();
3781 LogIntervalSeconds = input.ReadDouble();
3789 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3790 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3791 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3792 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3794 while ((tag = input.ReadTag()) != 0) {
3797 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3800 if (terminationCriteria_ ==
null) {
3801 TerminationCriteria =
new global::Google.OrTools.PDLP.TerminationCriteria();
3803 input.ReadMessage(TerminationCriteria);
3807 NumThreads = input.ReadInt32();
3811 RecordIterationStats = input.ReadBool();
3815 MajorIterationFrequency = input.ReadInt32();
3819 TerminationCheckFrequency = input.ReadInt32();
3823 RestartStrategy = (global::Google.OrTools.PDLP.PrimalDualHybridGradientParams.Types.RestartStrategy) input.ReadEnum();
3827 PrimalWeightUpdateSmoothing = input.ReadDouble();
3831 InitialPrimalWeight = input.ReadDouble();
3835 LInfRuizIterations = input.ReadInt32();
3839 L2NormRescaling = input.ReadBool();
3843 SufficientReductionForRestart = input.ReadDouble();
3847 LinesearchRule = (global::Google.OrTools.PDLP.PrimalDualHybridGradientParams.Types.LinesearchRule) input.ReadEnum();
3851 if (presolveOptions_ ==
null) {
3852 PresolveOptions =
new global::Google.OrTools.PDLP.PrimalDualHybridGradientParams.Types.PresolveOptions();
3854 input.ReadMessage(PresolveOptions);
3858 NecessaryReductionForRestart = input.ReadDouble();
3862 if (adaptiveLinesearchParameters_ ==
null) {
3863 AdaptiveLinesearchParameters =
new global::Google.OrTools.PDLP.AdaptiveLinesearchParams();
3865 input.ReadMessage(AdaptiveLinesearchParameters);
3869 if (malitskyPockParameters_ ==
null) {
3870 MalitskyPockParameters =
new global::Google.OrTools.PDLP.MalitskyPockParams();
3872 input.ReadMessage(MalitskyPockParameters);
3876 InfiniteConstraintBoundThreshold = input.ReadDouble();
3880 UseDiagonalQpTrustRegionSolver = input.ReadBool();
3884 DiagonalQpTrustRegionSolverTolerance = input.ReadDouble();
3888 InitialStepSizeScaling = input.ReadDouble();
3892 VerbosityLevel = input.ReadInt32();
3896 NumShards = input.ReadInt32();
3901 randomProjectionSeeds_.AddEntriesFrom(ref input, _repeated_randomProjectionSeeds_codec);
3905 HandleSomePrimalGradientsOnFiniteBoundsAsResiduals = input.ReadBool();
3909 UseFeasibilityPolishing = input.ReadBool();
3913 LogIntervalSeconds = input.ReadDouble();
3921 #region Nested types
3923 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3924 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3925 public static partial class Types {
3926 public enum RestartStrategy {
3932 [pbr::OriginalName(
"NO_RESTARTS")] NoRestarts = 1,
3937 [pbr::OriginalName(
"EVERY_MAJOR_ITERATION")] EveryMajorIteration = 2,
3946 [pbr::OriginalName(
"ADAPTIVE_HEURISTIC")] AdaptiveHeuristic = 3,
3954 [pbr::OriginalName(
"ADAPTIVE_DISTANCE_BASED")] AdaptiveDistanceBased = 4,
3957 public enum LinesearchRule {
3958 [pbr::OriginalName(
"LINESEARCH_RULE_UNSPECIFIED")]
Unspecified = 0,
3965 [pbr::OriginalName(
"ADAPTIVE_LINESEARCH_RULE")] AdaptiveLinesearchRule = 1,
3972 [pbr::OriginalName(
"MALITSKY_POCK_LINESEARCH_RULE")] MalitskyPockLinesearchRule = 2,
3977 [pbr::OriginalName(
"CONSTANT_STEP_SIZE_RULE")] ConstantStepSizeRule = 3,
3980 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
3981 public sealed partial class PresolveOptions : pb::IMessage<PresolveOptions>
3982 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3983 , pb::IBufferMessage
3986 private static readonly pb::MessageParser<PresolveOptions> _parser =
new pb::MessageParser<PresolveOptions>(() =>
new PresolveOptions());
3987 private pb::UnknownFieldSet _unknownFields;
3988 private int _hasBits0;
3989 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3990 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3991 public static pb::MessageParser<PresolveOptions> Parser {
get {
return _parser; } }
3993 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3994 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3995 public static pbr::MessageDescriptor Descriptor {
3996 get {
return global::Google.OrTools.PDLP.PrimalDualHybridGradientParams.Descriptor.NestedTypes[0]; }
3999 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4000 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4001 pbr::MessageDescriptor pb::IMessage.Descriptor {
4002 get {
return Descriptor; }
4005 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4006 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4007 public PresolveOptions() {
4011 partial
void OnConstruction();
4013 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4014 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4016 _hasBits0 = other._hasBits0;
4017 useGlop_ = other.useGlop_;
4018 glopParameters_ = other.glopParameters_ !=
null ? other.glopParameters_.Clone() :
null;
4019 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4022 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4023 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4029 public const int UseGlopFieldNumber = 1;
4030 private readonly
static bool UseGlopDefaultValue =
false;
4032 private bool useGlop_;
4043 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4044 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4045 public bool UseGlop {
4046 get {
if ((_hasBits0 & 1) != 0) {
return useGlop_; }
else {
return UseGlopDefaultValue; } }
4053 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4054 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4055 public bool HasUseGlop {
4056 get {
return (_hasBits0 & 1) != 0; }
4059 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4060 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4061 public void ClearUseGlop() {
4066 public const int GlopParametersFieldNumber = 2;
4067 private global::Google.OrTools.Glop.
GlopParameters glopParameters_;
4072 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4073 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4074 public global::Google.OrTools.Glop.GlopParameters GlopParameters {
4075 get { return glopParameters_; }
4077 glopParameters_ = value;
4081 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4082 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4083 public override bool Equals(
object other) {
4087 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4088 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4090 if (ReferenceEquals(other,
null)) {
4093 if (ReferenceEquals(other,
this)) {
4096 if (UseGlop != other.
UseGlop)
return false;
4097 if (!
object.Equals(GlopParameters, other.
GlopParameters))
return false;
4098 return Equals(_unknownFields, other._unknownFields);
4101 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4102 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4103 public override int GetHashCode() {
4105 if (HasUseGlop) hash ^= UseGlop.GetHashCode();
4106 if (glopParameters_ !=
null) hash ^= GlopParameters.GetHashCode();
4107 if (_unknownFields !=
null) {
4108 hash ^= _unknownFields.GetHashCode();
4113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4114 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4115 public override string ToString() {
4116 return pb::JsonFormatter.ToDiagnosticString(
this);
4119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4120 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4121 public void WriteTo(pb::CodedOutputStream output) {
4122 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4123 output.WriteRawMessage(
this);
4126 output.WriteRawTag(8);
4127 output.WriteBool(UseGlop);
4129 if (glopParameters_ !=
null) {
4130 output.WriteRawTag(18);
4131 output.WriteMessage(GlopParameters);
4133 if (_unknownFields !=
null) {
4134 _unknownFields.WriteTo(output);
4139 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4141 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4142 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4144 output.WriteRawTag(8);
4145 output.WriteBool(UseGlop);
4147 if (glopParameters_ !=
null) {
4148 output.WriteRawTag(18);
4149 output.WriteMessage(GlopParameters);
4151 if (_unknownFields !=
null) {
4152 _unknownFields.WriteTo(ref output);
4157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4158 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4159 public int CalculateSize() {
4164 if (glopParameters_ !=
null) {
4165 size += 1 + pb::CodedOutputStream.ComputeMessageSize(GlopParameters);
4167 if (_unknownFields !=
null) {
4168 size += _unknownFields.CalculateSize();
4173 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4174 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4175 public void MergeFrom(PresolveOptions other) {
4176 if (other ==
null) {
4179 if (other.HasUseGlop) {
4180 UseGlop = other.UseGlop;
4182 if (other.glopParameters_ !=
null) {
4183 if (glopParameters_ ==
null) {
4184 GlopParameters =
new global::Google.OrTools.Glop.GlopParameters();
4186 GlopParameters.MergeFrom(other.GlopParameters);
4188 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4192 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4193 public void MergeFrom(pb::CodedInputStream input) {
4194 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4195 input.ReadRawMessage(
this);
4198 while ((tag = input.ReadTag()) != 0) {
4201 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4204 UseGlop = input.ReadBool();
4208 if (glopParameters_ ==
null) {
4209 GlopParameters =
new global::Google.OrTools.Glop.GlopParameters();
4211 input.ReadMessage(GlopParameters);
4219 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4220 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4221 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4222 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4224 while ((tag = input.ReadTag()) != 0) {
4227 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4230 UseGlop = input.ReadBool();
4234 if (glopParameters_ ==
null) {
4235 GlopParameters =
new global::Google.OrTools.Glop.GlopParameters();
4237 input.ReadMessage(GlopParameters);