Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
RoutingHeuristicParameters.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/routing_heuristic_parameters.proto
4// </auto-generated>
5#pragma warning disable 1591, 0612, 3021, 8981
6#region Designer generated code
7
8using pb = global::Google.Protobuf;
9using pbc = global::Google.Protobuf.Collections;
10using pbr = global::Google.Protobuf.Reflection;
11using scg = global::System.Collections.Generic;
13
15 public static partial class RoutingHeuristicParametersReflection {
16
17 #region Descriptor
19 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 "CjxvcnRvb2xzL2NvbnN0cmFpbnRfc29sdmVyL3JvdXRpbmdfaGV1cmlzdGlj",
28 "X3BhcmFtZXRlcnMucHJvdG8SE29wZXJhdGlvbnNfcmVzZWFyY2gi5gYKIExv",
29 "Y2FsQ2hlYXBlc3RJbnNlcnRpb25QYXJhbWV0ZXJzEm0KGHBpY2t1cF9kZWxp",
30 "dmVyeV9zdHJhdGVneRgBIAEoDjJLLm9wZXJhdGlvbnNfcmVzZWFyY2guTG9j",
31 "YWxDaGVhcGVzdEluc2VydGlvblBhcmFtZXRlcnMuUGFpckluc2VydGlvblN0",
32 "cmF0ZWd5EnQKHGluc2VydGlvbl9zb3J0aW5nX3Byb3BlcnRpZXMYAiADKA4y",
33 "Ti5vcGVyYXRpb25zX3Jlc2VhcmNoLkxvY2FsQ2hlYXBlc3RJbnNlcnRpb25Q",
34 "YXJhbWV0ZXJzLkluc2VydGlvblNvcnRpbmdQcm9wZXJ0eSKSAQoVUGFpcklu",
35 "c2VydGlvblN0cmF0ZWd5Eg0KCUFVVE9NQVRJQxAAEiIKHkJFU1RfUElDS1VQ",
36 "X1RIRU5fQkVTVF9ERUxJVkVSWRABEh0KGUJFU1RfUElDS1VQX0RFTElWRVJZ",
37 "X1BBSVIQAhInCiNCRVNUX1BJQ0tVUF9ERUxJVkVSWV9QQUlSX01VTFRJVE9V",
38 "UhADIscDChhJbnNlcnRpb25Tb3J0aW5nUHJvcGVydHkSIAocU09SVElOR19Q",
39 "Uk9QRVJUWV9VTlNQRUNJRklFRBAAEiUKIVNPUlRJTkdfUFJPUEVSVFlfQUxM",
40 "T1dFRF9WRUhJQ0xFUxABEhwKGFNPUlRJTkdfUFJPUEVSVFlfUEVOQUxUWRAC",
41 "EjgKNFNPUlRJTkdfUFJPUEVSVFlfUEVOQUxUWV9PVkVSX0FMTE9XRURfVkVI",
42 "SUNMRVNfUkFUSU8QAxI/CjtTT1JUSU5HX1BST1BFUlRZX0hJR0hFU1RfQVZH",
43 "X0FSQ19DT1NUX1RPX1ZFSElDTEVfU1RBUlRfRU5EUxAEEj4KOlNPUlRJTkdf",
44 "UFJPUEVSVFlfTE9XRVNUX0FWR19BUkNfQ09TVF9UT19WRUhJQ0xFX1NUQVJU",
45 "X0VORFMQBRI+CjpTT1JUSU5HX1BST1BFUlRZX0xPV0VTVF9NSU5fQVJDX0NP",
46 "U1RfVE9fVkVISUNMRV9TVEFSVF9FTkRTEAYSLAooU09SVElOR19QUk9QRVJU",
47 "WV9ISUdIRVNUX0RJTUVOU0lPTl9VU0FHRRAHEhsKF1NPUlRJTkdfUFJPUEVS",
48 "VFlfUkFORE9NEAgifwoRU2F2aW5nc1BhcmFtZXRlcnMSFwoPbmVpZ2hib3Jz",
49 "X3JhdGlvGAEgASgBEh4KFm1heF9tZW1vcnlfdXNhZ2VfYnl0ZXMYAiABKAES",
50 "GAoQYWRkX3JldmVyc2VfYXJjcxgDIAEoCBIXCg9hcmNfY29lZmZpY2llbnQY",
51 "BCABKAEiwgEKIUdsb2JhbENoZWFwZXN0SW5zZXJ0aW9uUGFyYW1ldGVycxIc",
52 "ChRmYXJ0aGVzdF9zZWVkc19yYXRpbxgBIAEoARIXCg9uZWlnaGJvcnNfcmF0",
53 "aW8YAiABKAESFQoNbWluX25laWdoYm9ycxgDIAEoBRIuCiZ1c2VfbmVpZ2hi",
54 "b3JzX3JhdGlvX2Zvcl9pbml0aWFsaXphdGlvbhgGIAEoCBIfChdhZGRfdW5w",
55 "ZXJmb3JtZWRfZW50cmllcxgHIAEoCEJJCiNjb20uZ29vZ2xlLm9ydG9vbHMu",
56 "Y29uc3RyYWludHNvbHZlclABqgIfR29vZ2xlLk9yVG9vbHMuQ29uc3RyYWlu",
57 "dFNvbHZlcmIGcHJvdG8z"));
58 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
59 new pbr::FileDescriptor[] { },
60 new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
61 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.ConstraintSolver.LocalCheapestInsertionParameters), global::Google.OrTools.ConstraintSolver.LocalCheapestInsertionParameters.Parser, new[]{ "PickupDeliveryStrategy", "InsertionSortingProperties" }, null, new[]{ typeof(global::Google.OrTools.ConstraintSolver.LocalCheapestInsertionParameters.Types.PairInsertionStrategy), typeof(global::Google.OrTools.ConstraintSolver.LocalCheapestInsertionParameters.Types.InsertionSortingProperty) }, null, null),
62 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.ConstraintSolver.SavingsParameters), global::Google.OrTools.ConstraintSolver.SavingsParameters.Parser, new[]{ "NeighborsRatio", "MaxMemoryUsageBytes", "AddReverseArcs", "ArcCoefficient" }, null, null, null, null),
63 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.ConstraintSolver.GlobalCheapestInsertionParameters), global::Google.OrTools.ConstraintSolver.GlobalCheapestInsertionParameters.Parser, new[]{ "FarthestSeedsRatio", "NeighborsRatio", "MinNeighbors", "UseNeighborsRatioForInitialization", "AddUnperformedEntries" }, null, null, null, null)
64 }));
65 }
66 #endregion
67
68 }
69 #region Messages
73 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
74 public sealed partial class LocalCheapestInsertionParameters : pb::IMessage<LocalCheapestInsertionParameters>
75 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
76 , pb::IBufferMessage
77 #endif
78 {
79 private static readonly pb::MessageParser<LocalCheapestInsertionParameters> _parser = new pb::MessageParser<LocalCheapestInsertionParameters>(() => new LocalCheapestInsertionParameters());
80 private pb::UnknownFieldSet _unknownFields;
81 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
82 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
83 public static pb::MessageParser<LocalCheapestInsertionParameters> Parser { get { return _parser; } }
84
85 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
86 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
87 public static pbr::MessageDescriptor Descriptor {
88 get { return global::Google.OrTools.ConstraintSolver.RoutingHeuristicParametersReflection.Descriptor.MessageTypes[0]; }
89 }
90
91 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
92 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
93 pbr::MessageDescriptor pb::IMessage.Descriptor {
94 get { return Descriptor; }
95 }
96
97 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
98 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
100 OnConstruction();
101 }
102
103 partial void OnConstruction();
104
105 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
106 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
108 pickupDeliveryStrategy_ = other.pickupDeliveryStrategy_;
109 insertionSortingProperties_ = other.insertionSortingProperties_.Clone();
110 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
111 }
112
113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
114 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
118
121 private global::Google.OrTools.ConstraintSolver.LocalCheapestInsertionParameters.Types.PairInsertionStrategy pickupDeliveryStrategy_ = global::Google.OrTools.ConstraintSolver.LocalCheapestInsertionParameters.Types.PairInsertionStrategy.Automatic;
126 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
127 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
129 get { return pickupDeliveryStrategy_; }
130 set {
131 pickupDeliveryStrategy_ = value;
132 }
133 }
134
137 private static readonly pb::FieldCodec<global::Google.OrTools.ConstraintSolver.LocalCheapestInsertionParameters.Types.InsertionSortingProperty> _repeated_insertionSortingProperties_codec
138 = pb::FieldCodec.ForEnum(18, x => (int) x, x => (global::Google.OrTools.ConstraintSolver.LocalCheapestInsertionParameters.Types.InsertionSortingProperty) x);
139 private readonly pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalCheapestInsertionParameters.Types.InsertionSortingProperty> insertionSortingProperties_ = new pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalCheapestInsertionParameters.Types.InsertionSortingProperty>();
148 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
149 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
150 public pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalCheapestInsertionParameters.Types.InsertionSortingProperty> InsertionSortingProperties {
151 get { return insertionSortingProperties_; }
152 }
153
154 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
155 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
156 public override bool Equals(object other) {
158 }
159
160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
161 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
163 if (ReferenceEquals(other, null)) {
164 return false;
165 }
166 if (ReferenceEquals(other, this)) {
167 return true;
168 }
169 if (PickupDeliveryStrategy != other.PickupDeliveryStrategy) return false;
170 if(!insertionSortingProperties_.Equals(other.insertionSortingProperties_)) return false;
171 return Equals(_unknownFields, other._unknownFields);
172 }
173
174 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
175 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
176 public override int GetHashCode() {
177 int hash = 1;
179 hash ^= insertionSortingProperties_.GetHashCode();
180 if (_unknownFields != null) {
181 hash ^= _unknownFields.GetHashCode();
182 }
183 return hash;
184 }
185
186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
187 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
188 public override string ToString() {
189 return pb::JsonFormatter.ToDiagnosticString(this);
190 }
191
192 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
193 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
194 public void WriteTo(pb::CodedOutputStream output) {
195 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
196 output.WriteRawMessage(this);
197 #else
199 output.WriteRawTag(8);
200 output.WriteEnum((int) PickupDeliveryStrategy);
201 }
202 insertionSortingProperties_.WriteTo(output, _repeated_insertionSortingProperties_codec);
203 if (_unknownFields != null) {
204 _unknownFields.WriteTo(output);
205 }
206 #endif
207 }
208
209 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
210 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
211 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
212 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
213 if (PickupDeliveryStrategy != global::Google.OrTools.ConstraintSolver.LocalCheapestInsertionParameters.Types.PairInsertionStrategy.Automatic) {
214 output.WriteRawTag(8);
215 output.WriteEnum((int) PickupDeliveryStrategy);
216 }
217 insertionSortingProperties_.WriteTo(ref output, _repeated_insertionSortingProperties_codec);
218 if (_unknownFields != null) {
219 _unknownFields.WriteTo(ref output);
220 }
221 }
222 #endif
223
224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
225 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
226 public int CalculateSize() {
227 int size = 0;
229 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PickupDeliveryStrategy);
230 }
231 size += insertionSortingProperties_.CalculateSize(_repeated_insertionSortingProperties_codec);
232 if (_unknownFields != null) {
233 size += _unknownFields.CalculateSize();
234 }
235 return size;
236 }
237
238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
239 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
241 if (other == null) {
242 return;
243 }
244 if (other.PickupDeliveryStrategy != global::Google.OrTools.ConstraintSolver.LocalCheapestInsertionParameters.Types.PairInsertionStrategy.Automatic) {
246 }
247 insertionSortingProperties_.Add(other.insertionSortingProperties_);
248 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
249 }
250
251 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
252 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
253 public void MergeFrom(pb::CodedInputStream input) {
254 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
255 input.ReadRawMessage(this);
256 #else
257 uint tag;
258 while ((tag = input.ReadTag()) != 0) {
259 if ((tag & 7) == 4) {
260 // Abort on any end group tag.
261 return;
262 }
263 switch(tag) {
264 default:
265 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
266 break;
267 case 8: {
268 PickupDeliveryStrategy = (global::Google.OrTools.ConstraintSolver.LocalCheapestInsertionParameters.Types.PairInsertionStrategy) input.ReadEnum();
269 break;
270 }
271 case 18:
272 case 16: {
273 insertionSortingProperties_.AddEntriesFrom(input, _repeated_insertionSortingProperties_codec);
274 break;
275 }
276 }
277 }
278 #endif
279 }
280
281 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
283 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
284 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
285 uint tag;
286 while ((tag = input.ReadTag()) != 0) {
287 if ((tag & 7) == 4) {
288 // Abort on any end group tag.
289 return;
290 }
291 switch(tag) {
292 default:
293 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
294 break;
295 case 8: {
296 PickupDeliveryStrategy = (global::Google.OrTools.ConstraintSolver.LocalCheapestInsertionParameters.Types.PairInsertionStrategy) input.ReadEnum();
297 break;
298 }
299 case 18:
300 case 16: {
301 insertionSortingProperties_.AddEntriesFrom(ref input, _repeated_insertionSortingProperties_codec);
302 break;
303 }
304 }
305 }
306 }
307 #endif
308
309 #region Nested types
311 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
312 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
313 public static partial class Types {
323 [pbr::OriginalName("AUTOMATIC")] Automatic = 0,
327 [pbr::OriginalName("BEST_PICKUP_THEN_BEST_DELIVERY")] BestPickupThenBestDelivery = 1,
331 [pbr::OriginalName("BEST_PICKUP_DELIVERY_PAIR")] BestPickupDeliveryPair = 2,
339 [pbr::OriginalName("BEST_PICKUP_DELIVERY_PAIR_MULTITOUR")] BestPickupDeliveryPairMultitour = 3,
340 }
341
350 [pbr::OriginalName("SORTING_PROPERTY_UNSPECIFIED")] SortingPropertyUnspecified = 0,
354 [pbr::OriginalName("SORTING_PROPERTY_ALLOWED_VEHICLES")] SortingPropertyAllowedVehicles = 1,
358 [pbr::OriginalName("SORTING_PROPERTY_PENALTY")] SortingPropertyPenalty = 2,
363 [pbr::OriginalName("SORTING_PROPERTY_PENALTY_OVER_ALLOWED_VEHICLES_RATIO")] SortingPropertyPenaltyOverAllowedVehiclesRatio = 3,
367 [pbr::OriginalName("SORTING_PROPERTY_HIGHEST_AVG_ARC_COST_TO_VEHICLE_START_ENDS")] SortingPropertyHighestAvgArcCostToVehicleStartEnds = 4,
371 [pbr::OriginalName("SORTING_PROPERTY_LOWEST_AVG_ARC_COST_TO_VEHICLE_START_ENDS")] SortingPropertyLowestAvgArcCostToVehicleStartEnds = 5,
375 [pbr::OriginalName("SORTING_PROPERTY_LOWEST_MIN_ARC_COST_TO_VEHICLE_START_ENDS")] SortingPropertyLowestMinArcCostToVehicleStartEnds = 6,
381 [pbr::OriginalName("SORTING_PROPERTY_HIGHEST_DIMENSION_USAGE")] SortingPropertyHighestDimensionUsage = 7,
386 [pbr::OriginalName("SORTING_PROPERTY_RANDOM")] SortingPropertyRandom = 8,
387 }
388
389 }
390 #endregion
391
392 }
393
397 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
398 public sealed partial class SavingsParameters : pb::IMessage<SavingsParameters>
399 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
400 , pb::IBufferMessage
401 #endif
402 {
403 private static readonly pb::MessageParser<SavingsParameters> _parser = new pb::MessageParser<SavingsParameters>(() => new SavingsParameters());
404 private pb::UnknownFieldSet _unknownFields;
405 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
406 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
407 public static pb::MessageParser<SavingsParameters> Parser { get { return _parser; } }
408
409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
410 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
411 public static pbr::MessageDescriptor Descriptor {
412 get { return global::Google.OrTools.ConstraintSolver.RoutingHeuristicParametersReflection.Descriptor.MessageTypes[1]; }
413 }
414
415 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
416 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
417 pbr::MessageDescriptor pb::IMessage.Descriptor {
418 get { return Descriptor; }
419 }
420
421 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
422 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
424 OnConstruction();
425 }
426
427 partial void OnConstruction();
428
429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
430 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
431 public SavingsParameters(SavingsParameters other) : this() {
432 neighborsRatio_ = other.neighborsRatio_;
433 maxMemoryUsageBytes_ = other.maxMemoryUsageBytes_;
434 addReverseArcs_ = other.addReverseArcs_;
435 arcCoefficient_ = other.arcCoefficient_;
436 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
437 }
438
439 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
440 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
442 return new SavingsParameters(this);
443 }
444
446 public const int NeighborsRatioFieldNumber = 1;
447 private double neighborsRatio_;
452 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
453 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
454 public double NeighborsRatio {
455 get { return neighborsRatio_; }
456 set {
457 neighborsRatio_ = value;
458 }
459 }
460
462 public const int MaxMemoryUsageBytesFieldNumber = 2;
463 private double maxMemoryUsageBytes_;
472 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
473 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
474 public double MaxMemoryUsageBytes {
475 get { return maxMemoryUsageBytes_; }
476 set {
477 maxMemoryUsageBytes_ = value;
478 }
479 }
480
482 public const int AddReverseArcsFieldNumber = 3;
483 private bool addReverseArcs_;
488 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
489 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
490 public bool AddReverseArcs {
491 get { return addReverseArcs_; }
492 set {
493 addReverseArcs_ = value;
494 }
495 }
496
498 public const int ArcCoefficientFieldNumber = 4;
499 private double arcCoefficient_;
507 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
508 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
509 public double ArcCoefficient {
510 get { return arcCoefficient_; }
511 set {
512 arcCoefficient_ = value;
513 }
514 }
515
516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
517 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
518 public override bool Equals(object other) {
519 return Equals(other as SavingsParameters);
520 }
521
522 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
523 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
524 public bool Equals(SavingsParameters other) {
525 if (ReferenceEquals(other, null)) {
526 return false;
527 }
528 if (ReferenceEquals(other, this)) {
529 return true;
530 }
531 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(NeighborsRatio, other.NeighborsRatio)) return false;
532 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MaxMemoryUsageBytes, other.MaxMemoryUsageBytes)) return false;
533 if (AddReverseArcs != other.AddReverseArcs) return false;
534 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ArcCoefficient, other.ArcCoefficient)) return false;
535 return Equals(_unknownFields, other._unknownFields);
536 }
537
538 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
539 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
540 public override int GetHashCode() {
541 int hash = 1;
542 if (NeighborsRatio != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NeighborsRatio);
543 if (MaxMemoryUsageBytes != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MaxMemoryUsageBytes);
544 if (AddReverseArcs != false) hash ^= AddReverseArcs.GetHashCode();
545 if (ArcCoefficient != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ArcCoefficient);
546 if (_unknownFields != null) {
547 hash ^= _unknownFields.GetHashCode();
548 }
549 return hash;
550 }
551
552 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
553 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
554 public override string ToString() {
555 return pb::JsonFormatter.ToDiagnosticString(this);
556 }
557
558 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
559 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
560 public void WriteTo(pb::CodedOutputStream output) {
561 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
562 output.WriteRawMessage(this);
563 #else
564 if (NeighborsRatio != 0D) {
565 output.WriteRawTag(9);
566 output.WriteDouble(NeighborsRatio);
567 }
568 if (MaxMemoryUsageBytes != 0D) {
569 output.WriteRawTag(17);
570 output.WriteDouble(MaxMemoryUsageBytes);
571 }
572 if (AddReverseArcs != false) {
573 output.WriteRawTag(24);
574 output.WriteBool(AddReverseArcs);
575 }
576 if (ArcCoefficient != 0D) {
577 output.WriteRawTag(33);
578 output.WriteDouble(ArcCoefficient);
579 }
580 if (_unknownFields != null) {
581 _unknownFields.WriteTo(output);
582 }
583 #endif
584 }
585
586 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
588 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
589 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
590 if (NeighborsRatio != 0D) {
591 output.WriteRawTag(9);
592 output.WriteDouble(NeighborsRatio);
593 }
594 if (MaxMemoryUsageBytes != 0D) {
595 output.WriteRawTag(17);
596 output.WriteDouble(MaxMemoryUsageBytes);
597 }
598 if (AddReverseArcs != false) {
599 output.WriteRawTag(24);
600 output.WriteBool(AddReverseArcs);
601 }
602 if (ArcCoefficient != 0D) {
603 output.WriteRawTag(33);
604 output.WriteDouble(ArcCoefficient);
605 }
606 if (_unknownFields != null) {
607 _unknownFields.WriteTo(ref output);
608 }
609 }
610 #endif
611
612 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
613 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
614 public int CalculateSize() {
615 int size = 0;
616 if (NeighborsRatio != 0D) {
617 size += 1 + 8;
618 }
619 if (MaxMemoryUsageBytes != 0D) {
620 size += 1 + 8;
621 }
622 if (AddReverseArcs != false) {
623 size += 1 + 1;
624 }
625 if (ArcCoefficient != 0D) {
626 size += 1 + 8;
627 }
628 if (_unknownFields != null) {
629 size += _unknownFields.CalculateSize();
630 }
631 return size;
632 }
633
634 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
635 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
636 public void MergeFrom(SavingsParameters other) {
637 if (other == null) {
638 return;
639 }
640 if (other.NeighborsRatio != 0D) {
642 }
643 if (other.MaxMemoryUsageBytes != 0D) {
645 }
646 if (other.AddReverseArcs != false) {
648 }
649 if (other.ArcCoefficient != 0D) {
651 }
652 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
653 }
654
655 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
656 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
657 public void MergeFrom(pb::CodedInputStream input) {
658 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
659 input.ReadRawMessage(this);
660 #else
661 uint tag;
662 while ((tag = input.ReadTag()) != 0) {
663 if ((tag & 7) == 4) {
664 // Abort on any end group tag.
665 return;
666 }
667 switch(tag) {
668 default:
669 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
670 break;
671 case 9: {
672 NeighborsRatio = input.ReadDouble();
673 break;
674 }
675 case 17: {
676 MaxMemoryUsageBytes = input.ReadDouble();
677 break;
678 }
679 case 24: {
680 AddReverseArcs = input.ReadBool();
681 break;
682 }
683 case 33: {
684 ArcCoefficient = input.ReadDouble();
685 break;
686 }
687 }
688 }
689 #endif
690 }
691
692 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
693 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
694 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
695 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
696 uint tag;
697 while ((tag = input.ReadTag()) != 0) {
698 if ((tag & 7) == 4) {
699 // Abort on any end group tag.
700 return;
701 }
702 switch(tag) {
703 default:
704 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
705 break;
706 case 9: {
707 NeighborsRatio = input.ReadDouble();
708 break;
709 }
710 case 17: {
711 MaxMemoryUsageBytes = input.ReadDouble();
712 break;
713 }
714 case 24: {
715 AddReverseArcs = input.ReadBool();
716 break;
717 }
718 case 33: {
719 ArcCoefficient = input.ReadDouble();
720 break;
721 }
722 }
723 }
724 }
725 #endif
726
727 }
728
732 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
733 public sealed partial class GlobalCheapestInsertionParameters : pb::IMessage<GlobalCheapestInsertionParameters>
734 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
735 , pb::IBufferMessage
736 #endif
737 {
738 private static readonly pb::MessageParser<GlobalCheapestInsertionParameters> _parser = new pb::MessageParser<GlobalCheapestInsertionParameters>(() => new GlobalCheapestInsertionParameters());
739 private pb::UnknownFieldSet _unknownFields;
740 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
741 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
742 public static pb::MessageParser<GlobalCheapestInsertionParameters> Parser { get { return _parser; } }
743
744 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
745 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
746 public static pbr::MessageDescriptor Descriptor {
747 get { return global::Google.OrTools.ConstraintSolver.RoutingHeuristicParametersReflection.Descriptor.MessageTypes[2]; }
748 }
749
750 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
751 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
752 pbr::MessageDescriptor pb::IMessage.Descriptor {
753 get { return Descriptor; }
754 }
755
756 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
757 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
759 OnConstruction();
760 }
761
762 partial void OnConstruction();
763
764 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
765 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
767 farthestSeedsRatio_ = other.farthestSeedsRatio_;
768 neighborsRatio_ = other.neighborsRatio_;
769 minNeighbors_ = other.minNeighbors_;
770 useNeighborsRatioForInitialization_ = other.useNeighborsRatioForInitialization_;
771 addUnperformedEntries_ = other.addUnperformedEntries_;
772 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
773 }
774
775 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
776 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
780
782 public const int FarthestSeedsRatioFieldNumber = 1;
783 private double farthestSeedsRatio_;
788 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
789 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
790 public double FarthestSeedsRatio {
791 get { return farthestSeedsRatio_; }
792 set {
793 farthestSeedsRatio_ = value;
794 }
795 }
796
798 public const int NeighborsRatioFieldNumber = 2;
799 private double neighborsRatio_;
814 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
815 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
816 public double NeighborsRatio {
817 get { return neighborsRatio_; }
818 set {
819 neighborsRatio_ = value;
820 }
821 }
822
824 public const int MinNeighborsFieldNumber = 3;
825 private int minNeighbors_;
826 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
827 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
828 public int MinNeighbors {
829 get { return minNeighbors_; }
830 set {
831 minNeighbors_ = value;
832 }
833 }
834
837 private bool useNeighborsRatioForInitialization_;
845 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
846 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
848 get { return useNeighborsRatioForInitialization_; }
849 set {
850 useNeighborsRatioForInitialization_ = value;
851 }
852 }
853
856 private bool addUnperformedEntries_;
864 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
865 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
867 get { return addUnperformedEntries_; }
868 set {
869 addUnperformedEntries_ = value;
870 }
871 }
872
873 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
874 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
875 public override bool Equals(object other) {
877 }
878
879 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
880 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
882 if (ReferenceEquals(other, null)) {
883 return false;
884 }
885 if (ReferenceEquals(other, this)) {
886 return true;
887 }
888 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FarthestSeedsRatio, other.FarthestSeedsRatio)) return false;
889 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(NeighborsRatio, other.NeighborsRatio)) return false;
890 if (MinNeighbors != other.MinNeighbors) return false;
892 if (AddUnperformedEntries != other.AddUnperformedEntries) return false;
893 return Equals(_unknownFields, other._unknownFields);
894 }
895
896 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
897 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
898 public override int GetHashCode() {
899 int hash = 1;
900 if (FarthestSeedsRatio != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FarthestSeedsRatio);
901 if (NeighborsRatio != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NeighborsRatio);
902 if (MinNeighbors != 0) hash ^= MinNeighbors.GetHashCode();
904 if (AddUnperformedEntries != false) hash ^= AddUnperformedEntries.GetHashCode();
905 if (_unknownFields != null) {
906 hash ^= _unknownFields.GetHashCode();
907 }
908 return hash;
909 }
910
911 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
912 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
913 public override string ToString() {
914 return pb::JsonFormatter.ToDiagnosticString(this);
915 }
916
917 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
918 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
919 public void WriteTo(pb::CodedOutputStream output) {
920 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
921 output.WriteRawMessage(this);
922 #else
923 if (FarthestSeedsRatio != 0D) {
924 output.WriteRawTag(9);
925 output.WriteDouble(FarthestSeedsRatio);
926 }
927 if (NeighborsRatio != 0D) {
928 output.WriteRawTag(17);
929 output.WriteDouble(NeighborsRatio);
930 }
931 if (MinNeighbors != 0) {
932 output.WriteRawTag(24);
933 output.WriteInt32(MinNeighbors);
934 }
936 output.WriteRawTag(48);
937 output.WriteBool(UseNeighborsRatioForInitialization);
938 }
939 if (AddUnperformedEntries != false) {
940 output.WriteRawTag(56);
941 output.WriteBool(AddUnperformedEntries);
942 }
943 if (_unknownFields != null) {
944 _unknownFields.WriteTo(output);
945 }
946 #endif
947 }
948
949 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
950 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
951 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
952 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
953 if (FarthestSeedsRatio != 0D) {
954 output.WriteRawTag(9);
955 output.WriteDouble(FarthestSeedsRatio);
956 }
957 if (NeighborsRatio != 0D) {
958 output.WriteRawTag(17);
959 output.WriteDouble(NeighborsRatio);
960 }
961 if (MinNeighbors != 0) {
962 output.WriteRawTag(24);
963 output.WriteInt32(MinNeighbors);
964 }
965 if (UseNeighborsRatioForInitialization != false) {
966 output.WriteRawTag(48);
967 output.WriteBool(UseNeighborsRatioForInitialization);
968 }
969 if (AddUnperformedEntries != false) {
970 output.WriteRawTag(56);
971 output.WriteBool(AddUnperformedEntries);
972 }
973 if (_unknownFields != null) {
974 _unknownFields.WriteTo(ref output);
975 }
976 }
977 #endif
978
979 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
980 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
981 public int CalculateSize() {
982 int size = 0;
983 if (FarthestSeedsRatio != 0D) {
984 size += 1 + 8;
985 }
986 if (NeighborsRatio != 0D) {
987 size += 1 + 8;
988 }
989 if (MinNeighbors != 0) {
990 size += 1 + pb::CodedOutputStream.ComputeInt32Size(MinNeighbors);
991 }
993 size += 1 + 1;
994 }
995 if (AddUnperformedEntries != false) {
996 size += 1 + 1;
997 }
998 if (_unknownFields != null) {
999 size += _unknownFields.CalculateSize();
1000 }
1001 return size;
1002 }
1003
1004 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1005 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1007 if (other == null) {
1008 return;
1009 }
1010 if (other.FarthestSeedsRatio != 0D) {
1012 }
1013 if (other.NeighborsRatio != 0D) {
1015 }
1016 if (other.MinNeighbors != 0) {
1017 MinNeighbors = other.MinNeighbors;
1018 }
1019 if (other.UseNeighborsRatioForInitialization != false) {
1021 }
1022 if (other.AddUnperformedEntries != false) {
1024 }
1025 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1026 }
1027
1028 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1029 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1030 public void MergeFrom(pb::CodedInputStream input) {
1031 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1032 input.ReadRawMessage(this);
1033 #else
1034 uint tag;
1035 while ((tag = input.ReadTag()) != 0) {
1036 if ((tag & 7) == 4) {
1037 // Abort on any end group tag.
1038 return;
1039 }
1040 switch(tag) {
1041 default:
1042 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1043 break;
1044 case 9: {
1045 FarthestSeedsRatio = input.ReadDouble();
1046 break;
1047 }
1048 case 17: {
1049 NeighborsRatio = input.ReadDouble();
1050 break;
1051 }
1052 case 24: {
1053 MinNeighbors = input.ReadInt32();
1054 break;
1055 }
1056 case 48: {
1057 UseNeighborsRatioForInitialization = input.ReadBool();
1058 break;
1059 }
1060 case 56: {
1061 AddUnperformedEntries = input.ReadBool();
1062 break;
1063 }
1064 }
1065 }
1066 #endif
1067 }
1068
1069 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1070 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1071 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1072 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1073 uint tag;
1074 while ((tag = input.ReadTag()) != 0) {
1075 if ((tag & 7) == 4) {
1076 // Abort on any end group tag.
1077 return;
1078 }
1079 switch(tag) {
1080 default:
1081 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1082 break;
1083 case 9: {
1084 FarthestSeedsRatio = input.ReadDouble();
1085 break;
1086 }
1087 case 17: {
1088 NeighborsRatio = input.ReadDouble();
1089 break;
1090 }
1091 case 24: {
1092 MinNeighbors = input.ReadInt32();
1093 break;
1094 }
1095 case 48: {
1096 UseNeighborsRatioForInitialization = input.ReadBool();
1097 break;
1098 }
1099 case 56: {
1100 AddUnperformedEntries = input.ReadBool();
1101 break;
1102 }
1103 }
1104 }
1105 }
1106 #endif
1107
1108 }
1109
1110 #endregion
1111
1112}
1113
1114#endregion Designer generated code
global::Google.Protobuf pb
global::Google.Protobuf.Reflection pbr
global::System.Collections.Generic scg
global::Google.Protobuf.Collections pbc
Parameters used to configure global cheapest insertion heuristics.
double FarthestSeedsRatio
Ratio (between 0 and 1) of available vehicles in the model on which farthest nodes of the model are i...
bool UseNeighborsRatioForInitialization
Whether or not to only consider closest neighbors when initializing the assignment....
const int MinNeighborsFieldNumber
Field number for the "min_neighbors" field.
double NeighborsRatio
Ratio (in ]0, 1]) of closest non start/end nodes to consider as neighbors for each node when creating...
bool AddUnperformedEntries
Whether or not to consider entries making the nodes/pairs unperformed. More precisely,...
const int AddUnperformedEntriesFieldNumber
Field number for the "add_unperformed_entries" field.
static pb::MessageParser< GlobalCheapestInsertionParameters > Parser
const int FarthestSeedsRatioFieldNumber
Field number for the "farthest_seeds_ratio" field.
const int NeighborsRatioFieldNumber
Field number for the "neighbors_ratio" field.
const int UseNeighborsRatioForInitializationFieldNumber
Field number for the "use_neighbors_ratio_for_initialization" field.
Container for nested types declared in the LocalCheapestInsertionParameters message type.
InsertionSortingProperty
Properties used to select in which order nodes or node pairs are considered in insertion heuristics.
PairInsertionStrategy
In insertion-based heuristics, describes what positions must be considered when inserting a pickup/de...
Parameters used to configure local cheapest insertion heuristics.
pbc::RepeatedField< global::Google.OrTools.ConstraintSolver.LocalCheapestInsertionParameters.Types.InsertionSortingProperty > InsertionSortingProperties
The properties used to sort insertion entries in the local cheapest insertion heuristic,...
const int InsertionSortingPropertiesFieldNumber
Field number for the "insertion_sorting_properties" field.
static pb::MessageParser< LocalCheapestInsertionParameters > Parser
global::Google.OrTools.ConstraintSolver.LocalCheapestInsertionParameters.Types.PairInsertionStrategy PickupDeliveryStrategy
Choice of insertion strategy for pickup/delivery pairs, used in local cheapest insertion,...
const int PickupDeliveryStrategyFieldNumber
Field number for the "pickup_delivery_strategy" field.
Holder for reflection information generated from ortools/constraint_solver/routing_heuristic_paramete...
static pbr::FileDescriptor Descriptor
File descriptor for ortools/constraint_solver/routing_heuristic_parameters.proto.
Parameters used to configure savings heuristics.
static pb::MessageParser< SavingsParameters > Parser
const int NeighborsRatioFieldNumber
Field number for the "neighbors_ratio" field.
double NeighborsRatio
Ratio (in ]0, 1]) of neighbors to consider for each node when constructing the savings....
const int ArcCoefficientFieldNumber
Field number for the "arc_coefficient" field.
const int MaxMemoryUsageBytesFieldNumber
Field number for the "max_memory_usage_bytes" field.
bool AddReverseArcs
Add savings related to reverse arcs when finding the nearest neighbors of the nodes.
const int AddReverseArcsFieldNumber
Field number for the "add_reverse_arcs" field.
double MaxMemoryUsageBytes
The number of neighbors considered for each node in the Savings heuristic is chosen so that the space...
double ArcCoefficient
Coefficient of the cost of the arc for which the saving value is being computed: Saving(a-->b) = Cost...