DotNet Reference

DotNet Reference

SolverParameters.pb.cs
Go to the documentation of this file.
1 // <auto-generated>
2 // Generated by the protocol buffer compiler. DO NOT EDIT!
3 // source: ortools/constraint_solver/solver_parameters.proto
4 // </auto-generated>
5 #pragma warning disable 1591, 0612, 3021
6 #region Designer generated code
7 
8 using pb = global::Google.Protobuf;
9 using pbc = global::Google.Protobuf.Collections;
10 using pbr = global::Google.Protobuf.Reflection;
11 using scg = global::System.Collections.Generic;
13 
15  public static partial class SolverParametersReflection {
16 
17  #region Descriptor
18  public static pbr::FileDescriptor Descriptor {
20  get { return descriptor; }
21  }
22  private static pbr::FileDescriptor descriptor;
23 
25  byte[] descriptorData = global::System.Convert.FromBase64String(
26  string.Concat(
27  "CjFvcnRvb2xzL2NvbnN0cmFpbnRfc29sdmVyL3NvbHZlcl9wYXJhbWV0ZXJz",
28  "LnByb3RvEhNvcGVyYXRpb25zX3Jlc2VhcmNoIs0HChpDb25zdHJhaW50U29s",
29  "dmVyUGFyYW1ldGVycxJYCg5jb21wcmVzc190cmFpbBgBIAEoDjJALm9wZXJh",
30  "dGlvbnNfcmVzZWFyY2guQ29uc3RyYWludFNvbHZlclBhcmFtZXRlcnMuVHJh",
31  "aWxDb21wcmVzc2lvbhIYChB0cmFpbF9ibG9ja19zaXplGAIgASgFEhgKEGFy",
32  "cmF5X3NwbGl0X3NpemUYAyABKAUSEwoLc3RvcmVfbmFtZXMYBCABKAgSGwoT",
33  "bmFtZV9jYXN0X3ZhcmlhYmxlcxgFIAEoCBIaChJuYW1lX2FsbF92YXJpYWJs",
34  "ZXMYBiABKAgSGwoTcHJvZmlsZV9wcm9wYWdhdGlvbhgHIAEoCBIUCgxwcm9m",
35  "aWxlX2ZpbGUYCCABKAkSHAoUcHJvZmlsZV9sb2NhbF9zZWFyY2gYECABKAgS",
36  "IgoacHJpbnRfbG9jYWxfc2VhcmNoX3Byb2ZpbGUYESABKAgSGQoRdHJhY2Vf",
37  "cHJvcGFnYXRpb24YCSABKAgSFAoMdHJhY2Vfc2VhcmNoGAogASgIEhMKC3By",
38  "aW50X21vZGVsGAsgASgIEhkKEXByaW50X21vZGVsX3N0YXRzGAwgASgIEh8K",
39  "F3ByaW50X2FkZGVkX2NvbnN0cmFpbnRzGA0gASgIEhUKDWRpc2FibGVfc29s",
40  "dmUYDyABKAgSFwoPdXNlX3NtYWxsX3RhYmxlGGUgASgIEiIKGnVzZV9jdW11",
41  "bGF0aXZlX2VkZ2VfZmluZGVyGGkgASgIEiEKGXVzZV9jdW11bGF0aXZlX3Rp",
42  "bWVfdGFibGUYaiABKAgSJgoedXNlX2N1bXVsYXRpdmVfdGltZV90YWJsZV9z",
43  "eW5jGHAgASgIEiYKHnVzZV9zZXF1ZW5jZV9oaWdoX2RlbWFuZF90YXNrcxhr",
44  "IAEoCBIlCh11c2VfYWxsX3Bvc3NpYmxlX2Rpc2p1bmN0aW9ucxhsIAEoCBIc",
45  "ChRtYXhfZWRnZV9maW5kZXJfc2l6ZRhtIAEoBRIcChRkaWZmbl91c2VfY3Vt",
46  "dWxhdGl2ZRhuIAEoCBIXCg91c2VfZWxlbWVudF9ybXEYbyABKAgSIgoac2tp",
47  "cF9sb2NhbGx5X29wdGltYWxfcGF0aHMYcSABKAgSHQoVY2hlY2tfc29sdXRp",
48  "b25fcGVyaW9kGHIgASgFIj4KEFRyYWlsQ29tcHJlc3Npb24SEgoOTk9fQ09N",
49  "UFJFU1NJT04QABIWChJDT01QUkVTU19XSVRIX1pMSUIQAUoECGQQZUoECGYQ",
50  "Z0oECGcQaEoECGgQaUJJCiNjb20uZ29vZ2xlLm9ydG9vbHMuY29uc3RyYWlu",
51  "dHNvbHZlclABqgIfR29vZ2xlLk9yVG9vbHMuQ29uc3RyYWludFNvbHZlcmIG",
52  "cHJvdG8z"));
53  descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
54  new pbr::FileDescriptor[] { },
55  new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
56  new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.ConstraintSolver.ConstraintSolverParameters), global::Google.OrTools.ConstraintSolver.ConstraintSolverParameters.Parser, new[]{ "CompressTrail", "TrailBlockSize", "ArraySplitSize", "StoreNames", "NameCastVariables", "NameAllVariables", "ProfilePropagation", "ProfileFile", "ProfileLocalSearch", "PrintLocalSearchProfile", "TracePropagation", "TraceSearch", "PrintModel", "PrintModelStats", "PrintAddedConstraints", "DisableSolve", "UseSmallTable", "UseCumulativeEdgeFinder", "UseCumulativeTimeTable", "UseCumulativeTimeTableSync", "UseSequenceHighDemandTasks", "UseAllPossibleDisjunctions", "MaxEdgeFinderSize", "DiffnUseCumulative", "UseElementRmq", "SkipLocallyOptimalPaths", "CheckSolutionPeriod" }, null, new[]{ typeof(global::Google.OrTools.ConstraintSolver.ConstraintSolverParameters.Types.TrailCompression) }, null, null)
57  }));
58  }
59  #endregion
60 
61  }
62  #region Messages
63  public sealed partial class ConstraintSolverParameters : pb::IMessage<ConstraintSolverParameters> {
67  private static readonly pb::MessageParser<ConstraintSolverParameters> _parser = new pb::MessageParser<ConstraintSolverParameters>(() => new ConstraintSolverParameters());
68  private pb::UnknownFieldSet _unknownFields;
69  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
70  public static pb::MessageParser<ConstraintSolverParameters> Parser { get { return _parser; } }
71 
72  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
73  public static pbr::MessageDescriptor Descriptor {
74  get { return global::Google.OrTools.ConstraintSolver.SolverParametersReflection.Descriptor.MessageTypes[0]; }
75  }
76 
77  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
78  pbr::MessageDescriptor pb::IMessage.Descriptor {
79  get { return Descriptor; }
80  }
81 
82  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
84  OnConstruction();
85  }
86 
87  partial void OnConstruction();
88 
89  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
91  compressTrail_ = other.compressTrail_;
92  trailBlockSize_ = other.trailBlockSize_;
93  arraySplitSize_ = other.arraySplitSize_;
94  storeNames_ = other.storeNames_;
95  nameCastVariables_ = other.nameCastVariables_;
96  nameAllVariables_ = other.nameAllVariables_;
97  profilePropagation_ = other.profilePropagation_;
98  profileFile_ = other.profileFile_;
99  profileLocalSearch_ = other.profileLocalSearch_;
100  printLocalSearchProfile_ = other.printLocalSearchProfile_;
101  tracePropagation_ = other.tracePropagation_;
102  traceSearch_ = other.traceSearch_;
103  printModel_ = other.printModel_;
104  printModelStats_ = other.printModelStats_;
105  printAddedConstraints_ = other.printAddedConstraints_;
106  disableSolve_ = other.disableSolve_;
107  useSmallTable_ = other.useSmallTable_;
108  useCumulativeEdgeFinder_ = other.useCumulativeEdgeFinder_;
109  useCumulativeTimeTable_ = other.useCumulativeTimeTable_;
110  useCumulativeTimeTableSync_ = other.useCumulativeTimeTableSync_;
111  useSequenceHighDemandTasks_ = other.useSequenceHighDemandTasks_;
112  useAllPossibleDisjunctions_ = other.useAllPossibleDisjunctions_;
113  maxEdgeFinderSize_ = other.maxEdgeFinderSize_;
114  diffnUseCumulative_ = other.diffnUseCumulative_;
115  useElementRmq_ = other.useElementRmq_;
116  skipLocallyOptimalPaths_ = other.skipLocallyOptimalPaths_;
117  checkSolutionPeriod_ = other.checkSolutionPeriod_;
118  _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
119  }
120 
121  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
123  return new ConstraintSolverParameters(this);
124  }
125 
127  public const int CompressTrailFieldNumber = 1;
128  private global::Google.OrTools.ConstraintSolver.ConstraintSolverParameters.Types.TrailCompression compressTrail_ = global::Google.OrTools.ConstraintSolver.ConstraintSolverParameters.Types.TrailCompression.NoCompression;
134  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
135  public global::Google.OrTools.ConstraintSolver.ConstraintSolverParameters.Types.TrailCompression CompressTrail {
136  get { return compressTrail_; }
137  set {
138  compressTrail_ = value;
139  }
140  }
141 
143  public const int TrailBlockSizeFieldNumber = 2;
144  private int trailBlockSize_;
149  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
150  public int TrailBlockSize {
151  get { return trailBlockSize_; }
152  set {
153  trailBlockSize_ = value;
154  }
155  }
156 
158  public const int ArraySplitSizeFieldNumber = 3;
159  private int arraySplitSize_;
164  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
165  public int ArraySplitSize {
166  get { return arraySplitSize_; }
167  set {
168  arraySplitSize_ = value;
169  }
170  }
171 
173  public const int StoreNamesFieldNumber = 4;
174  private bool storeNames_;
179  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
180  public bool StoreNames {
181  get { return storeNames_; }
182  set {
183  storeNames_ = value;
184  }
185  }
186 
188  public const int NameCastVariablesFieldNumber = 5;
189  private bool nameCastVariables_;
193  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
194  public bool NameCastVariables {
195  get { return nameCastVariables_; }
196  set {
197  nameCastVariables_ = value;
198  }
199  }
200 
202  public const int NameAllVariablesFieldNumber = 6;
203  private bool nameAllVariables_;
207  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
208  public bool NameAllVariables {
209  get { return nameAllVariables_; }
210  set {
211  nameAllVariables_ = value;
212  }
213  }
214 
216  public const int ProfilePropagationFieldNumber = 7;
217  private bool profilePropagation_;
221  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
222  public bool ProfilePropagation {
223  get { return profilePropagation_; }
224  set {
225  profilePropagation_ = value;
226  }
227  }
228 
230  public const int ProfileFileFieldNumber = 8;
231  private string profileFile_ = "";
235  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
236  public string ProfileFile {
237  get { return profileFile_; }
238  set {
239  profileFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
240  }
241  }
242 
244  public const int ProfileLocalSearchFieldNumber = 16;
245  private bool profileLocalSearch_;
249  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
250  public bool ProfileLocalSearch {
251  get { return profileLocalSearch_; }
252  set {
253  profileLocalSearch_ = value;
254  }
255  }
256 
258  public const int PrintLocalSearchProfileFieldNumber = 17;
259  private bool printLocalSearchProfile_;
263  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
265  get { return printLocalSearchProfile_; }
266  set {
267  printLocalSearchProfile_ = value;
268  }
269  }
270 
272  public const int TracePropagationFieldNumber = 9;
273  private bool tracePropagation_;
277  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
278  public bool TracePropagation {
279  get { return tracePropagation_; }
280  set {
281  tracePropagation_ = value;
282  }
283  }
284 
286  public const int TraceSearchFieldNumber = 10;
287  private bool traceSearch_;
291  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
292  public bool TraceSearch {
293  get { return traceSearch_; }
294  set {
295  traceSearch_ = value;
296  }
297  }
298 
300  public const int PrintModelFieldNumber = 11;
301  private bool printModel_;
305  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
306  public bool PrintModel {
307  get { return printModel_; }
308  set {
309  printModel_ = value;
310  }
311  }
312 
314  public const int PrintModelStatsFieldNumber = 12;
315  private bool printModelStats_;
319  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
320  public bool PrintModelStats {
321  get { return printModelStats_; }
322  set {
323  printModelStats_ = value;
324  }
325  }
326 
328  public const int PrintAddedConstraintsFieldNumber = 13;
329  private bool printAddedConstraints_;
333  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
334  public bool PrintAddedConstraints {
335  get { return printAddedConstraints_; }
336  set {
337  printAddedConstraints_ = value;
338  }
339  }
340 
342  public const int DisableSolveFieldNumber = 15;
343  private bool disableSolve_;
344  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
345  public bool DisableSolve {
346  get { return disableSolve_; }
347  set {
348  disableSolve_ = value;
349  }
350  }
351 
353  public const int UseSmallTableFieldNumber = 101;
354  private bool useSmallTable_;
359  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
360  public bool UseSmallTable {
361  get { return useSmallTable_; }
362  set {
363  useSmallTable_ = value;
364  }
365  }
366 
368  public const int UseCumulativeEdgeFinderFieldNumber = 105;
369  private bool useCumulativeEdgeFinder_;
374  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
376  get { return useCumulativeEdgeFinder_; }
377  set {
378  useCumulativeEdgeFinder_ = value;
379  }
380  }
381 
383  public const int UseCumulativeTimeTableFieldNumber = 106;
384  private bool useCumulativeTimeTable_;
385  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
387  get { return useCumulativeTimeTable_; }
388  set {
389  useCumulativeTimeTable_ = value;
390  }
391  }
392 
395  private bool useCumulativeTimeTableSync_;
396  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
398  get { return useCumulativeTimeTableSync_; }
399  set {
400  useCumulativeTimeTableSync_ = value;
401  }
402  }
403 
406  private bool useSequenceHighDemandTasks_;
407  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
409  get { return useSequenceHighDemandTasks_; }
410  set {
411  useSequenceHighDemandTasks_ = value;
412  }
413  }
414 
417  private bool useAllPossibleDisjunctions_;
418  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
420  get { return useAllPossibleDisjunctions_; }
421  set {
422  useAllPossibleDisjunctions_ = value;
423  }
424  }
425 
427  public const int MaxEdgeFinderSizeFieldNumber = 109;
428  private int maxEdgeFinderSize_;
429  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
430  public int MaxEdgeFinderSize {
431  get { return maxEdgeFinderSize_; }
432  set {
433  maxEdgeFinderSize_ = value;
434  }
435  }
436 
438  public const int DiffnUseCumulativeFieldNumber = 110;
439  private bool diffnUseCumulative_;
444  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
445  public bool DiffnUseCumulative {
446  get { return diffnUseCumulative_; }
447  set {
448  diffnUseCumulative_ = value;
449  }
450  }
451 
453  public const int UseElementRmqFieldNumber = 111;
454  private bool useElementRmq_;
459  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
460  public bool UseElementRmq {
461  get { return useElementRmq_; }
462  set {
463  useElementRmq_ = value;
464  }
465  }
466 
468  public const int SkipLocallyOptimalPathsFieldNumber = 113;
469  private bool skipLocallyOptimalPaths_;
477  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
479  get { return skipLocallyOptimalPaths_; }
480  set {
481  skipLocallyOptimalPaths_ = value;
482  }
483  }
484 
486  public const int CheckSolutionPeriodFieldNumber = 114;
487  private int checkSolutionPeriod_;
492  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
493  public int CheckSolutionPeriod {
494  get { return checkSolutionPeriod_; }
495  set {
496  checkSolutionPeriod_ = value;
497  }
498  }
499 
500  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
501  public override bool Equals(object other) {
502  return Equals(other as ConstraintSolverParameters);
503  }
504 
505  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
506  public bool Equals(ConstraintSolverParameters other) {
507  if (ReferenceEquals(other, null)) {
508  return false;
509  }
510  if (ReferenceEquals(other, this)) {
511  return true;
512  }
513  if (CompressTrail != other.CompressTrail) return false;
514  if (TrailBlockSize != other.TrailBlockSize) return false;
515  if (ArraySplitSize != other.ArraySplitSize) return false;
516  if (StoreNames != other.StoreNames) return false;
517  if (NameCastVariables != other.NameCastVariables) return false;
518  if (NameAllVariables != other.NameAllVariables) return false;
519  if (ProfilePropagation != other.ProfilePropagation) return false;
520  if (ProfileFile != other.ProfileFile) return false;
521  if (ProfileLocalSearch != other.ProfileLocalSearch) return false;
522  if (PrintLocalSearchProfile != other.PrintLocalSearchProfile) return false;
523  if (TracePropagation != other.TracePropagation) return false;
524  if (TraceSearch != other.TraceSearch) return false;
525  if (PrintModel != other.PrintModel) return false;
526  if (PrintModelStats != other.PrintModelStats) return false;
527  if (PrintAddedConstraints != other.PrintAddedConstraints) return false;
528  if (DisableSolve != other.DisableSolve) return false;
529  if (UseSmallTable != other.UseSmallTable) return false;
530  if (UseCumulativeEdgeFinder != other.UseCumulativeEdgeFinder) return false;
531  if (UseCumulativeTimeTable != other.UseCumulativeTimeTable) return false;
532  if (UseCumulativeTimeTableSync != other.UseCumulativeTimeTableSync) return false;
533  if (UseSequenceHighDemandTasks != other.UseSequenceHighDemandTasks) return false;
534  if (UseAllPossibleDisjunctions != other.UseAllPossibleDisjunctions) return false;
535  if (MaxEdgeFinderSize != other.MaxEdgeFinderSize) return false;
536  if (DiffnUseCumulative != other.DiffnUseCumulative) return false;
537  if (UseElementRmq != other.UseElementRmq) return false;
538  if (SkipLocallyOptimalPaths != other.SkipLocallyOptimalPaths) return false;
539  if (CheckSolutionPeriod != other.CheckSolutionPeriod) return false;
540  return Equals(_unknownFields, other._unknownFields);
541  }
542 
543  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
544  public override int GetHashCode() {
545  int hash = 1;
546  if (CompressTrail != global::Google.OrTools.ConstraintSolver.ConstraintSolverParameters.Types.TrailCompression.NoCompression) hash ^= CompressTrail.GetHashCode();
547  if (TrailBlockSize != 0) hash ^= TrailBlockSize.GetHashCode();
548  if (ArraySplitSize != 0) hash ^= ArraySplitSize.GetHashCode();
549  if (StoreNames != false) hash ^= StoreNames.GetHashCode();
550  if (NameCastVariables != false) hash ^= NameCastVariables.GetHashCode();
551  if (NameAllVariables != false) hash ^= NameAllVariables.GetHashCode();
552  if (ProfilePropagation != false) hash ^= ProfilePropagation.GetHashCode();
553  if (ProfileFile.Length != 0) hash ^= ProfileFile.GetHashCode();
554  if (ProfileLocalSearch != false) hash ^= ProfileLocalSearch.GetHashCode();
555  if (PrintLocalSearchProfile != false) hash ^= PrintLocalSearchProfile.GetHashCode();
556  if (TracePropagation != false) hash ^= TracePropagation.GetHashCode();
557  if (TraceSearch != false) hash ^= TraceSearch.GetHashCode();
558  if (PrintModel != false) hash ^= PrintModel.GetHashCode();
559  if (PrintModelStats != false) hash ^= PrintModelStats.GetHashCode();
560  if (PrintAddedConstraints != false) hash ^= PrintAddedConstraints.GetHashCode();
561  if (DisableSolve != false) hash ^= DisableSolve.GetHashCode();
562  if (UseSmallTable != false) hash ^= UseSmallTable.GetHashCode();
563  if (UseCumulativeEdgeFinder != false) hash ^= UseCumulativeEdgeFinder.GetHashCode();
564  if (UseCumulativeTimeTable != false) hash ^= UseCumulativeTimeTable.GetHashCode();
565  if (UseCumulativeTimeTableSync != false) hash ^= UseCumulativeTimeTableSync.GetHashCode();
566  if (UseSequenceHighDemandTasks != false) hash ^= UseSequenceHighDemandTasks.GetHashCode();
567  if (UseAllPossibleDisjunctions != false) hash ^= UseAllPossibleDisjunctions.GetHashCode();
568  if (MaxEdgeFinderSize != 0) hash ^= MaxEdgeFinderSize.GetHashCode();
569  if (DiffnUseCumulative != false) hash ^= DiffnUseCumulative.GetHashCode();
570  if (UseElementRmq != false) hash ^= UseElementRmq.GetHashCode();
571  if (SkipLocallyOptimalPaths != false) hash ^= SkipLocallyOptimalPaths.GetHashCode();
572  if (CheckSolutionPeriod != 0) hash ^= CheckSolutionPeriod.GetHashCode();
573  if (_unknownFields != null) {
574  hash ^= _unknownFields.GetHashCode();
575  }
576  return hash;
577  }
578 
579  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
580  public override string ToString() {
581  return pb::JsonFormatter.ToDiagnosticString(this);
582  }
583 
584  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
585  public void WriteTo(pb::CodedOutputStream output) {
586  if (CompressTrail != global::Google.OrTools.ConstraintSolver.ConstraintSolverParameters.Types.TrailCompression.NoCompression) {
587  output.WriteRawTag(8);
588  output.WriteEnum((int) CompressTrail);
589  }
590  if (TrailBlockSize != 0) {
591  output.WriteRawTag(16);
592  output.WriteInt32(TrailBlockSize);
593  }
594  if (ArraySplitSize != 0) {
595  output.WriteRawTag(24);
596  output.WriteInt32(ArraySplitSize);
597  }
598  if (StoreNames != false) {
599  output.WriteRawTag(32);
600  output.WriteBool(StoreNames);
601  }
602  if (NameCastVariables != false) {
603  output.WriteRawTag(40);
604  output.WriteBool(NameCastVariables);
605  }
606  if (NameAllVariables != false) {
607  output.WriteRawTag(48);
608  output.WriteBool(NameAllVariables);
609  }
610  if (ProfilePropagation != false) {
611  output.WriteRawTag(56);
612  output.WriteBool(ProfilePropagation);
613  }
614  if (ProfileFile.Length != 0) {
615  output.WriteRawTag(66);
616  output.WriteString(ProfileFile);
617  }
618  if (TracePropagation != false) {
619  output.WriteRawTag(72);
620  output.WriteBool(TracePropagation);
621  }
622  if (TraceSearch != false) {
623  output.WriteRawTag(80);
624  output.WriteBool(TraceSearch);
625  }
626  if (PrintModel != false) {
627  output.WriteRawTag(88);
628  output.WriteBool(PrintModel);
629  }
630  if (PrintModelStats != false) {
631  output.WriteRawTag(96);
632  output.WriteBool(PrintModelStats);
633  }
634  if (PrintAddedConstraints != false) {
635  output.WriteRawTag(104);
636  output.WriteBool(PrintAddedConstraints);
637  }
638  if (DisableSolve != false) {
639  output.WriteRawTag(120);
640  output.WriteBool(DisableSolve);
641  }
642  if (ProfileLocalSearch != false) {
643  output.WriteRawTag(128, 1);
644  output.WriteBool(ProfileLocalSearch);
645  }
646  if (PrintLocalSearchProfile != false) {
647  output.WriteRawTag(136, 1);
648  output.WriteBool(PrintLocalSearchProfile);
649  }
650  if (UseSmallTable != false) {
651  output.WriteRawTag(168, 6);
652  output.WriteBool(UseSmallTable);
653  }
654  if (UseCumulativeEdgeFinder != false) {
655  output.WriteRawTag(200, 6);
656  output.WriteBool(UseCumulativeEdgeFinder);
657  }
658  if (UseCumulativeTimeTable != false) {
659  output.WriteRawTag(208, 6);
660  output.WriteBool(UseCumulativeTimeTable);
661  }
662  if (UseSequenceHighDemandTasks != false) {
663  output.WriteRawTag(216, 6);
664  output.WriteBool(UseSequenceHighDemandTasks);
665  }
666  if (UseAllPossibleDisjunctions != false) {
667  output.WriteRawTag(224, 6);
668  output.WriteBool(UseAllPossibleDisjunctions);
669  }
670  if (MaxEdgeFinderSize != 0) {
671  output.WriteRawTag(232, 6);
672  output.WriteInt32(MaxEdgeFinderSize);
673  }
674  if (DiffnUseCumulative != false) {
675  output.WriteRawTag(240, 6);
676  output.WriteBool(DiffnUseCumulative);
677  }
678  if (UseElementRmq != false) {
679  output.WriteRawTag(248, 6);
680  output.WriteBool(UseElementRmq);
681  }
682  if (UseCumulativeTimeTableSync != false) {
683  output.WriteRawTag(128, 7);
684  output.WriteBool(UseCumulativeTimeTableSync);
685  }
686  if (SkipLocallyOptimalPaths != false) {
687  output.WriteRawTag(136, 7);
688  output.WriteBool(SkipLocallyOptimalPaths);
689  }
690  if (CheckSolutionPeriod != 0) {
691  output.WriteRawTag(144, 7);
692  output.WriteInt32(CheckSolutionPeriod);
693  }
694  if (_unknownFields != null) {
695  _unknownFields.WriteTo(output);
696  }
697  }
698 
699  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
700  public int CalculateSize() {
701  int size = 0;
702  if (CompressTrail != global::Google.OrTools.ConstraintSolver.ConstraintSolverParameters.Types.TrailCompression.NoCompression) {
703  size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CompressTrail);
704  }
705  if (TrailBlockSize != 0) {
706  size += 1 + pb::CodedOutputStream.ComputeInt32Size(TrailBlockSize);
707  }
708  if (ArraySplitSize != 0) {
709  size += 1 + pb::CodedOutputStream.ComputeInt32Size(ArraySplitSize);
710  }
711  if (StoreNames != false) {
712  size += 1 + 1;
713  }
714  if (NameCastVariables != false) {
715  size += 1 + 1;
716  }
717  if (NameAllVariables != false) {
718  size += 1 + 1;
719  }
720  if (ProfilePropagation != false) {
721  size += 1 + 1;
722  }
723  if (ProfileFile.Length != 0) {
724  size += 1 + pb::CodedOutputStream.ComputeStringSize(ProfileFile);
725  }
726  if (ProfileLocalSearch != false) {
727  size += 2 + 1;
728  }
729  if (PrintLocalSearchProfile != false) {
730  size += 2 + 1;
731  }
732  if (TracePropagation != false) {
733  size += 1 + 1;
734  }
735  if (TraceSearch != false) {
736  size += 1 + 1;
737  }
738  if (PrintModel != false) {
739  size += 1 + 1;
740  }
741  if (PrintModelStats != false) {
742  size += 1 + 1;
743  }
744  if (PrintAddedConstraints != false) {
745  size += 1 + 1;
746  }
747  if (DisableSolve != false) {
748  size += 1 + 1;
749  }
750  if (UseSmallTable != false) {
751  size += 2 + 1;
752  }
753  if (UseCumulativeEdgeFinder != false) {
754  size += 2 + 1;
755  }
756  if (UseCumulativeTimeTable != false) {
757  size += 2 + 1;
758  }
759  if (UseCumulativeTimeTableSync != false) {
760  size += 2 + 1;
761  }
762  if (UseSequenceHighDemandTasks != false) {
763  size += 2 + 1;
764  }
765  if (UseAllPossibleDisjunctions != false) {
766  size += 2 + 1;
767  }
768  if (MaxEdgeFinderSize != 0) {
769  size += 2 + pb::CodedOutputStream.ComputeInt32Size(MaxEdgeFinderSize);
770  }
771  if (DiffnUseCumulative != false) {
772  size += 2 + 1;
773  }
774  if (UseElementRmq != false) {
775  size += 2 + 1;
776  }
777  if (SkipLocallyOptimalPaths != false) {
778  size += 2 + 1;
779  }
780  if (CheckSolutionPeriod != 0) {
781  size += 2 + pb::CodedOutputStream.ComputeInt32Size(CheckSolutionPeriod);
782  }
783  if (_unknownFields != null) {
784  size += _unknownFields.CalculateSize();
785  }
786  return size;
787  }
788 
789  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
791  if (other == null) {
792  return;
793  }
794  if (other.CompressTrail != global::Google.OrTools.ConstraintSolver.ConstraintSolverParameters.Types.TrailCompression.NoCompression) {
796  }
797  if (other.TrailBlockSize != 0) {
799  }
800  if (other.ArraySplitSize != 0) {
802  }
803  if (other.StoreNames != false) {
804  StoreNames = other.StoreNames;
805  }
806  if (other.NameCastVariables != false) {
808  }
809  if (other.NameAllVariables != false) {
811  }
812  if (other.ProfilePropagation != false) {
814  }
815  if (other.ProfileFile.Length != 0) {
816  ProfileFile = other.ProfileFile;
817  }
818  if (other.ProfileLocalSearch != false) {
820  }
821  if (other.PrintLocalSearchProfile != false) {
823  }
824  if (other.TracePropagation != false) {
826  }
827  if (other.TraceSearch != false) {
828  TraceSearch = other.TraceSearch;
829  }
830  if (other.PrintModel != false) {
831  PrintModel = other.PrintModel;
832  }
833  if (other.PrintModelStats != false) {
835  }
836  if (other.PrintAddedConstraints != false) {
838  }
839  if (other.DisableSolve != false) {
840  DisableSolve = other.DisableSolve;
841  }
842  if (other.UseSmallTable != false) {
844  }
845  if (other.UseCumulativeEdgeFinder != false) {
847  }
848  if (other.UseCumulativeTimeTable != false) {
850  }
851  if (other.UseCumulativeTimeTableSync != false) {
853  }
854  if (other.UseSequenceHighDemandTasks != false) {
856  }
857  if (other.UseAllPossibleDisjunctions != false) {
859  }
860  if (other.MaxEdgeFinderSize != 0) {
862  }
863  if (other.DiffnUseCumulative != false) {
865  }
866  if (other.UseElementRmq != false) {
868  }
869  if (other.SkipLocallyOptimalPaths != false) {
871  }
872  if (other.CheckSolutionPeriod != 0) {
874  }
875  _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
876  }
877 
878  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
879  public void MergeFrom(pb::CodedInputStream input) {
880  uint tag;
881  while ((tag = input.ReadTag()) != 0) {
882  switch(tag) {
883  default:
884  _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
885  break;
886  case 8: {
887  CompressTrail = (global::Google.OrTools.ConstraintSolver.ConstraintSolverParameters.Types.TrailCompression) input.ReadEnum();
888  break;
889  }
890  case 16: {
891  TrailBlockSize = input.ReadInt32();
892  break;
893  }
894  case 24: {
895  ArraySplitSize = input.ReadInt32();
896  break;
897  }
898  case 32: {
899  StoreNames = input.ReadBool();
900  break;
901  }
902  case 40: {
903  NameCastVariables = input.ReadBool();
904  break;
905  }
906  case 48: {
907  NameAllVariables = input.ReadBool();
908  break;
909  }
910  case 56: {
911  ProfilePropagation = input.ReadBool();
912  break;
913  }
914  case 66: {
915  ProfileFile = input.ReadString();
916  break;
917  }
918  case 72: {
919  TracePropagation = input.ReadBool();
920  break;
921  }
922  case 80: {
923  TraceSearch = input.ReadBool();
924  break;
925  }
926  case 88: {
927  PrintModel = input.ReadBool();
928  break;
929  }
930  case 96: {
931  PrintModelStats = input.ReadBool();
932  break;
933  }
934  case 104: {
935  PrintAddedConstraints = input.ReadBool();
936  break;
937  }
938  case 120: {
939  DisableSolve = input.ReadBool();
940  break;
941  }
942  case 128: {
943  ProfileLocalSearch = input.ReadBool();
944  break;
945  }
946  case 136: {
947  PrintLocalSearchProfile = input.ReadBool();
948  break;
949  }
950  case 808: {
951  UseSmallTable = input.ReadBool();
952  break;
953  }
954  case 840: {
955  UseCumulativeEdgeFinder = input.ReadBool();
956  break;
957  }
958  case 848: {
959  UseCumulativeTimeTable = input.ReadBool();
960  break;
961  }
962  case 856: {
963  UseSequenceHighDemandTasks = input.ReadBool();
964  break;
965  }
966  case 864: {
967  UseAllPossibleDisjunctions = input.ReadBool();
968  break;
969  }
970  case 872: {
971  MaxEdgeFinderSize = input.ReadInt32();
972  break;
973  }
974  case 880: {
975  DiffnUseCumulative = input.ReadBool();
976  break;
977  }
978  case 888: {
979  UseElementRmq = input.ReadBool();
980  break;
981  }
982  case 896: {
983  UseCumulativeTimeTableSync = input.ReadBool();
984  break;
985  }
986  case 904: {
987  SkipLocallyOptimalPaths = input.ReadBool();
988  break;
989  }
990  case 912: {
991  CheckSolutionPeriod = input.ReadInt32();
992  break;
993  }
994  }
995  }
996  }
997 
998  #region Nested types
999  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1001  public static partial class Types {
1006  public enum TrailCompression {
1007  [pbr::OriginalName("NO_COMPRESSION")] NoCompression = 0,
1008  [pbr::OriginalName("COMPRESS_WITH_ZLIB")] CompressWithZlib = 1,
1009  }
1010 
1011  }
1012  #endregion
1013 
1014  }
1015 
1016  #endregion
1017 
1018 }
1019 
1020 #endregion Designer generated code
bool ProfilePropagation
Activate propagation profiling.
ConstraintSolverParameters()
ConstraintSolverParameters(ConstraintSolverParameters other)
const int CheckSolutionPeriodFieldNumber
Field number for the "check_solution_period" field.
int MaxEdgeFinderSize
static pb::MessageParser< ConstraintSolverParameters > Parser
const int UseAllPossibleDisjunctionsFieldNumber
Field number for the "use_all_possible_disjunctions" field.
const int UseCumulativeTimeTableFieldNumber
Field number for the "use_cumulative_time_table" field.
override int GetHashCode()
const int ArraySplitSizeFieldNumber
Field number for the "array_split_size" field.
const int UseCumulativeEdgeFinderFieldNumber
Field number for the "use_cumulative_edge_finder" field.
void MergeFrom(pb::CodedInputStream input)
string ProfileFile
Export propagation profiling data to file.
int TrailBlockSize
This parameter indicates the default size of a block of the trail.
const int ProfileFileFieldNumber
Field number for the "profile_file" field.
Solver parameters.
bool UseSmallTable
bool UseCumulativeEdgeFinder
Definition: Assignment.cs:11
static pbr::FileDescriptor Descriptor
File descriptor for ortools/constraint_solver/solver_parameters.proto
bool NameAllVariables
Should anonymous variables be given a name.
bool Equals(ConstraintSolverParameters other)
const int PrintAddedConstraintsFieldNumber
Field number for the "print_added_constraints" field.
ConstraintSolverParameters Clone()
Holder for reflection information generated from ortools/constraint_solver/solver_parameters....
bool ProfileLocalSearch
Activate local search profiling.
bool PrintLocalSearchProfile
Print local search profiling data after solving.
const int CompressTrailFieldNumber
Field number for the "compress_trail" field.
const int UseCumulativeTimeTableSyncFieldNumber
Field number for the "use_cumulative_time_table_sync" field.
const int StoreNamesFieldNumber
Field number for the "store_names" field.
const int PrintModelFieldNumber
Field number for the "print_model" field.
global::Google.Protobuf pb
override string ToString()
bool TracePropagation
Activate propagate tracing.
bool TraceSearch
Trace search.
const int PrintLocalSearchProfileFieldNumber
Field number for the "print_local_search_profile" field.
global::Google.Protobuf.Reflection pbr
const int UseSequenceHighDemandTasksFieldNumber
Field number for the "use_sequence_high_demand_tasks" field.
const int TracePropagationFieldNumber
Field number for the "trace_propagation" field.
bool PrintModelStats
Print model statistics before solving.
global::Google.OrTools.ConstraintSolver.ConstraintSolverParameters.Types.TrailCompression CompressTrail
This parameter indicates if the solver should compress the trail during the search.
const int TrailBlockSizeFieldNumber
Field number for the "trail_block_size" field.
const int UseElementRmqFieldNumber
Field number for the "use_element_rmq" field.
static pbr::MessageDescriptor Descriptor
bool UseSequenceHighDemandTasks
const int MaxEdgeFinderSizeFieldNumber
Field number for the "max_edge_finder_size" field.
bool PrintAddedConstraints
Print added constraints.
bool DiffnUseCumulative
void MergeFrom(ConstraintSolverParameters other)
bool UseCumulativeTimeTable
TrailCompression
int ArraySplitSize
When a sum/min/max operation is applied on a large array, this array is recursively split into blocks...
bool PrintModel
Print the model before solving.
const int DiffnUseCumulativeFieldNumber
Field number for the "diffn_use_cumulative" field.
global::System.Collections.Generic scg
Container for nested types declared in the ConstraintSolverParameters message type.
const int ProfilePropagationFieldNumber
Field number for the "profile_propagation" field.
bool SkipLocallyOptimalPaths
bool StoreNames
This parameters indicates if the solver should store the names of the objets it manages.
override bool Equals(object other)
const int PrintModelStatsFieldNumber
Field number for the "print_model_stats" field.
bool DisableSolve
const int SkipLocallyOptimalPathsFieldNumber
Field number for the "skip_locally_optimal_paths" field.
int CalculateSize()
const int UseSmallTableFieldNumber
Field number for the "use_small_table" field.
const int TraceSearchFieldNumber
Field number for the "trace_search" field.
const int DisableSolveFieldNumber
Field number for the "disable_solve" field.
int CheckSolutionPeriod
bool UseAllPossibleDisjunctions
const int ProfileLocalSearchFieldNumber
Field number for the "profile_local_search" field.
bool UseCumulativeTimeTableSync
void WriteTo(pb::CodedOutputStream output)
const int NameCastVariablesFieldNumber
Field number for the "name_cast_variables" field.
const int NameAllVariablesFieldNumber
Field number for the "name_all_variables" field.
global::Google.Protobuf.Collections pbc
bool UseElementRmq
bool NameCastVariables
Create names for cast variables.