DotNet Reference

.Net Reference

RoutingModel.cs
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 4.0.1
6 //
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10 
12 
13 using System;
14 using System.Collections.Generic;
15 
16 public partial class RoutingModel : global::System.IDisposable {
17  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
18  protected bool swigCMemOwn;
19 
20  internal RoutingModel(global::System.IntPtr cPtr, bool cMemoryOwn) {
21  swigCMemOwn = cMemoryOwn;
22  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
23  }
24 
25  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RoutingModel obj) {
26  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
27  }
28 
29  ~RoutingModel() {
30  Dispose(false);
31  }
32 
33  public void Dispose() {
34  Dispose(true);
35  global::System.GC.SuppressFinalize(this);
36  }
37 
38  protected virtual void Dispose(bool disposing) {
39  lock(this) {
40  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
41  if (swigCMemOwn) {
42  swigCMemOwn = false;
44  }
45  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
46  }
47  }
48  }
49 
50  // Keep reference to delegate to avoid GC to collect them early.
51  private List<LongToLong> unaryTransitCallbacks;
52  private LongToLong StoreLongToLong(LongToLong c) {
53  if (unaryTransitCallbacks == null)
54  unaryTransitCallbacks = new List<LongToLong>();
55  unaryTransitCallbacks.Add(c);
56  return c;
57  }
58 
59  private List<LongLongToLong> transitCallbacks;
60  private LongLongToLong StoreLongLongToLong(LongLongToLong c) {
61  if (transitCallbacks == null)
62  transitCallbacks = new List<LongLongToLong>();
63  transitCallbacks.Add(c);
64  return c;
65  }
66 
67  private List<VoidToVoid> solutionCallbacks;
68  private VoidToVoid StoreVoidToVoid(VoidToVoid c) {
69  if (solutionCallbacks == null)
70  solutionCallbacks = new List<VoidToVoid>();
71  solutionCallbacks.Add(c);
72  return c;
73  }
74 
75  public partial class VehicleTypeContainer : global::System.IDisposable {
76  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
77  protected bool swigCMemOwn;
78 
79  internal VehicleTypeContainer(global::System.IntPtr cPtr, bool cMemoryOwn) {
80  swigCMemOwn = cMemoryOwn;
81  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
82  }
83 
84  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VehicleTypeContainer obj) {
85  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
86  }
87 
89  Dispose(false);
90  }
91 
92  public void Dispose() {
93  Dispose(true);
94  global::System.GC.SuppressFinalize(this);
95  }
96 
97  protected virtual void Dispose(bool disposing) {
98  lock(this) {
99  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
100  if (swigCMemOwn) {
101  swigCMemOwn = false;
103  }
104  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
105  }
106  }
107  }
108 
109  public partial class VehicleClassEntry : global::System.IDisposable {
110  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
111  protected bool swigCMemOwn;
112 
113  internal VehicleClassEntry(global::System.IntPtr cPtr, bool cMemoryOwn) {
114  swigCMemOwn = cMemoryOwn;
115  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
116  }
117 
118  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VehicleClassEntry obj) {
119  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
120  }
121 
122  ~VehicleClassEntry() {
123  Dispose(false);
124  }
125 
126  public void Dispose() {
127  Dispose(true);
128  global::System.GC.SuppressFinalize(this);
129  }
130 
131  protected virtual void Dispose(bool disposing) {
132  lock(this) {
133  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
134  if (swigCMemOwn) {
135  swigCMemOwn = false;
137  }
138  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
139  }
140  }
141  }
142 
143  public int vehicle_class {
144  set {
146  }
147  get {
149  return ret;
150  }
151  }
152 
153  public long fixed_cost {
154  set {
156  }
157  get {
159  return ret;
160  }
161  }
162 
163  public VehicleClassEntry() : this(operations_research_constraint_solverPINVOKE.new_RoutingModel_VehicleTypeContainer_VehicleClassEntry(), true) {
164  }
165 
166  }
167 
168  public int NumTypes() {
170  return ret;
171  }
172 
173  public int Type(int vehicle) {
175  return ret;
176  }
177 
179  set {
181  }
182  get {
184  IntVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVector(cPtr, false);
185  return ret;
186  }
187  }
188 
189  public SWIGTYPE_p_std__vectorT_std__setT_operations_research__RoutingModel__VehicleTypeContainer__VehicleClassEntry_t_t sorted_vehicle_classes_per_type {
190  set {
191  operations_research_constraint_solverPINVOKE.RoutingModel_VehicleTypeContainer_sorted_vehicle_classes_per_type_set(swigCPtr, SWIGTYPE_p_std__vectorT_std__setT_operations_research__RoutingModel__VehicleTypeContainer__VehicleClassEntry_t_t.getCPtr(value));
192  }
193  get {
195  SWIGTYPE_p_std__vectorT_std__setT_operations_research__RoutingModel__VehicleTypeContainer__VehicleClassEntry_t_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_std__vectorT_std__setT_operations_research__RoutingModel__VehicleTypeContainer__VehicleClassEntry_t_t(cPtr, false);
196  return ret;
197  }
198  }
199 
200  public SWIGTYPE_p_std__vectorT_std__dequeT_int_t_t vehicles_per_vehicle_class {
201  set {
202  operations_research_constraint_solverPINVOKE.RoutingModel_VehicleTypeContainer_vehicles_per_vehicle_class_set(swigCPtr, SWIGTYPE_p_std__vectorT_std__dequeT_int_t_t.getCPtr(value));
203  }
204  get {
206  SWIGTYPE_p_std__vectorT_std__dequeT_int_t_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_std__vectorT_std__dequeT_int_t_t(cPtr, false);
207  return ret;
208  }
209  }
210 
211  public VehicleTypeContainer() : this(operations_research_constraint_solverPINVOKE.new_RoutingModel_VehicleTypeContainer(), true) {
212  }
213 
214  }
215 
216  public partial class ResourceGroup : global::System.IDisposable {
217  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
218  protected bool swigCMemOwn;
219 
220  internal ResourceGroup(global::System.IntPtr cPtr, bool cMemoryOwn) {
221  swigCMemOwn = cMemoryOwn;
222  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
223  }
224 
225  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ResourceGroup obj) {
226  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
227  }
228 
229  ~ResourceGroup() {
230  Dispose(false);
231  }
232 
233  public void Dispose() {
234  Dispose(true);
235  global::System.GC.SuppressFinalize(this);
236  }
237 
238  protected virtual void Dispose(bool disposing) {
239  lock(this) {
240  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
241  if (swigCMemOwn) {
242  swigCMemOwn = false;
244  }
245  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
246  }
247  }
248  }
249 
250  public partial class Attributes : global::System.IDisposable {
251  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
252  protected bool swigCMemOwn;
253 
254  internal Attributes(global::System.IntPtr cPtr, bool cMemoryOwn) {
255  swigCMemOwn = cMemoryOwn;
256  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
257  }
258 
259  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Attributes obj) {
260  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
261  }
262 
263  ~Attributes() {
264  Dispose(false);
265  }
266 
267  public void Dispose() {
268  Dispose(true);
269  global::System.GC.SuppressFinalize(this);
270  }
271 
272  protected virtual void Dispose(bool disposing) {
273  lock(this) {
274  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
275  if (swigCMemOwn) {
276  swigCMemOwn = false;
278  }
279  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
280  }
281  }
282  }
283 
284  public Attributes() : this(operations_research_constraint_solverPINVOKE.new_RoutingModel_ResourceGroup_Attributes__SWIG_0(), true) {
285  }
286 
287  public Attributes(Domain start_domain, Domain end_domain) : this(operations_research_constraint_solverPINVOKE.new_RoutingModel_ResourceGroup_Attributes__SWIG_1(Domain.getCPtr(start_domain), Domain.getCPtr(end_domain)), true) {
289  }
290 
291  public Domain StartDomain() {
293  return ret;
294  }
295 
296  public Domain EndDomain() {
298  return ret;
299  }
300 
301  }
302 
303  public partial class Resource : global::System.IDisposable {
304  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
305  protected bool swigCMemOwn;
306 
307  internal Resource(global::System.IntPtr cPtr, bool cMemoryOwn) {
308  swigCMemOwn = cMemoryOwn;
309  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
310  }
311 
312  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Resource obj) {
313  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
314  }
315 
316  ~Resource() {
317  Dispose(false);
318  }
319 
320  public void Dispose() {
321  Dispose(true);
322  global::System.GC.SuppressFinalize(this);
323  }
324 
325  protected virtual void Dispose(bool disposing) {
326  lock(this) {
327  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
328  if (swigCMemOwn) {
329  swigCMemOwn = false;
331  }
332  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
333  }
334  }
335  }
336 
339  return ret;
340  }
341 
342  }
343 
344  public ResourceGroup(RoutingModel model) : this(operations_research_constraint_solverPINVOKE.new_RoutingModel_ResourceGroup(RoutingModel.getCPtr(model)), true) {
345  }
346 
350  return ret;
351  }
352 
353  public void NotifyVehicleRequiresAResource(int vehicle) {
355  }
356 
359  IntVector tmpVector = null;
360  if (cPtr != global::System.IntPtr.Zero) {
361  tmpVector = new IntVector(cPtr, true);
362  int[] outArray = new int[tmpVector.Count];
363  tmpVector.CopyTo(outArray);
364  return outArray;
365  }
366  return null;
367  }
368 
369  public bool VehicleRequiresAResource(int vehicle) {
371  return ret;
372  }
373 
374  public SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__ResourceGroup__Resource_t GetResources() {
375  SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__ResourceGroup__Resource_t ret = new SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__ResourceGroup__Resource_t(operations_research_constraint_solverPINVOKE.RoutingModel_ResourceGroup_GetResources(swigCPtr), false);
376  return ret;
377  }
378 
379  public RoutingModel.ResourceGroup.Resource GetResource(int resource_index) {
381  return ret;
382  }
383 
384  public SWIGTYPE_p_absl__flat_hash_setT_operations_research__RoutingModel__DimensionIndex_t GetAffectedDimensionIndices() {
385  SWIGTYPE_p_absl__flat_hash_setT_operations_research__RoutingModel__DimensionIndex_t ret = new SWIGTYPE_p_absl__flat_hash_setT_operations_research__RoutingModel__DimensionIndex_t(operations_research_constraint_solverPINVOKE.RoutingModel_ResourceGroup_GetAffectedDimensionIndices(swigCPtr), false);
386  return ret;
387  }
388 
389  public int Size() {
391  return ret;
392  }
393 
394  }
395 
396  public static long kNoPenalty {
397  get {
399  return ret;
400  }
401  }
402 
403  public static int kNoDisjunction {
404  get {
406  }
407 
408  }
409 
410  public static int kNoDimension {
411  get {
413  }
414 
415  }
416 
417  public RoutingModel(RoutingIndexManager index_manager) : this(operations_research_constraint_solverPINVOKE.new_RoutingModel__SWIG_0(RoutingIndexManager.getCPtr(index_manager)), true) {
419  }
420 
421  public RoutingModel(RoutingIndexManager index_manager, Google.OrTools.ConstraintSolver.RoutingModelParameters parameters) : this(operations_research_constraint_solverPINVOKE.new_RoutingModel__SWIG_1(RoutingIndexManager.getCPtr(index_manager), parameters.CalculateSize(), ProtoHelper.ProtoToByteArray(parameters)), true) {
423  }
424 
425  public int RegisterUnaryTransitVector( long[] values) {
427  return ret;
428  }
429 
430  public int RegisterUnaryTransitCallback( LongToLong callback) {
431  int ret = operations_research_constraint_solverPINVOKE.RoutingModel_RegisterUnaryTransitCallback(swigCPtr, StoreLongToLong(callback) );
432  return ret;
433  }
434 
437  return ret;
438  }
439 
440  public int RegisterTransitMatrix( long[][] values) {
442  values.GetLength(0),
443  NestedArrayHelper.GetArraySecondSize(values),
444  NestedArrayHelper.GetFlatArray(values)
445 );
446  return ret;
447  }
448 
449  public int RegisterTransitCallback( LongLongToLong callback) {
450  int ret = operations_research_constraint_solverPINVOKE.RoutingModel_RegisterTransitCallback(swigCPtr, StoreLongLongToLong(callback) );
451  return ret;
452  }
453 
455  int ret = operations_research_constraint_solverPINVOKE.RoutingModel_RegisterPositiveTransitCallback(swigCPtr, StoreLongLongToLong(callback) );
456  return ret;
457  }
458 
459  public bool AddDimension(int evaluator_index, long slack_max, long capacity, bool fix_start_cumul_to_zero, string name) {
460  bool ret = operations_research_constraint_solverPINVOKE.RoutingModel_AddDimension(swigCPtr, evaluator_index, slack_max, capacity, fix_start_cumul_to_zero, name);
462  return ret;
463  }
464 
465  public bool AddDimensionWithVehicleTransits( int[] evaluator_indices, long slack_max, long capacity, bool fix_start_cumul_to_zero, string name) {
466  bool ret = operations_research_constraint_solverPINVOKE.RoutingModel_AddDimensionWithVehicleTransits(swigCPtr, evaluator_indices.Length, evaluator_indices , slack_max, capacity, fix_start_cumul_to_zero, name);
468  return ret;
469  }
470 
471  public bool AddDimensionWithVehicleCapacity(int evaluator_index, long slack_max, long[] vehicle_capacities, bool fix_start_cumul_to_zero, string name) {
472  bool ret = operations_research_constraint_solverPINVOKE.RoutingModel_AddDimensionWithVehicleCapacity(swigCPtr, evaluator_index, slack_max, vehicle_capacities.Length, vehicle_capacities , fix_start_cumul_to_zero, name);
474  return ret;
475  }
476 
477  public bool AddDimensionWithVehicleTransitAndCapacity( int[] evaluator_indices, long slack_max, long[] vehicle_capacities, bool fix_start_cumul_to_zero, string name) {
478  bool ret = operations_research_constraint_solverPINVOKE.RoutingModel_AddDimensionWithVehicleTransitAndCapacity(swigCPtr, evaluator_indices.Length, evaluator_indices , slack_max, vehicle_capacities.Length, vehicle_capacities , fix_start_cumul_to_zero, name);
480  return ret;
481  }
482 
483  public IntBoolPair AddConstantDimensionWithSlack(long value, long capacity, long slack_max, bool fix_start_cumul_to_zero, string name) {
484  IntBoolPair ret = new IntBoolPair(operations_research_constraint_solverPINVOKE.RoutingModel_AddConstantDimensionWithSlack(swigCPtr, value, capacity, slack_max, fix_start_cumul_to_zero, name), true);
486  return ret;
487  }
488 
489  public IntBoolPair AddConstantDimension(long value, long capacity, bool fix_start_cumul_to_zero, string name) {
490  IntBoolPair ret = new IntBoolPair(operations_research_constraint_solverPINVOKE.RoutingModel_AddConstantDimension(swigCPtr, value, capacity, fix_start_cumul_to_zero, name), true);
492  return ret;
493  }
494 
495  public IntBoolPair AddVectorDimension( long[] values, long capacity, bool fix_start_cumul_to_zero, string name) {
496  IntBoolPair ret = new IntBoolPair(operations_research_constraint_solverPINVOKE.RoutingModel_AddVectorDimension(swigCPtr, values.Length, values , capacity, fix_start_cumul_to_zero, name), true);
498  return ret;
499  }
500 
501  public IntBoolPair AddMatrixDimension( long[][] values, long capacity, bool fix_start_cumul_to_zero, string name) {
503  values.GetLength(0),
504  NestedArrayHelper.GetArraySecondSize(values),
505  NestedArrayHelper.GetFlatArray(values)
506 , capacity, fix_start_cumul_to_zero, name), true);
508  return ret;
509  }
510 
512  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_MakePathSpansAndTotalSlacks(swigCPtr, RoutingDimension.getCPtr(dimension), IntVarVector.getCPtr(spans), IntVarVector.getCPtr(total_slacks));
513  Constraint ret = (cPtr == global::System.IntPtr.Zero) ? null : new Constraint(cPtr, false);
515  return ret;
516  }
517 
518  public SWIGTYPE_p_std__vectorT_std__unique_ptrT_operations_research__GlobalDimensionCumulOptimizer_t_t GetGlobalDimensionCumulMPOptimizers() {
519  SWIGTYPE_p_std__vectorT_std__unique_ptrT_operations_research__GlobalDimensionCumulOptimizer_t_t ret = new SWIGTYPE_p_std__vectorT_std__unique_ptrT_operations_research__GlobalDimensionCumulOptimizer_t_t(operations_research_constraint_solverPINVOKE.RoutingModel_GetGlobalDimensionCumulMPOptimizers(swigCPtr), false);
520  return ret;
521  }
522 
523  public SWIGTYPE_p_operations_research__GlobalDimensionCumulOptimizer GetMutableGlobalCumulMPOptimizer(RoutingDimension dimension) {
525  SWIGTYPE_p_operations_research__GlobalDimensionCumulOptimizer ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_operations_research__GlobalDimensionCumulOptimizer(cPtr, false);
527  return ret;
528  }
529 
530  public bool HasDimension(string dimension_name) {
531  bool ret = operations_research_constraint_solverPINVOKE.RoutingModel_HasDimension(swigCPtr, dimension_name);
533  return ret;
534  }
535 
536  public RoutingDimension GetDimensionOrDie(string dimension_name) {
539  return ret;
540  }
541 
542  public RoutingDimension GetMutableDimension(string dimension_name) {
543  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_GetMutableDimension(swigCPtr, dimension_name);
544  RoutingDimension ret = (cPtr == global::System.IntPtr.Zero) ? null : new RoutingDimension(cPtr, false);
546  return ret;
547  }
548 
549  public void SetPrimaryConstrainedDimension(string dimension_name) {
552  }
553 
556  return ret;
557  }
558 
559  public int AddResourceGroup() {
561  return ret;
562  }
563 
564  public SWIGTYPE_p_std__vectorT_std__unique_ptrT_operations_research__RoutingModel__ResourceGroup_t_t GetResourceGroups() {
565  SWIGTYPE_p_std__vectorT_std__unique_ptrT_operations_research__RoutingModel__ResourceGroup_t_t ret = new SWIGTYPE_p_std__vectorT_std__unique_ptrT_operations_research__RoutingModel__ResourceGroup_t_t(operations_research_constraint_solverPINVOKE.RoutingModel_GetResourceGroups(swigCPtr), false);
566  return ret;
567  }
568 
570  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_GetResourceGroup(swigCPtr, rg_index);
571  RoutingModel.ResourceGroup ret = (cPtr == global::System.IntPtr.Zero) ? null : new RoutingModel.ResourceGroup(cPtr, false);
572  return ret;
573  }
574 
577  IntVector tmpVector = null;
578  if (cPtr != global::System.IntPtr.Zero) {
579  tmpVector = new IntVector(cPtr, true);
580  int[] outArray = new int[tmpVector.Count];
581  tmpVector.CopyTo(outArray);
582  return outArray;
583  }
584  return null;
585 }
586 
589  return ret;
590  }
591 
592  public int AddDisjunction( long[] indices, long penalty, long max_cardinality) {
593  return operations_research_constraint_solverPINVOKE.RoutingModel_AddDisjunction__SWIG_0(swigCPtr, indices.Length, indices , penalty, max_cardinality);
594 }
595 
596  public int AddDisjunction( long[] indices, long penalty) {
597  return operations_research_constraint_solverPINVOKE.RoutingModel_AddDisjunction__SWIG_1(swigCPtr, indices.Length, indices , penalty);
598 }
599 
600  public int AddDisjunction( long[] indices) {
602 }
603 
604  public int[] GetDisjunctionIndices(long index) {
605  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_GetDisjunctionIndices(swigCPtr, index);
606  IntVector tmpVector = null;
607  if (cPtr != global::System.IntPtr.Zero) {
608  tmpVector = new IntVector(cPtr, true);
609  int[] outArray = new int[tmpVector.Count];
610  tmpVector.CopyTo(outArray);
611  return outArray;
612  }
613  return null;
614 }
615 
616  public long[] GetDisjunctionNodeIndices(int index) {
617  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_GetDisjunctionNodeIndices(swigCPtr, index);
618  Int64Vector tmpVector = null;
619  if (cPtr != global::System.IntPtr.Zero) {
620  tmpVector = new Int64Vector(cPtr, true);
621  long[] outArray = new long[tmpVector.Count];
622  tmpVector.CopyTo(outArray);
623  return outArray;
624  }
625  return null;
626 }
627 
628  public long GetDisjunctionPenalty(int index) {
630  return ret;
631  }
632 
633  public long GetDisjunctionMaxCardinality(int index) {
635  return ret;
636  }
637 
638  public int GetNumberOfDisjunctions() {
640  return ret;
641  }
642 
643  public bool HasMandatoryDisjunctions() {
645  return ret;
646  }
647 
650  return ret;
651  }
652 
655  }
656 
657  public void AddSoftSameVehicleConstraint( long[] indices, long cost) {
659  }
660 
661  public void SetAllowedVehiclesForIndex( int[] vehicles, long index) {
663  }
664 
665  public bool IsVehicleAllowedForIndex(int vehicle, long index) {
667  return ret;
668  }
669 
670  public void AddPickupAndDelivery(long pickup, long delivery) {
672  }
673 
674  public void AddPickupAndDeliverySets(int pickup_disjunction, int delivery_disjunction) {
675  operations_research_constraint_solverPINVOKE.RoutingModel_AddPickupAndDeliverySets(swigCPtr, pickup_disjunction, delivery_disjunction);
676  }
677 
678  public void SetPickupAndDeliveryPolicyOfAllVehicles(int policy) {
680  }
681 
682  public void SetPickupAndDeliveryPolicyOfVehicle(int policy, int vehicle) {
684  }
685 
686  public int GetPickupAndDeliveryPolicyOfVehicle(int vehicle) {
688  return ret;
689  }
690 
691  public int GetNumOfSingletonNodes() {
693  return ret;
694  }
695 
696  public void SetVisitType(long index, int type, int type_policy) {
698  }
699 
700  public int GetVisitType(long index) {
702  return ret;
703  }
704 
705  public int[] GetSingleNodesOfType(int type) {
706  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_GetSingleNodesOfType(swigCPtr, type);
707  IntVector tmpVector = null;
708  if (cPtr != global::System.IntPtr.Zero) {
709  tmpVector = new IntVector(cPtr, true);
710  int[] outArray = new int[tmpVector.Count];
711  tmpVector.CopyTo(outArray);
712  return outArray;
713  }
714  return null;
715 }
716 
717  public int[] GetPairIndicesOfType(int type) {
718  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_GetPairIndicesOfType(swigCPtr, type);
719  IntVector tmpVector = null;
720  if (cPtr != global::System.IntPtr.Zero) {
721  tmpVector = new IntVector(cPtr, true);
722  int[] outArray = new int[tmpVector.Count];
723  tmpVector.CopyTo(outArray);
724  return outArray;
725  }
726  return null;
727 }
728 
729  public int GetVisitTypePolicy(long index) {
731  return ret;
732  }
733 
734  public void CloseVisitTypes() {
736  }
737 
738  public int GetNumberOfVisitTypes() {
740  return ret;
741  }
742 
743  public void AddHardTypeIncompatibility(int type1, int type2) {
745  }
746 
747  public void AddTemporalTypeIncompatibility(int type1, int type2) {
749  }
750 
751  public SWIGTYPE_p_absl__flat_hash_setT_int_t GetTemporalTypeIncompatibilitiesOfType(int type) {
752  SWIGTYPE_p_absl__flat_hash_setT_int_t ret = new SWIGTYPE_p_absl__flat_hash_setT_int_t(operations_research_constraint_solverPINVOKE.RoutingModel_GetTemporalTypeIncompatibilitiesOfType(swigCPtr, type), false);
753  return ret;
754  }
755 
758  return ret;
759  }
760 
763  return ret;
764  }
765 
766  public void AddRequiredTypeAlternativesWhenAddingType(int dependent_type, SWIGTYPE_p_absl__flat_hash_setT_int_t required_type_alternatives) {
767  operations_research_constraint_solverPINVOKE.RoutingModel_AddRequiredTypeAlternativesWhenAddingType(swigCPtr, dependent_type, SWIGTYPE_p_absl__flat_hash_setT_int_t.getCPtr(required_type_alternatives));
769  }
770 
771  public void AddRequiredTypeAlternativesWhenRemovingType(int dependent_type, SWIGTYPE_p_absl__flat_hash_setT_int_t required_type_alternatives) {
772  operations_research_constraint_solverPINVOKE.RoutingModel_AddRequiredTypeAlternativesWhenRemovingType(swigCPtr, dependent_type, SWIGTYPE_p_absl__flat_hash_setT_int_t.getCPtr(required_type_alternatives));
774  }
775 
776  public SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t GetSameVehicleRequiredTypeAlternativesOfType(int type) {
777  SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t ret = new SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t(operations_research_constraint_solverPINVOKE.RoutingModel_GetSameVehicleRequiredTypeAlternativesOfType(swigCPtr, type), false);
778  return ret;
779  }
780 
781  public SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t GetRequiredTypeAlternativesWhenAddingType(int type) {
782  SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t ret = new SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t(operations_research_constraint_solverPINVOKE.RoutingModel_GetRequiredTypeAlternativesWhenAddingType(swigCPtr, type), false);
783  return ret;
784  }
785 
786  public SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t GetRequiredTypeAlternativesWhenRemovingType(int type) {
787  SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t ret = new SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t(operations_research_constraint_solverPINVOKE.RoutingModel_GetRequiredTypeAlternativesWhenRemovingType(swigCPtr, type), false);
788  return ret;
789  }
790 
793  return ret;
794  }
795 
798  return ret;
799  }
800 
801  public long UnperformedPenalty(long var_index) {
803  return ret;
804  }
805 
806  public long UnperformedPenaltyOrValue(long default_value, long var_index) {
807  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_UnperformedPenaltyOrValue(swigCPtr, default_value, var_index);
808  return ret;
809  }
810 
811  public long GetDepot() {
813  return ret;
814  }
815 
816  public void SetMaximumNumberOfActiveVehicles(int max_active_vehicles) {
818  }
819 
822  return ret;
823  }
824 
825  public void SetArcCostEvaluatorOfAllVehicles(int evaluator_index) {
827  }
828 
829  public void SetArcCostEvaluatorOfVehicle(int evaluator_index, int vehicle) {
831  }
832 
833  public void SetFixedCostOfAllVehicles(long cost) {
835  }
836 
837  public void SetFixedCostOfVehicle(long cost, int vehicle) {
839  }
840 
841  public long GetFixedCostOfVehicle(int vehicle) {
843  return ret;
844  }
845 
846  public void SetAmortizedCostFactorsOfAllVehicles(long linear_cost_factor, long quadratic_cost_factor) {
847  operations_research_constraint_solverPINVOKE.RoutingModel_SetAmortizedCostFactorsOfAllVehicles(swigCPtr, linear_cost_factor, quadratic_cost_factor);
848  }
849 
850  public void SetAmortizedCostFactorsOfVehicle(long linear_cost_factor, long quadratic_cost_factor, int vehicle) {
851  operations_research_constraint_solverPINVOKE.RoutingModel_SetAmortizedCostFactorsOfVehicle(swigCPtr, linear_cost_factor, quadratic_cost_factor, vehicle);
852  }
853 
856  Int64Vector tmpVector = null;
857  if (cPtr != global::System.IntPtr.Zero) {
858  tmpVector = new Int64Vector(cPtr, true);
859  long[] outArray = new long[tmpVector.Count];
860  tmpVector.CopyTo(outArray);
861  return outArray;
862  }
863  return null;
864 }
865 
868  Int64Vector tmpVector = null;
869  if (cPtr != global::System.IntPtr.Zero) {
870  tmpVector = new Int64Vector(cPtr, true);
871  long[] outArray = new long[tmpVector.Count];
872  tmpVector.CopyTo(outArray);
873  return outArray;
874  }
875  return null;
876 }
877 
878  public void SetVehicleUsedWhenEmpty(bool is_used, int vehicle) {
880  }
881 
882  public bool IsVehicleUsedWhenEmpty(int vehicle) {
884  return ret;
885  }
886 
887  public void SetFirstSolutionEvaluator( LongLongToLong evaluator) {
889  }
890 
891  public void AddLocalSearchOperator(LocalSearchOperator ls_operator) {
893  }
894 
895  public void AddSearchMonitor(SearchMonitor monitor) {
897  }
898 
899  public void AddAtSolutionCallback( VoidToVoid callback) {
901  }
902 
905  }
906 
909  }
910 
911  public void AddWeightedVariableMinimizedByFinalizer(IntVar var, long cost) {
913  }
914 
915  public void AddVariableTargetToFinalizer(IntVar var, long target) {
917  }
918 
919  public void CloseModel() {
921  }
922 
924  operations_research_constraint_solverPINVOKE.RoutingModel_CloseModelWithParameters(swigCPtr, search_parameters.CalculateSize(), ProtoHelper.ProtoToByteArray(search_parameters));
925  }
926 
927  public Assignment Solve(Assignment assignment) {
928  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_Solve__SWIG_0(swigCPtr, Assignment.getCPtr(assignment));
929  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
930  return ret;
931  }
932 
933  public Assignment Solve() {
934  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_Solve__SWIG_1(swigCPtr);
935  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
936  return ret;
937  }
938 
940  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_SolveWithParameters(swigCPtr, search_parameters.CalculateSize(), ProtoHelper.ProtoToByteArray(search_parameters));
941  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
942  return ret;
943  }
944 
946  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_SolveFromAssignmentWithParameters(swigCPtr, Assignment.getCPtr(assignment), search_parameters.CalculateSize(), ProtoHelper.ProtoToByteArray(search_parameters));
947  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
948  return ret;
949  }
950 
951  public Assignment SolveFromAssignmentsWithParameters(SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t assignments, Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters, SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t solutions) {
952  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_SolveFromAssignmentsWithParameters__SWIG_0(swigCPtr, SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t.getCPtr(assignments), search_parameters.CalculateSize(), ProtoHelper.ProtoToByteArray(search_parameters), SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t.getCPtr(solutions));
953  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
955  return ret;
956  }
957 
958  public Assignment SolveFromAssignmentsWithParameters(SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t assignments, Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters) {
959  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_SolveFromAssignmentsWithParameters__SWIG_1(swigCPtr, SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t.getCPtr(assignments), search_parameters.CalculateSize(), ProtoHelper.ProtoToByteArray(search_parameters));
960  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
962  return ret;
963  }
964 
965  public void SetAssignmentFromOtherModelAssignment(Assignment target_assignment, RoutingModel source_model, Assignment source_assignment) {
966  operations_research_constraint_solverPINVOKE.RoutingModel_SetAssignmentFromOtherModelAssignment(swigCPtr, Assignment.getCPtr(target_assignment), RoutingModel.getCPtr(source_model), Assignment.getCPtr(source_assignment));
967  }
968 
969  public long ComputeLowerBound() {
971  return ret;
972  }
973 
974  public int GetStatus() {
976  return ret;
977  }
978 
979  public IntVar ApplyLocks( long[] locks) {
980  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_ApplyLocks(swigCPtr, locks.Length, locks );
981  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
982  return ret;
983  }
984 
985  public bool ApplyLocksToAllVehicles( long[][] locks, bool close_routes) {
987  locks.GetLength(0),
988  NestedArrayHelper.GetArraySecondSize(locks),
989  NestedArrayHelper.GetFlatArray(locks)
990 , close_routes);
991  return ret;
992  }
993 
995  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_PreAssignment(swigCPtr);
996  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
997  return ret;
998  }
999 
1002  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
1003  return ret;
1004  }
1005 
1006  public bool WriteAssignment(string file_name) {
1009  return ret;
1010  }
1011 
1012  public Assignment ReadAssignment(string file_name) {
1013  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_ReadAssignment(swigCPtr, file_name);
1014  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
1016  return ret;
1017  }
1018 
1020  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_RestoreAssignment(swigCPtr, Assignment.getCPtr(solution));
1021  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
1023  return ret;
1024  }
1025 
1026  public Assignment ReadAssignmentFromRoutes( long[][] routes, bool ignore_inactive_indices) {
1028  routes.GetLength(0),
1029  NestedArrayHelper.GetArraySecondSize(routes),
1030  NestedArrayHelper.GetFlatArray(routes)
1031 , ignore_inactive_indices);
1032  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
1033  return ret;
1034  }
1035 
1036  public bool RoutesToAssignment( long[][] routes, bool ignore_inactive_indices, bool close_routes, Assignment assignment) {
1038  routes.GetLength(0),
1039  NestedArrayHelper.GetArraySecondSize(routes),
1040  NestedArrayHelper.GetFlatArray(routes)
1041 , ignore_inactive_indices, close_routes, Assignment.getCPtr(assignment));
1042  return ret;
1043  }
1044 
1045  public void AssignmentToRoutes(Assignment assignment, long[][] routes) {
1047  routes.GetLength(0),
1048  NestedArrayHelper.GetArraySecondSize(routes),
1049  NestedArrayHelper.GetFlatArray(routes)
1050 );
1052  }
1053 
1055  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_CompactAssignment(swigCPtr, Assignment.getCPtr(assignment));
1056  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
1058  return ret;
1059  }
1060 
1062  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_CompactAndCheckAssignment(swigCPtr, Assignment.getCPtr(assignment));
1063  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
1065  return ret;
1066  }
1067 
1068  public void AddToAssignment(IntVar var) {
1070  }
1071 
1072  public void AddIntervalToAssignment(IntervalVar interval) {
1074  }
1075 
1078  }
1079 
1080  public long Start(int vehicle) {
1082  return ret;
1083  }
1084 
1085  public long End(int vehicle) {
1086  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_End(swigCPtr, vehicle);
1087  return ret;
1088  }
1089 
1090  public bool IsStart(long index) {
1092  return ret;
1093  }
1094 
1095  public bool IsEnd(long index) {
1097  return ret;
1098  }
1099 
1100  public int VehicleIndex(long index) {
1102  return ret;
1103  }
1104 
1105  public long Next(Assignment assignment, long index) {
1106  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_Next(swigCPtr, Assignment.getCPtr(assignment), index);
1108  return ret;
1109  }
1110 
1111  public bool IsVehicleUsed(Assignment assignment, int vehicle) {
1112  bool ret = operations_research_constraint_solverPINVOKE.RoutingModel_IsVehicleUsed(swigCPtr, Assignment.getCPtr(assignment), vehicle);
1114  return ret;
1115  }
1116 
1117  public IntVarVector Nexts() {
1119  return ret;
1120  }
1121 
1124  return ret;
1125  }
1126 
1127  public IntVarVector ResourceVars(int resource_group) {
1129  return ret;
1130  }
1131 
1132  public IntVar NextVar(long index) {
1133  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_NextVar(swigCPtr, index);
1134  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
1135  return ret;
1136  }
1137 
1138  public IntVar ActiveVar(long index) {
1139  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_ActiveVar(swigCPtr, index);
1140  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
1141  return ret;
1142  }
1143 
1144  public IntVar ActiveVehicleVar(int vehicle) {
1145  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_ActiveVehicleVar(swigCPtr, vehicle);
1146  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
1147  return ret;
1148  }
1149 
1150  public IntVar VehicleRouteConsideredVar(int vehicle) {
1151  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_VehicleRouteConsideredVar(swigCPtr, vehicle);
1152  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
1153  return ret;
1154  }
1155 
1156  public IntVar VehicleVar(long index) {
1157  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_VehicleVar(swigCPtr, index);
1158  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
1159  return ret;
1160  }
1161 
1162  public IntVar ResourceVar(int vehicle, int resource_group) {
1163  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_ResourceVar(swigCPtr, vehicle, resource_group);
1164  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
1165  return ret;
1166  }
1167 
1168  public IntVar CostVar() {
1169  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_CostVar(swigCPtr);
1170  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
1171  return ret;
1172  }
1173 
1174  public long GetArcCostForVehicle(long from_index, long to_index, long vehicle) {
1175  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetArcCostForVehicle(swigCPtr, from_index, to_index, vehicle);
1176  return ret;
1177  }
1178 
1181  return ret;
1182  }
1183 
1184  public long GetHomogeneousCost(long from_index, long to_index) {
1185  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetHomogeneousCost(swigCPtr, from_index, to_index);
1186  return ret;
1187  }
1188 
1189  public long GetArcCostForFirstSolution(long from_index, long to_index) {
1191  return ret;
1192  }
1193 
1194  public long GetArcCostForClass(long from_index, long to_index, long cost_class_index) {
1195  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetArcCostForClass(swigCPtr, from_index, to_index, cost_class_index);
1196  return ret;
1197  }
1198 
1199  public int GetCostClassIndexOfVehicle(long vehicle) {
1201 }
1202 
1203  public bool HasVehicleWithCostClassIndex(int cost_class_index) {
1205  return ret;
1206  }
1207 
1208  public int GetCostClassesCount() {
1210  return ret;
1211  }
1212 
1215  return ret;
1216  }
1217 
1218  public int GetVehicleClassIndexOfVehicle(long vehicle) {
1220 }
1221 
1222  public int GetVehicleOfClass(int vehicle_class) {
1224  return ret;
1225  }
1226 
1227  public int GetVehicleClassesCount() {
1229  return ret;
1230  }
1231 
1232  public int[] GetSameVehicleIndicesOfIndex(int node) {
1234  IntVector tmpVector = null;
1235  if (cPtr != global::System.IntPtr.Zero) {
1236  tmpVector = new IntVector(cPtr, true);
1237  int[] outArray = new int[tmpVector.Count];
1238  tmpVector.CopyTo(outArray);
1239  return outArray;
1240  }
1241  return null;
1242 }
1243 
1246  return ret;
1247  }
1248 
1249  public bool ArcIsMoreConstrainedThanArc(long from, long to1, long to2) {
1251  return ret;
1252  }
1253 
1254  public string DebugOutputAssignment(Assignment solution_assignment, string dimension_to_print) {
1255  string ret = operations_research_constraint_solverPINVOKE.RoutingModel_DebugOutputAssignment(swigCPtr, Assignment.getCPtr(solution_assignment), dimension_to_print);
1257  return ret;
1258  }
1259 
1260  public Solver solver() {
1261  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_solver(swigCPtr);
1262  Solver ret = (cPtr == global::System.IntPtr.Zero) ? null : new Solver(cPtr, false);
1263  return ret;
1264  }
1265 
1266  public bool CheckLimit() {
1268  return ret;
1269  }
1270 
1271  public int Nodes() {
1273  return ret;
1274  }
1275 
1276  public int Vehicles() {
1278  return ret;
1279  }
1280 
1281  public long Size() {
1283  return ret;
1284  }
1285 
1287  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetNumberOfDecisionsInFirstSolution(swigCPtr, search_parameters.CalculateSize(), ProtoHelper.ProtoToByteArray(search_parameters));
1288  return ret;
1289  }
1290 
1292  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetNumberOfRejectsInFirstSolution(swigCPtr, search_parameters.CalculateSize(), ProtoHelper.ProtoToByteArray(search_parameters));
1293  return ret;
1294  }
1295 
1296  public bool IsMatchingModel() {
1298  return ret;
1299  }
1300 
1302  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_MakeGuidedSlackFinalizer(swigCPtr, RoutingDimension.getCPtr(dimension), StoreLongToLong(initializer) );
1303  DecisionBuilder ret = (cPtr == global::System.IntPtr.Zero) ? null : new DecisionBuilder(cPtr, false);
1304  return ret;
1305  }
1306 
1309  DecisionBuilder ret = (cPtr == global::System.IntPtr.Zero) ? null : new DecisionBuilder(cPtr, false);
1310  return ret;
1311  }
1312 
1313  // Status
1319 
1320  // PickupAndDeliveryPolicy
1324 
1325  // VisitTypePolicy
1330 
1331 }
1332 
1333 }
static bool RoutingModel_HasMaxCardinalityConstrainedDisjunctions(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_ResourceGroup_GetVehiclesRequiringAResource(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool RoutingModel_AddDimensionWithVehicleTransits(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, int[] jarg2, long jarg3, long jarg4, bool jarg5, string jarg6)
Assignment SolveWithParameters(Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters)
int GetDimensionResourceGroupIndex(RoutingDimension dimension)
static int RoutingModel_GetCostClassesCount(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_GetPairIndicesOfType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
Assignment CompactAndCheckAssignment(Assignment assignment)
int RegisterPositiveUnaryTransitCallback(LongToLong callback)
static global::System.IntPtr RoutingModel_VehicleTypeContainer_sorted_vehicle_classes_per_type_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_ResourceGroup_Attributes_StartDomain(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_GetDisjunctionNodeIndices(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int RoutingModel_GetNumberOfVisitTypes(global::System.Runtime.InteropServices.HandleRef jarg1)
static int RoutingModel_RegisterUnaryTransitCallback(global::System.Runtime.InteropServices.HandleRef jarg1, LongToLong jarg2)
RoutingModel.ResourceGroup.Resource GetResource(int resource_index)
string DebugOutputAssignment(Assignment solution_assignment, string dimension_to_print)
static void RoutingModel_SetArcCostEvaluatorOfVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static bool RoutingModel_HasTemporalTypeIncompatibilities(global::System.Runtime.InteropServices.HandleRef jarg1)
static int RoutingModel_VehicleIndex(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
Assignment Solve(Assignment assignment)
static void RoutingModel_AddIntervalToAssignment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
DecisionBuilder MakeSelfDependentDimensionFinalizer(RoutingDimension dimension)
static int RoutingModel_ResourceGroup_AddResource(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr RoutingModel_MakeGuidedSlackFinalizer(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, LongToLong jarg3)
static int RoutingModel_AddDisjunction__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2, long jarg3, long jarg4)
delegate long LongLongToLong(long t, long u)
static global::System.IntPtr RoutingModel_GetAmortizedLinearCostFactorOfVehicles(global::System.Runtime.InteropServices.HandleRef jarg1)
void AddVariableTargetToFinalizer(IntVar var, long target)
static long RoutingModel_GetArcCostForClass(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, long jarg4)
static global::System.IntPtr RoutingModel_GetMutableDimension(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2)
static readonly int TYPE_SIMULTANEOUSLY_ADDED_AND_REMOVED
static global::System.IntPtr RoutingModel_GetResourceGroup(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int RoutingModel_AddDisjunction__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2)
int RegisterTransitCallback(LongLongToLong callback)
static global::System.IntPtr RoutingModel_ResourceGroup_GetResource(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int RoutingModel_GetStatus(global::System.Runtime.InteropServices.HandleRef jarg1)
RoutingModel(RoutingIndexManager index_manager, Google.OrTools.ConstraintSolver.RoutingModelParameters parameters)
static bool RoutingModel_HasSameVehicleTypeRequirements(global::System.Runtime.InteropServices.HandleRef jarg1)
int RegisterPositiveTransitCallback(LongLongToLong callback)
Parameters defining the search used to solve vehicle routing problems.
RoutingModel.ResourceGroup.Attributes GetDimensionAttributes(RoutingDimension dimension)
static global::System.IntPtr RoutingModel_ResourceGroup_Resource_GetDimensionAttributes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr RoutingModel_ResourceGroup_Attributes_EndDomain(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool RoutingModel_IsMatchingModel(global::System.Runtime.InteropServices.HandleRef jarg1)
static byte [] ProtoToByteArray(IMessage message)
Definition: ProtoHelper.cs:22
static global::System.IntPtr RoutingModel_CostVar(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RoutingModel_AssignmentToRoutes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int len3_1, int[] len3_2, long[] jarg3)
void AddPickupAndDeliverySets(int pickup_disjunction, int delivery_disjunction)
static void RoutingModel_SetArcCostEvaluatorOfAllVehicles(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
void AddSearchMonitor(SearchMonitor monitor)
static bool RoutingModel_IsVehicleUsed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3)
static int RoutingModel_GetVehicleClassesCount(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_VehicleTypeContainer_type_index_of_vehicle_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RoutingModel_VehicleTypeContainer_type_index_of_vehicle_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int RoutingModel_GetVehicleClassIndexOfVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
int RegisterUnaryTransitCallback(LongToLong callback)
static global::System.IntPtr RoutingModel_GetSameVehicleIndicesOfIndex(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int RoutingModel_RegisterPositiveUnaryTransitCallback(global::System.Runtime.InteropServices.HandleRef jarg1, LongToLong jarg2)
static long RoutingModel_GetNumberOfRejectsInFirstSolution(global::System.Runtime.InteropServices.HandleRef jarg1, int search_parameters_size, byte[] jarg2)
static global::System.IntPtr RoutingModel_ActiveVar(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
void SetAmortizedCostFactorsOfAllVehicles(long linear_cost_factor, long quadratic_cost_factor)
static bool RoutingModel_HasHardTypeIncompatibilities(global::System.Runtime.InteropServices.HandleRef jarg1)
static int RoutingModel_GetPickupAndDeliveryPolicyOfVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void RoutingModel_CloseModelWithParameters(global::System.Runtime.InteropServices.HandleRef jarg1, int search_parameters_size, byte[] jarg2)
static void delete_RoutingModel_VehicleTypeContainer_VehicleClassEntry(global::System.Runtime.InteropServices.HandleRef jarg1)
void SetAllowedVehiclesForIndex(int[] vehicles, long index)
long GetNumberOfRejectsInFirstSolution(Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters)
SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t GetRequiredTypeAlternativesWhenAddingType(int type)
static int RoutingModel_RegisterPositiveTransitCallback(global::System.Runtime.InteropServices.HandleRef jarg1, LongLongToLong jarg2)
static long RoutingModel_UnperformedPenaltyOrValue(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
long GetArcCostForClass(long from_index, long to_index, long cost_class_index)
static int RoutingModel_GetCostClassIndexOfVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void RoutingModel_AddLocalSearchOperator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t GetSameVehicleRequiredTypeAlternativesOfType(int type)
static void RoutingModel_SetPickupAndDeliveryPolicyOfVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
Assignment SolveFromAssignmentsWithParameters(SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t assignments, Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters)
static bool RoutingModel_HasMandatoryDisjunctions(global::System.Runtime.InteropServices.HandleRef jarg1)
SWIGTYPE_p_std__vectorT_std__dequeT_int_t_t? vehicles_per_vehicle_class
bool ApplyLocksToAllVehicles(long[][] locks, bool close_routes)
static global::System.IntPtr RoutingModel_VehicleTypeContainer_vehicles_per_vehicle_class_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_MutablePreAssignment(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RoutingModel_AddHardTypeIncompatibility(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void RoutingModel_SetFixedCostOfAllVehicles(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
int AddDisjunction(long[] indices, long penalty, long max_cardinality)
static int RoutingModel_GetNumberOfDisjunctions(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool RoutingModel_HasDimension(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2)
long UnperformedPenaltyOrValue(long default_value, long var_index)
static long RoutingModel_GetDisjunctionMaxCardinality(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr RoutingModel_GetAmortizedQuadraticCostFactorOfVehicles(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_ReadAssignment(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2)
static global::System.IntPtr RoutingModel_SolveFromAssignmentsWithParameters__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int search_parameters_size, byte[] jarg3)
static global::System.IntPtr RoutingModel_SolveFromAssignmentsWithParameters__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int search_parameters_size, byte[] jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
Assignment ReadAssignment(string file_name)
static global::System.IntPtr RoutingModel_Solve__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
void AddRequiredTypeAlternativesWhenAddingType(int dependent_type, SWIGTYPE_p_absl__flat_hash_setT_int_t required_type_alternatives)
static long RoutingModel_GetFixedCostOfVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void RoutingModel_AddToAssignment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
bool IsVehicleAllowedForIndex(int vehicle, long index)
static int RoutingModel_RegisterTransitCallback(global::System.Runtime.InteropServices.HandleRef jarg1, LongLongToLong jarg2)
static void RoutingModel_ResourceGroup_NotifyVehicleRequiresAResource(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void RoutingModel_AddSoftSameVehicleConstraint(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2, long jarg3)
static long RoutingModel_Start(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool RoutingModel_RoutesToAssignment(global::System.Runtime.InteropServices.HandleRef jarg1, int len2_1, int[] len2_2, long[] jarg2, bool jarg3, bool jarg4, global::System.Runtime.InteropServices.HandleRef jarg5)
Constraint MakePathSpansAndTotalSlacks(RoutingDimension dimension, IntVarVector spans, IntVarVector total_slacks)
static void RoutingModel_SetFixedCostOfVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, int jarg3)
SWIGTYPE_p_std__vectorT_std__setT_operations_research__RoutingModel__VehicleTypeContainer__VehicleClassEntry_t_t? sorted_vehicle_classes_per_type
static global::System.IntPtr RoutingModel_NextVar(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
bool HasVehicleWithCostClassIndex(int cost_class_index)
static void RoutingModel_AddPickupAndDelivery(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
void SetArcCostEvaluatorOfVehicle(int evaluator_index, int vehicle)
static bool RoutingModel_IsEnd(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
int AddDisjunction(long[] indices, long penalty)
static void RoutingModel_AddTemporalTypeIncompatibility(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void RoutingModel_AddPickupAndDeliverySets(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static long RoutingModel_ComputeLowerBound(global::System.Runtime.InteropServices.HandleRef jarg1)
static int RoutingModel_GetVisitType(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
IntBoolPair AddMatrixDimension(long[][] values, long capacity, bool fix_start_cumul_to_zero, string name)
bool RoutesToAssignment(long[][] routes, bool ignore_inactive_indices, bool close_routes, Assignment assignment)
static global::System.IntPtr RoutingModel_VehicleVars(global::System.Runtime.InteropServices.HandleRef jarg1)
void SetFixedCostOfVehicle(long cost, int vehicle)
void SetAssignmentFromOtherModelAssignment(Assignment target_assignment, RoutingModel source_model, Assignment source_assignment)
static global::System.IntPtr RoutingModel_ReadAssignmentFromRoutes(global::System.Runtime.InteropServices.HandleRef jarg1, int len2_1, int[] len2_2, long[] jarg2, bool jarg3)
static void delete_RoutingModel(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_CompactAssignment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int RoutingModel_VehicleTypeContainer_Type(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
SWIGTYPE_p_std__vectorT_std__unique_ptrT_operations_research__RoutingModel__ResourceGroup_t_t GetResourceGroups()
static void RoutingModel_CloseVisitTypes(global::System.Runtime.InteropServices.HandleRef jarg1)
void AddLocalSearchFilter(LocalSearchFilter filter)
RoutingDimension GetDimensionOrDie(string dimension_name)
static void RoutingModel_AddLocalSearchFilter(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
RoutingModel.ResourceGroup GetResourceGroup(int rg_index)
static int RoutingModel_VehicleTypeContainer_NumTypes(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_GetDimensionOrDie(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2)
Assignment RestoreAssignment(Assignment solution)
void AssignmentToRoutes(Assignment assignment, long[][] routes)
static void RoutingModel_SetPrimaryConstrainedDimension(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2)
static long RoutingModel_GetDepot(global::System.Runtime.InteropServices.HandleRef jarg1)
void SetVisitType(long index, int type, int type_policy)
static void RoutingModel_AddRequiredTypeAlternativesWhenRemovingType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr RoutingModel_AddMatrixDimension(global::System.Runtime.InteropServices.HandleRef jarg1, int len2_1, int[] len2_2, long[] jarg2, long jarg3, bool jarg4, string jarg5)
static global::System.IntPtr RoutingModel_MakeSelfDependentDimensionFinalizer(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool RoutingModel_IsVehicleAllowedForIndex(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, long jarg3)
static global::System.IntPtr RoutingModel_Solve__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int RoutingModel_RegisterUnaryTransitVector(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2)
static void RoutingModel_AddSearchMonitor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int RoutingModel_GetDimensionResourceGroupIndex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void RoutingModel_SetAssignmentFromOtherModelAssignment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
void SetAmortizedCostFactorsOfVehicle(long linear_cost_factor, long quadratic_cost_factor, int vehicle)
Assignment ReadAssignmentFromRoutes(long[][] routes, bool ignore_inactive_indices)
long GetNumberOfDecisionsInFirstSolution(Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters)
static int RoutingModel_RegisterTransitMatrix(global::System.Runtime.InteropServices.HandleRef jarg1, int len2_1, int[] len2_2, long[] jarg2)
static int RoutingModel_Vehicles(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool RoutingModel_CheckLimit(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_GetRequiredTypeAlternativesWhenRemovingType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static long RoutingModel_GetArcCostForFirstSolution(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
int AddResource(RoutingModel.ResourceGroup.Attributes attributes, RoutingDimension dimension)
static void RoutingModel_SetVisitType(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, int jarg3, int jarg4)
void AddLocalSearchOperator(LocalSearchOperator ls_operator)
static void RoutingModel_SetAmortizedCostFactorsOfAllVehicles(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t GetRequiredTypeAlternativesWhenRemovingType(int type)
bool IsVehicleUsed(Assignment assignment, int vehicle)
static global::System.IntPtr RoutingModel_MakePathSpansAndTotalSlacks(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static int RoutingModel_Nodes(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RoutingModel_SetVehicleUsedWhenEmpty(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2, int jarg3)
void AddIntervalToAssignment(IntervalVar interval)
RoutingDimension GetMutableDimension(string dimension_name)
static void RoutingModel_SetAmortizedCostFactorsOfVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, int jarg4)
static global::System.IntPtr RoutingModel_PreAssignment(global::System.Runtime.InteropServices.HandleRef jarg1)
long GetArcCostForVehicle(long from_index, long to_index, long vehicle)
static int RoutingModel_GetVisitTypePolicy(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static long RoutingModel_GetNumberOfDecisionsInFirstSolution(global::System.Runtime.InteropServices.HandleRef jarg1, int search_parameters_size, byte[] jarg2)
static global::System.IntPtr RoutingModel_GetSingleNodesOfType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static string RoutingModel_GetPrimaryConstrainedDimension(global::System.Runtime.InteropServices.HandleRef jarg1)
static int RoutingModel_GetNonZeroCostClassesCount(global::System.Runtime.InteropServices.HandleRef jarg1)
int [] GetDimensionResourceGroupIndices(RoutingDimension dimension)
static global::System.IntPtr RoutingModel_GetMutableGlobalCumulMPOptimizer(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr RoutingModel_Nexts(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_AddConstantDimensionWithSlack(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, long jarg4, bool jarg5, string jarg6)
Assignment SolveFromAssignmentWithParameters(Assignment assignment, Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters)
static global::System.IntPtr RoutingModel_ApplyLocks(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2)
bool AddDimensionWithVehicleTransits(int[] evaluator_indices, long slack_max, long capacity, bool fix_start_cumul_to_zero, string name)
static bool RoutingModel_ResourceGroup_VehicleRequiresAResource(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool RoutingModel_CostsAreHomogeneousAcrossVehicles(global::System.Runtime.InteropServices.HandleRef jarg1)
static long RoutingModel_GetHomogeneousCost(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
static void delete_RoutingModel_ResourceGroup_Resource(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RoutingModel_SetFirstSolutionEvaluator(global::System.Runtime.InteropServices.HandleRef jarg1, LongLongToLong jarg2)
static global::System.IntPtr RoutingModel_GetVehicleTypeContainer(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RoutingModel_AddRequiredTypeAlternativesWhenAddingType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr RoutingModel_CompactAndCheckAssignment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
void SetFirstSolutionEvaluator(LongLongToLong evaluator)
static int RoutingModel_AddDisjunction__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2, long jarg3)
IntBoolPair AddConstantDimension(long value, long capacity, bool fix_start_cumul_to_zero, string name)
SWIGTYPE_p_operations_research__GlobalDimensionCumulOptimizer GetMutableGlobalCumulMPOptimizer(RoutingDimension dimension)
static int RoutingModel_GetMaximumNumberOfActiveVehicles(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RoutingModel_AddWeightedVariableMinimizedByFinalizer(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3)
void SetMaximumNumberOfActiveVehicles(int max_active_vehicles)
static void RoutingModel_CloseModel(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RoutingModel_VehicleTypeContainer_sorted_vehicle_classes_per_type_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
Assignment CompactAssignment(Assignment assignment)
static string RoutingModel_DebugOutputAssignment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3)
static global::System.IntPtr RoutingModel_AddConstantDimension(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, bool jarg4, string jarg5)
virtual void Dispose(bool disposing)
Definition: RoutingModel.cs:38
static global::System.IntPtr RoutingModel_RestoreAssignment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
void SetArcCostEvaluatorOfAllVehicles(int evaluator_index)
SWIGTYPE_p_std__vectorT_std__unique_ptrT_operations_research__GlobalDimensionCumulOptimizer_t_t GetGlobalDimensionCumulMPOptimizers()
bool AddDimension(int evaluator_index, long slack_max, long capacity, bool fix_start_cumul_to_zero, string name)
delegate long LongToLong(long t)
static bool RoutingModel_HasVehicleWithCostClassIndex(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr RoutingModel_GetDisjunctionIndices(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static int RoutingModel_ResourceGroup_Size(global::System.Runtime.InteropServices.HandleRef jarg1)
static long RoutingModel_Size(global::System.Runtime.InteropServices.HandleRef jarg1)
void AddHardTypeIncompatibility(int type1, int type2)
static void delete_RoutingModel_VehicleTypeContainer(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_RoutingModel_ResourceGroup(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RoutingModel_AddVariableTargetToFinalizer(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3)
static global::System.IntPtr RoutingModel_ResourceVar(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void RoutingModel_AddVariableMinimizedByFinalizer(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
void AddSoftSameVehicleConstraint(long[] indices, long cost)
static int RoutingModel_GetVehicleOfClass(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr RoutingModel_GetSameVehicleRequiredTypeAlternativesOfType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void RoutingModel_SetPickupAndDeliveryPolicyOfAllVehicles(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr RoutingModel_VehicleRouteConsideredVar(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
Assignment SolveFromAssignmentsWithParameters(SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t assignments, Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters, SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t solutions)
bool AddDimensionWithVehicleTransitAndCapacity(int[] evaluator_indices, long slack_max, long[] vehicle_capacities, bool fix_start_cumul_to_zero, string name)
static long RoutingModel_Next(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3)
void AddWeightedVariableMinimizedByFinalizer(IntVar var, long cost)
static void RoutingModel_IgnoreDisjunctionsAlreadyForcedToZero(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool RoutingModel_IsStart(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static global::System.IntPtr RoutingModel_ResourceGroup_GetAffectedDimensionIndices(global::System.Runtime.InteropServices.HandleRef jarg1)
void AddTemporalTypeIncompatibility(int type1, int type2)
static global::System.IntPtr RoutingModel_VehicleVar(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void RoutingModel_AddAtSolutionCallback(global::System.Runtime.InteropServices.HandleRef jarg1, VoidToVoid jarg2)
DecisionBuilder MakeGuidedSlackFinalizer(RoutingDimension dimension, LongToLong initializer)
static int RoutingModel_AddResourceGroup(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_GetDimensionResourceGroupIndices(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int RoutingModel_GetNumOfSingletonNodes(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_GetResourceGroups(global::System.Runtime.InteropServices.HandleRef jarg1)
static long RoutingModel_UnperformedPenalty(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
bool ArcIsMoreConstrainedThanArc(long from, long to1, long to2)
static bool RoutingModel_AddDimensionWithVehicleCapacity(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, long jarg3, int length4, long[] jarg4, bool jarg5, string jarg6)
bool AddDimensionWithVehicleCapacity(int evaluator_index, long slack_max, long[] vehicle_capacities, bool fix_start_cumul_to_zero, string name)
static void RoutingModel_SetMaximumNumberOfActiveVehicles(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr RoutingModel_GetGlobalDimensionCumulMPOptimizers(global::System.Runtime.InteropServices.HandleRef jarg1)
Parameters which have to be set when creating a RoutingModel.
IntBoolPair AddConstantDimensionWithSlack(long value, long capacity, long slack_max, bool fix_start_cumul_to_zero, string name)
RoutingModel(RoutingIndexManager index_manager)
static bool RoutingModel_IsVehicleUsedWhenEmpty(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void RoutingModel_SetAllowedVehiclesForIndex(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, int[] jarg2, long jarg3)
long GetHomogeneousCost(long from_index, long to_index)
long Next(Assignment assignment, long index)
static void delete_RoutingModel_ResourceGroup_Attributes(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_SolveFromAssignmentWithParameters(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int search_parameters_size, byte[] jarg3)
static global::System.IntPtr RoutingModel_ResourceVars(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr RoutingModel_SolveWithParameters(global::System.Runtime.InteropServices.HandleRef jarg1, int search_parameters_size, byte[] jarg2)
long GetArcCostForFirstSolution(long from_index, long to_index)
static bool RoutingModel_WriteAssignment(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2)
IntBoolPair AddVectorDimension(long[] values, long capacity, bool fix_start_cumul_to_zero, string name)
static bool RoutingModel_AddDimensionWithVehicleTransitAndCapacity(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, int[] jarg2, long jarg3, int length4, long[] jarg4, bool jarg5, string jarg6)
void SetVehicleUsedWhenEmpty(bool is_used, int vehicle)
RoutingModel.VehicleTypeContainer GetVehicleTypeContainer()
static global::System.IntPtr RoutingModel_ResourceGroup_GetResources(global::System.Runtime.InteropServices.HandleRef jarg1)
IntVar ResourceVar(int vehicle, int resource_group)
void SetPickupAndDeliveryPolicyOfVehicle(int policy, int vehicle)
static void RoutingModel_VehicleTypeContainer_VehicleClassEntry_vehicle_class_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void RoutingModel_VehicleTypeContainer_vehicles_per_vehicle_class_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void RoutingModel_AddVariableMaximizedByFinalizer(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static long RoutingModel_End(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr RoutingModel_ActiveVehicleVar(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool RoutingModel_AddDimension(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, long jarg3, long jarg4, bool jarg5, string jarg6)
static long RoutingModel_GetArcCostForVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, long jarg4)
static bool RoutingModel_ApplyLocksToAllVehicles(global::System.Runtime.InteropServices.HandleRef jarg1, int len2_1, int[] len2_2, long[] jarg2, bool jarg3)
static long RoutingModel_VehicleTypeContainer_VehicleClassEntry_fixed_cost_get(global::System.Runtime.InteropServices.HandleRef jarg1)
SWIGTYPE_p_absl__flat_hash_setT_operations_research__RoutingModel__DimensionIndex_t GetAffectedDimensionIndices()
static global::System.IntPtr RoutingModel_AddVectorDimension(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2, long jarg3, bool jarg4, string jarg5)
void AddRequiredTypeAlternativesWhenRemovingType(int dependent_type, SWIGTYPE_p_absl__flat_hash_setT_int_t required_type_alternatives)
static int RoutingModel_VehicleTypeContainer_VehicleClassEntry_vehicle_class_get(global::System.Runtime.InteropServices.HandleRef jarg1)
SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__ResourceGroup__Resource_t GetResources()
bool HasDimension(string dimension_name)
static global::System.IntPtr RoutingModel_GetRequiredTypeAlternativesWhenAddingType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr RoutingModel_solver(global::System.Runtime.InteropServices.HandleRef jarg1)
SWIGTYPE_p_absl__flat_hash_setT_int_t GetTemporalTypeIncompatibilitiesOfType(int type)
IntVarVector ResourceVars(int resource_group)
static global::System.IntPtr RoutingModel_GetTemporalTypeIncompatibilitiesOfType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool RoutingModel_ArcIsMoreConstrainedThanArc(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, long jarg4)
void SetPrimaryConstrainedDimension(string dimension_name)
static bool RoutingModel_HasTemporalTypeRequirements(global::System.Runtime.InteropServices.HandleRef jarg1)
void AddAtSolutionCallback(VoidToVoid callback)
void AddPickupAndDelivery(long pickup, long delivery)
static long RoutingModel_GetDisjunctionPenalty(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void RoutingModel_VehicleTypeContainer_VehicleClassEntry_fixed_cost_set(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
void CloseModelWithParameters(Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters)