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.2
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.Runtime.InteropServices;
15 using System.Collections;
16 using System.Collections.Generic;
17 
18 public partial class RoutingModel : global::System.IDisposable {
19  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
20  protected bool swigCMemOwn;
21 
22  internal RoutingModel(global::System.IntPtr cPtr, bool cMemoryOwn) {
23  swigCMemOwn = cMemoryOwn;
24  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
25  }
26 
27  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RoutingModel obj) {
28  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
29  }
30 
31  ~RoutingModel() {
32  Dispose(false);
33  }
34 
35  public void Dispose() {
36  Dispose(true);
37  global::System.GC.SuppressFinalize(this);
38  }
39 
40  protected virtual void Dispose(bool disposing) {
41  lock(this) {
42  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
43  if (swigCMemOwn) {
44  swigCMemOwn = false;
46  }
47  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
48  }
49  }
50  }
51 
52  // Keep reference to delegate to avoid GC to collect them early.
53  private List<LongToLong> unaryTransitCallbacks;
54  private LongToLong StoreLongToLong(LongToLong c) {
55  if (unaryTransitCallbacks == null)
56  unaryTransitCallbacks = new List<LongToLong>();
57  unaryTransitCallbacks.Add(c);
58  return c;
59  }
60 
61  private List<LongLongToLong> transitCallbacks;
62  private LongLongToLong StoreLongLongToLong(LongLongToLong c) {
63  if (transitCallbacks == null)
64  transitCallbacks = new List<LongLongToLong>();
65  transitCallbacks.Add(c);
66  return c;
67  }
68 
69  private List<VoidToVoid> solutionCallbacks;
70  private VoidToVoid StoreVoidToVoid(VoidToVoid c) {
71  if (solutionCallbacks == null)
72  solutionCallbacks = new List<VoidToVoid>();
73  solutionCallbacks.Add(c);
74  return c;
75  }
76 
77  public partial class VehicleTypeContainer : global::System.IDisposable {
78  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
79  protected bool swigCMemOwn;
80 
81  internal VehicleTypeContainer(global::System.IntPtr cPtr, bool cMemoryOwn) {
82  swigCMemOwn = cMemoryOwn;
83  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
84  }
85 
86  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VehicleTypeContainer obj) {
87  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
88  }
89 
91  Dispose(false);
92  }
93 
94  public void Dispose() {
95  Dispose(true);
96  global::System.GC.SuppressFinalize(this);
97  }
98 
99  protected virtual void Dispose(bool disposing) {
100  lock(this) {
101  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
102  if (swigCMemOwn) {
103  swigCMemOwn = false;
105  }
106  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
107  }
108  }
109  }
110 
111  public partial class VehicleClassEntry : global::System.IDisposable {
112  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
113  protected bool swigCMemOwn;
114 
115  internal VehicleClassEntry(global::System.IntPtr cPtr, bool cMemoryOwn) {
116  swigCMemOwn = cMemoryOwn;
117  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
118  }
119 
120  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VehicleClassEntry obj) {
121  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
122  }
123 
124  ~VehicleClassEntry() {
125  Dispose(false);
126  }
127 
128  public void Dispose() {
129  Dispose(true);
130  global::System.GC.SuppressFinalize(this);
131  }
132 
133  protected virtual void Dispose(bool disposing) {
134  lock(this) {
135  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
136  if (swigCMemOwn) {
137  swigCMemOwn = false;
139  }
140  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
141  }
142  }
143  }
144 
145  public int vehicle_class {
146  set {
148  }
149  get {
151  return ret;
152  }
153  }
154 
155  public long fixed_cost {
156  set {
158  }
159  get {
161  return ret;
162  }
163  }
164 
165  public VehicleClassEntry() : this(operations_research_constraint_solverPINVOKE.new_RoutingModel_VehicleTypeContainer_VehicleClassEntry(), true) {
166  }
167 
168  }
169 
170  public int NumTypes() {
172  return ret;
173  }
174 
175  public int Type(int vehicle) {
177  return ret;
178  }
179 
181  set {
183  }
184  get {
186  IntVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVector(cPtr, false);
187  return ret;
188  }
189  }
190 
191  public SWIGTYPE_p_std__vectorT_std__setT_operations_research__RoutingModel__VehicleTypeContainer__VehicleClassEntry_t_t sorted_vehicle_classes_per_type {
192  set {
193  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));
194  }
195  get {
197  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);
198  return ret;
199  }
200  }
201 
202  public SWIGTYPE_p_std__vectorT_std__dequeT_int_t_t vehicles_per_vehicle_class {
203  set {
204  operations_research_constraint_solverPINVOKE.RoutingModel_VehicleTypeContainer_vehicles_per_vehicle_class_set(swigCPtr, SWIGTYPE_p_std__vectorT_std__dequeT_int_t_t.getCPtr(value));
205  }
206  get {
208  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);
209  return ret;
210  }
211  }
212 
213  public VehicleTypeContainer() : this(operations_research_constraint_solverPINVOKE.new_RoutingModel_VehicleTypeContainer(), true) {
214  }
215 
216  }
217 
218  public static long kNoPenalty {
219  get {
221  return ret;
222  }
223  }
224 
225  public static int kNoDisjunction {
226  get {
228  }
229 
230  }
231 
232  public static int kNoDimension {
233  get {
235  }
236 
237  }
238 
239  public RoutingModel(RoutingIndexManager index_manager) : this(operations_research_constraint_solverPINVOKE.new_RoutingModel__SWIG_0(RoutingIndexManager.getCPtr(index_manager)), true) {
241  }
242 
243  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) {
245  }
246 
247  public int RegisterUnaryTransitVector( long[] values) {
249  return ret;
250  }
251 
252  public int RegisterUnaryTransitCallback( LongToLong callback) {
253  int ret = operations_research_constraint_solverPINVOKE.RoutingModel_RegisterUnaryTransitCallback(swigCPtr, StoreLongToLong(callback) );
254  return ret;
255  }
256 
259  return ret;
260  }
261 
262  public int RegisterTransitMatrix( long[][] values) {
264  values.GetLength(0),
265  NestedArrayHelper.GetArraySecondSize(values),
266  NestedArrayHelper.GetFlatArray(values)
267 );
268  return ret;
269  }
270 
271  public int RegisterTransitCallback( LongLongToLong callback) {
272  int ret = operations_research_constraint_solverPINVOKE.RoutingModel_RegisterTransitCallback(swigCPtr, StoreLongLongToLong(callback) );
273  return ret;
274  }
275 
277  int ret = operations_research_constraint_solverPINVOKE.RoutingModel_RegisterPositiveTransitCallback(swigCPtr, StoreLongLongToLong(callback) );
278  return ret;
279  }
280 
281  public bool AddDimension(int evaluator_index, long slack_max, long capacity, bool fix_start_cumul_to_zero, string name) {
282  bool ret = operations_research_constraint_solverPINVOKE.RoutingModel_AddDimension(swigCPtr, evaluator_index, slack_max, capacity, fix_start_cumul_to_zero, name);
284  return ret;
285  }
286 
287  public bool AddDimensionWithVehicleTransits( int[] evaluator_indices, long slack_max, long capacity, bool fix_start_cumul_to_zero, string name) {
288  bool ret = operations_research_constraint_solverPINVOKE.RoutingModel_AddDimensionWithVehicleTransits(swigCPtr, evaluator_indices.Length, evaluator_indices , slack_max, capacity, fix_start_cumul_to_zero, name);
290  return ret;
291  }
292 
293  public bool AddDimensionWithVehicleCapacity(int evaluator_index, long slack_max, long[] vehicle_capacities, bool fix_start_cumul_to_zero, string name) {
294  bool ret = operations_research_constraint_solverPINVOKE.RoutingModel_AddDimensionWithVehicleCapacity(swigCPtr, evaluator_index, slack_max, vehicle_capacities.Length, vehicle_capacities , fix_start_cumul_to_zero, name);
296  return ret;
297  }
298 
299  public bool AddDimensionWithVehicleTransitAndCapacity( int[] evaluator_indices, long slack_max, long[] vehicle_capacities, bool fix_start_cumul_to_zero, string name) {
300  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);
302  return ret;
303  }
304 
305  public IntBoolPair AddConstantDimensionWithSlack(long value, long capacity, long slack_max, bool fix_start_cumul_to_zero, string name) {
306  IntBoolPair ret = new IntBoolPair(operations_research_constraint_solverPINVOKE.RoutingModel_AddConstantDimensionWithSlack(swigCPtr, value, capacity, slack_max, fix_start_cumul_to_zero, name), true);
308  return ret;
309  }
310 
311  public IntBoolPair AddConstantDimension(long value, long capacity, bool fix_start_cumul_to_zero, string name) {
312  IntBoolPair ret = new IntBoolPair(operations_research_constraint_solverPINVOKE.RoutingModel_AddConstantDimension(swigCPtr, value, capacity, fix_start_cumul_to_zero, name), true);
314  return ret;
315  }
316 
317  public IntBoolPair AddVectorDimension( long[] values, long capacity, bool fix_start_cumul_to_zero, string name) {
318  IntBoolPair ret = new IntBoolPair(operations_research_constraint_solverPINVOKE.RoutingModel_AddVectorDimension(swigCPtr, values.Length, values , capacity, fix_start_cumul_to_zero, name), true);
320  return ret;
321  }
322 
323  public IntBoolPair AddMatrixDimension( long[][] values, long capacity, bool fix_start_cumul_to_zero, string name) {
325  values.GetLength(0),
326  NestedArrayHelper.GetArraySecondSize(values),
327  NestedArrayHelper.GetFlatArray(values)
328 , capacity, fix_start_cumul_to_zero, name), true);
330  return ret;
331  }
332 
334  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_MakePathSpansAndTotalSlacks(swigCPtr, RoutingDimension.getCPtr(dimension), IntVarVector.getCPtr(spans), IntVarVector.getCPtr(total_slacks));
335  Constraint ret = (cPtr == global::System.IntPtr.Zero) ? null : new Constraint(cPtr, false);
337  return ret;
338  }
339 
340  public bool HasDimension(string dimension_name) {
341  bool ret = operations_research_constraint_solverPINVOKE.RoutingModel_HasDimension(swigCPtr, dimension_name);
343  return ret;
344  }
345 
346  public RoutingDimension GetDimensionOrDie(string dimension_name) {
349  return ret;
350  }
351 
352  public RoutingDimension GetMutableDimension(string dimension_name) {
354  RoutingDimension ret = (cPtr == global::System.IntPtr.Zero) ? null : new RoutingDimension(cPtr, false);
356  return ret;
357  }
358 
359  public void SetPrimaryConstrainedDimension(string dimension_name) {
362  }
363 
366  return ret;
367  }
368 
369  public int AddDisjunction( long[] indices, long penalty, long max_cardinality) {
370  return operations_research_constraint_solverPINVOKE.RoutingModel_AddDisjunction__SWIG_0(swigCPtr, indices.Length, indices , penalty, max_cardinality);
371 }
372 
373  public int AddDisjunction( long[] indices, long penalty) {
374  return operations_research_constraint_solverPINVOKE.RoutingModel_AddDisjunction__SWIG_1(swigCPtr, indices.Length, indices , penalty);
375 }
376 
377  public int AddDisjunction( long[] indices) {
379 }
380 
381  public int[] GetDisjunctionIndices(long index) {
383  IntVector tmpVector = null;
384  if (cPtr != global::System.IntPtr.Zero) {
385  tmpVector = new IntVector(cPtr, true);
386  int[] outArray = new int[tmpVector.Count];
387  tmpVector.CopyTo(outArray);
388  return outArray;
389  }
390  return null;
391 }
392 
393  public long[] GetDisjunctionIndices(int index) {
395  Int64Vector tmpVector = null;
396  if (cPtr != global::System.IntPtr.Zero) {
397  tmpVector = new Int64Vector(cPtr, true);
398  long[] outArray = new long[tmpVector.Count];
399  tmpVector.CopyTo(outArray);
400  return outArray;
401  }
402  return null;
403 }
404 
405  public long GetDisjunctionPenalty(int index) {
407  return ret;
408  }
409 
410  public long GetDisjunctionMaxCardinality(int index) {
412  return ret;
413  }
414 
415  public int GetNumberOfDisjunctions() {
417  return ret;
418  }
419 
422  }
423 
424  public void AddSoftSameVehicleConstraint( long[] indices, long cost) {
426  }
427 
428  public void SetAllowedVehiclesForIndex( int[] vehicles, long index) {
430  }
431 
432  public bool IsVehicleAllowedForIndex(int vehicle, long index) {
434  return ret;
435  }
436 
437  public void AddPickupAndDelivery(long pickup, long delivery) {
439  }
440 
441  public void AddPickupAndDeliverySets(int pickup_disjunction, int delivery_disjunction) {
442  operations_research_constraint_solverPINVOKE.RoutingModel_AddPickupAndDeliverySets(swigCPtr, pickup_disjunction, delivery_disjunction);
443  }
444 
445  public void SetPickupAndDeliveryPolicyOfAllVehicles(int policy) {
447  }
448 
449  public void SetPickupAndDeliveryPolicyOfVehicle(int policy, int vehicle) {
451  }
452 
453  public int GetPickupAndDeliveryPolicyOfVehicle(int vehicle) {
455  return ret;
456  }
457 
458  public int GetNumOfSingletonNodes() {
460  return ret;
461  }
462 
463  public void SetVisitType(long index, int type, int type_policy) {
465  }
466 
467  public int GetVisitType(long index) {
469  return ret;
470  }
471 
472  public int[] GetSingleNodesOfType(int type) {
474  IntVector tmpVector = null;
475  if (cPtr != global::System.IntPtr.Zero) {
476  tmpVector = new IntVector(cPtr, true);
477  int[] outArray = new int[tmpVector.Count];
478  tmpVector.CopyTo(outArray);
479  return outArray;
480  }
481  return null;
482 }
483 
484  public int[] GetPairIndicesOfType(int type) {
486  IntVector tmpVector = null;
487  if (cPtr != global::System.IntPtr.Zero) {
488  tmpVector = new IntVector(cPtr, true);
489  int[] outArray = new int[tmpVector.Count];
490  tmpVector.CopyTo(outArray);
491  return outArray;
492  }
493  return null;
494 }
495 
496  public int GetVisitTypePolicy(long index) {
498  return ret;
499  }
500 
501  public void CloseVisitTypes() {
503  }
504 
505  public int GetNumberOfVisitTypes() {
507  return ret;
508  }
509 
510  public void AddHardTypeIncompatibility(int type1, int type2) {
512  }
513 
514  public void AddTemporalTypeIncompatibility(int type1, int type2) {
516  }
517 
518  public SWIGTYPE_p_absl__flat_hash_setT_int_t GetTemporalTypeIncompatibilitiesOfType(int type) {
519  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);
520  return ret;
521  }
522 
525  return ret;
526  }
527 
530  return ret;
531  }
532 
533  public void AddRequiredTypeAlternativesWhenAddingType(int dependent_type, SWIGTYPE_p_absl__flat_hash_setT_int_t required_type_alternatives) {
534  operations_research_constraint_solverPINVOKE.RoutingModel_AddRequiredTypeAlternativesWhenAddingType(swigCPtr, dependent_type, SWIGTYPE_p_absl__flat_hash_setT_int_t.getCPtr(required_type_alternatives));
536  }
537 
538  public void AddRequiredTypeAlternativesWhenRemovingType(int dependent_type, SWIGTYPE_p_absl__flat_hash_setT_int_t required_type_alternatives) {
539  operations_research_constraint_solverPINVOKE.RoutingModel_AddRequiredTypeAlternativesWhenRemovingType(swigCPtr, dependent_type, SWIGTYPE_p_absl__flat_hash_setT_int_t.getCPtr(required_type_alternatives));
541  }
542 
543  public SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t GetSameVehicleRequiredTypeAlternativesOfType(int type) {
544  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);
545  return ret;
546  }
547 
548  public SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t GetRequiredTypeAlternativesWhenAddingType(int type) {
549  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);
550  return ret;
551  }
552 
553  public SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t GetRequiredTypeAlternativesWhenRemovingType(int type) {
554  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);
555  return ret;
556  }
557 
560  return ret;
561  }
562 
565  return ret;
566  }
567 
568  public long UnperformedPenalty(long var_index) {
570  return ret;
571  }
572 
573  public long UnperformedPenaltyOrValue(long default_value, long var_index) {
574  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_UnperformedPenaltyOrValue(swigCPtr, default_value, var_index);
575  return ret;
576  }
577 
578  public long GetDepot() {
580  return ret;
581  }
582 
583  public void SetMaximumNumberOfActiveVehicles(int max_active_vehicles) {
585  }
586 
589  return ret;
590  }
591 
592  public void SetArcCostEvaluatorOfAllVehicles(int evaluator_index) {
594  }
595 
596  public void SetArcCostEvaluatorOfVehicle(int evaluator_index, int vehicle) {
598  }
599 
600  public void SetFixedCostOfAllVehicles(long cost) {
602  }
603 
604  public void SetFixedCostOfVehicle(long cost, int vehicle) {
606  }
607 
608  public long GetFixedCostOfVehicle(int vehicle) {
610  return ret;
611  }
612 
613  public void SetAmortizedCostFactorsOfAllVehicles(long linear_cost_factor, long quadratic_cost_factor) {
614  operations_research_constraint_solverPINVOKE.RoutingModel_SetAmortizedCostFactorsOfAllVehicles(swigCPtr, linear_cost_factor, quadratic_cost_factor);
615  }
616 
617  public void SetAmortizedCostFactorsOfVehicle(long linear_cost_factor, long quadratic_cost_factor, int vehicle) {
618  operations_research_constraint_solverPINVOKE.RoutingModel_SetAmortizedCostFactorsOfVehicle(swigCPtr, linear_cost_factor, quadratic_cost_factor, vehicle);
619  }
620 
623  Int64Vector tmpVector = null;
624  if (cPtr != global::System.IntPtr.Zero) {
625  tmpVector = new Int64Vector(cPtr, true);
626  long[] outArray = new long[tmpVector.Count];
627  tmpVector.CopyTo(outArray);
628  return outArray;
629  }
630  return null;
631 }
632 
635  Int64Vector tmpVector = null;
636  if (cPtr != global::System.IntPtr.Zero) {
637  tmpVector = new Int64Vector(cPtr, true);
638  long[] outArray = new long[tmpVector.Count];
639  tmpVector.CopyTo(outArray);
640  return outArray;
641  }
642  return null;
643 }
644 
645  public void ConsiderEmptyRouteCostsForVehicle(bool consider_costs, int vehicle) {
647  }
648 
649  public bool AreEmptyRouteCostsConsideredForVehicle(int vehicle) {
651  return ret;
652  }
653 
654  public void SetFirstSolutionEvaluator( LongLongToLong evaluator) {
656  }
657 
658  public void AddLocalSearchOperator(LocalSearchOperator ls_operator) {
660  }
661 
662  public void AddSearchMonitor(SearchMonitor monitor) {
664  }
665 
666  public void AddAtSolutionCallback( VoidToVoid callback) {
668  }
669 
672  }
673 
676  }
677 
678  public void AddWeightedVariableMinimizedByFinalizer(IntVar var, long cost) {
680  }
681 
682  public void AddVariableTargetToFinalizer(IntVar var, long target) {
684  }
685 
686  public void CloseModel() {
688  }
689 
691  operations_research_constraint_solverPINVOKE.RoutingModel_CloseModelWithParameters(swigCPtr, search_parameters.CalculateSize(), ProtoHelper.ProtoToByteArray(search_parameters));
692  }
693 
694  public Assignment Solve(Assignment assignment) {
696  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
697  return ret;
698  }
699 
700  public Assignment Solve() {
702  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
703  return ret;
704  }
705 
707  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_SolveWithParameters(swigCPtr, search_parameters.CalculateSize(), ProtoHelper.ProtoToByteArray(search_parameters));
708  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
709  return ret;
710  }
711 
713  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_SolveFromAssignmentWithParameters(swigCPtr, Assignment.getCPtr(assignment), search_parameters.CalculateSize(), ProtoHelper.ProtoToByteArray(search_parameters));
714  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
715  return ret;
716  }
717 
718  public void SetAssignmentFromOtherModelAssignment(Assignment target_assignment, RoutingModel source_model, Assignment source_assignment) {
719  operations_research_constraint_solverPINVOKE.RoutingModel_SetAssignmentFromOtherModelAssignment(swigCPtr, Assignment.getCPtr(target_assignment), RoutingModel.getCPtr(source_model), Assignment.getCPtr(source_assignment));
720  }
721 
722  public long ComputeLowerBound() {
724  return ret;
725  }
726 
727  public int GetStatus() {
729  return ret;
730  }
731 
732  public IntVar ApplyLocks( long[] locks) {
733  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_ApplyLocks(swigCPtr, locks.Length, locks );
734  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
735  return ret;
736  }
737 
738  public bool ApplyLocksToAllVehicles( long[][] locks, bool close_routes) {
740  locks.GetLength(0),
741  NestedArrayHelper.GetArraySecondSize(locks),
742  NestedArrayHelper.GetFlatArray(locks)
743 , close_routes);
744  return ret;
745  }
746 
749  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
750  return ret;
751  }
752 
755  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
756  return ret;
757  }
758 
759  public bool WriteAssignment(string file_name) {
762  return ret;
763  }
764 
765  public Assignment ReadAssignment(string file_name) {
767  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
769  return ret;
770  }
771 
774  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
776  return ret;
777  }
778 
779  public Assignment ReadAssignmentFromRoutes( long[][] routes, bool ignore_inactive_indices) {
781  routes.GetLength(0),
782  NestedArrayHelper.GetArraySecondSize(routes),
783  NestedArrayHelper.GetFlatArray(routes)
784 , ignore_inactive_indices);
785  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
786  return ret;
787  }
788 
789  public bool RoutesToAssignment( long[][] routes, bool ignore_inactive_indices, bool close_routes, Assignment assignment) {
791  routes.GetLength(0),
792  NestedArrayHelper.GetArraySecondSize(routes),
793  NestedArrayHelper.GetFlatArray(routes)
794 , ignore_inactive_indices, close_routes, Assignment.getCPtr(assignment));
795  return ret;
796  }
797 
798  public void AssignmentToRoutes(Assignment assignment, long[][] routes) {
800  routes.GetLength(0),
801  NestedArrayHelper.GetArraySecondSize(routes),
802  NestedArrayHelper.GetFlatArray(routes)
803 );
805  }
806 
809  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
811  return ret;
812  }
813 
816  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
818  return ret;
819  }
820 
821  public void AddToAssignment(IntVar var) {
823  }
824 
825  public void AddIntervalToAssignment(IntervalVar interval) {
827  }
828 
831  }
832 
833  public long Start(int vehicle) {
835  return ret;
836  }
837 
838  public long End(int vehicle) {
840  return ret;
841  }
842 
843  public bool IsStart(long index) {
845  return ret;
846  }
847 
848  public bool IsEnd(long index) {
850  return ret;
851  }
852 
853  public int VehicleIndex(long index) {
855  return ret;
856  }
857 
858  public long Next(Assignment assignment, long index) {
859  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_Next(swigCPtr, Assignment.getCPtr(assignment), index);
861  return ret;
862  }
863 
864  public bool IsVehicleUsed(Assignment assignment, int vehicle) {
865  bool ret = operations_research_constraint_solverPINVOKE.RoutingModel_IsVehicleUsed(swigCPtr, Assignment.getCPtr(assignment), vehicle);
867  return ret;
868  }
869 
870  public IntVarVector Nexts() {
872  return ret;
873  }
874 
877  return ret;
878  }
879 
880  public IntVar NextVar(long index) {
882  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
883  return ret;
884  }
885 
886  public IntVar ActiveVar(long index) {
888  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
889  return ret;
890  }
891 
892  public IntVar ActiveVehicleVar(int vehicle) {
894  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
895  return ret;
896  }
897 
898  public IntVar VehicleCostsConsideredVar(int vehicle) {
900  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
901  return ret;
902  }
903 
904  public IntVar VehicleVar(long index) {
906  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
907  return ret;
908  }
909 
910  public IntVar CostVar() {
912  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
913  return ret;
914  }
915 
916  public long GetArcCostForVehicle(long from_index, long to_index, long vehicle) {
917  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetArcCostForVehicle(swigCPtr, from_index, to_index, vehicle);
918  return ret;
919  }
920 
923  return ret;
924  }
925 
926  public long GetHomogeneousCost(long from_index, long to_index) {
927  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetHomogeneousCost(swigCPtr, from_index, to_index);
928  return ret;
929  }
930 
931  public long GetArcCostForFirstSolution(long from_index, long to_index) {
933  return ret;
934  }
935 
936  public long GetArcCostForClass(long from_index, long to_index, long cost_class_index) {
937  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetArcCostForClass(swigCPtr, from_index, to_index, cost_class_index);
938  return ret;
939  }
940 
941  public int GetCostClassIndexOfVehicle(long vehicle) {
943 }
944 
945  public bool HasVehicleWithCostClassIndex(int cost_class_index) {
947  return ret;
948  }
949 
950  public int GetCostClassesCount() {
952  return ret;
953  }
954 
957  return ret;
958  }
959 
960  public int GetVehicleClassIndexOfVehicle(long vehicle) {
962 }
963 
964  public int GetVehicleClassesCount() {
966  return ret;
967  }
968 
969  public int[] GetSameVehicleIndicesOfIndex(int node) {
971  IntVector tmpVector = null;
972  if (cPtr != global::System.IntPtr.Zero) {
973  tmpVector = new IntVector(cPtr, true);
974  int[] outArray = new int[tmpVector.Count];
975  tmpVector.CopyTo(outArray);
976  return outArray;
977  }
978  return null;
979 }
980 
983  return ret;
984  }
985 
986  public bool ArcIsMoreConstrainedThanArc(long from, long to1, long to2) {
988  return ret;
989  }
990 
991  public string DebugOutputAssignment(Assignment solution_assignment, string dimension_to_print) {
992  string ret = operations_research_constraint_solverPINVOKE.RoutingModel_DebugOutputAssignment(swigCPtr, Assignment.getCPtr(solution_assignment), dimension_to_print);
994  return ret;
995  }
996 
997  public Solver solver() {
999  Solver ret = (cPtr == global::System.IntPtr.Zero) ? null : new Solver(cPtr, false);
1000  return ret;
1001  }
1002 
1003  public bool CheckLimit() {
1005  return ret;
1006  }
1007 
1008  public int Nodes() {
1010  return ret;
1011  }
1012 
1013  public int Vehicles() {
1015  return ret;
1016  }
1017 
1018  public long Size() {
1020  return ret;
1021  }
1022 
1024  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetNumberOfDecisionsInFirstSolution(swigCPtr, search_parameters.CalculateSize(), ProtoHelper.ProtoToByteArray(search_parameters));
1025  return ret;
1026  }
1027 
1029  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetNumberOfRejectsInFirstSolution(swigCPtr, search_parameters.CalculateSize(), ProtoHelper.ProtoToByteArray(search_parameters));
1030  return ret;
1031  }
1032 
1033  public bool IsMatchingModel() {
1035  return ret;
1036  }
1037 
1039  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_MakeGuidedSlackFinalizer(swigCPtr, RoutingDimension.getCPtr(dimension), StoreLongToLong(initializer) );
1040  DecisionBuilder ret = (cPtr == global::System.IntPtr.Zero) ? null : new DecisionBuilder(cPtr, false);
1041  return ret;
1042  }
1043 
1046  DecisionBuilder ret = (cPtr == global::System.IntPtr.Zero) ? null : new DecisionBuilder(cPtr, false);
1047  return ret;
1048  }
1049 
1050  // Status
1056 
1057  // PickupAndDeliveryPolicy
1061 
1062  // VisitTypePolicy
1067 
1068 }
1069 
1070 }
using System
Definition: Program.cs:14
Parameters which have to be set when creating a RoutingModel.
SWIGTYPE_p_std__vectorT_std__setT_operations_research__RoutingModel__VehicleTypeContainer__VehicleClassEntry_t_t? sorted_vehicle_classes_per_type
SWIGTYPE_p_std__vectorT_std__dequeT_int_t_t? vehicles_per_vehicle_class
void AddSearchMonitor(SearchMonitor monitor)
void SetVisitType(long index, int type, int type_policy)
void SetFixedCostOfVehicle(long cost, int vehicle)
Assignment CompactAndCheckAssignment(Assignment assignment)
bool HasVehicleWithCostClassIndex(int cost_class_index)
string DebugOutputAssignment(Assignment solution_assignment, string dimension_to_print)
Assignment RestoreAssignment(Assignment solution)
Assignment Solve(Assignment assignment)
int AddDisjunction(long[] indices, long penalty)
void AddLocalSearchOperator(LocalSearchOperator ls_operator)
void SetPickupAndDeliveryPolicyOfVehicle(int policy, int vehicle)
RoutingModel(RoutingIndexManager index_manager, Google.OrTools.ConstraintSolver.RoutingModelParameters parameters)
RoutingDimension GetMutableDimension(string dimension_name)
Assignment CompactAssignment(Assignment assignment)
void AddRequiredTypeAlternativesWhenRemovingType(int dependent_type, SWIGTYPE_p_absl__flat_hash_setT_int_t required_type_alternatives)
static readonly int TYPE_SIMULTANEOUSLY_ADDED_AND_REMOVED
void AddIntervalToAssignment(IntervalVar interval)
long GetNumberOfRejectsInFirstSolution(Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters)
SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t GetRequiredTypeAlternativesWhenAddingType(int type)
int RegisterPositiveTransitCallback(LongLongToLong callback)
Assignment SolveFromAssignmentWithParameters(Assignment assignment, Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters)
void AddLocalSearchFilter(LocalSearchFilter filter)
long GetArcCostForVehicle(long from_index, long to_index, long vehicle)
void SetFirstSolutionEvaluator(LongLongToLong evaluator)
void SetAllowedVehiclesForIndex(int[] vehicles, long index)
int RegisterUnaryTransitCallback(LongToLong callback)
void AddWeightedVariableMinimizedByFinalizer(IntVar var, long cost)
bool AddDimensionWithVehicleTransits(int[] evaluator_indices, long slack_max, long capacity, bool fix_start_cumul_to_zero, string name)
bool HasDimension(string dimension_name)
bool ArcIsMoreConstrainedThanArc(long from, long to1, long to2)
long GetArcCostForFirstSolution(long from_index, long to_index)
IntBoolPair AddVectorDimension(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)
void AddTemporalTypeIncompatibility(int type1, int type2)
bool AddDimensionWithVehicleCapacity(int evaluator_index, long slack_max, long[] vehicle_capacities, bool fix_start_cumul_to_zero, string name)
long GetHomogeneousCost(long from_index, long to_index)
Assignment ReadAssignmentFromRoutes(long[][] routes, bool ignore_inactive_indices)
void AddHardTypeIncompatibility(int type1, int type2)
void ConsiderEmptyRouteCostsForVehicle(bool consider_costs, int vehicle)
void AssignmentToRoutes(Assignment assignment, long[][] routes)
void SetMaximumNumberOfActiveVehicles(int max_active_vehicles)
void AddSoftSameVehicleConstraint(long[] indices, long cost)
virtual void Dispose(bool disposing)
Definition: RoutingModel.cs:40
Assignment SolveWithParameters(Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters)
void AddVariableTargetToFinalizer(IntVar var, long target)
RoutingModel(RoutingIndexManager index_manager)
void SetAmortizedCostFactorsOfAllVehicles(long linear_cost_factor, long quadratic_cost_factor)
bool IsVehicleAllowedForIndex(int vehicle, long index)
DecisionBuilder MakeGuidedSlackFinalizer(RoutingDimension dimension, LongToLong initializer)
void CloseModelWithParameters(Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters)
void AddPickupAndDeliverySets(int pickup_disjunction, int delivery_disjunction)
void AddAtSolutionCallback(VoidToVoid callback)
DecisionBuilder MakeSelfDependentDimensionFinalizer(RoutingDimension dimension)
void SetAmortizedCostFactorsOfVehicle(long linear_cost_factor, long quadratic_cost_factor, int vehicle)
long GetNumberOfDecisionsInFirstSolution(Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters)
IntBoolPair AddConstantDimension(long value, long capacity, bool fix_start_cumul_to_zero, string name)
SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t GetRequiredTypeAlternativesWhenRemovingType(int type)
int RegisterPositiveUnaryTransitCallback(LongToLong callback)
bool AddDimensionWithVehicleTransitAndCapacity(int[] evaluator_indices, long slack_max, long[] vehicle_capacities, bool fix_start_cumul_to_zero, string name)
void SetArcCostEvaluatorOfAllVehicles(int evaluator_index)
RoutingDimension GetDimensionOrDie(string dimension_name)
bool AddDimension(int evaluator_index, long slack_max, long capacity, bool fix_start_cumul_to_zero, string name)
IntBoolPair AddMatrixDimension(long[][] values, long capacity, bool fix_start_cumul_to_zero, string name)
SWIGTYPE_p_absl__flat_hash_setT_int_t GetTemporalTypeIncompatibilitiesOfType(int type)
IntBoolPair AddConstantDimensionWithSlack(long value, long capacity, long slack_max, bool fix_start_cumul_to_zero, string name)
Constraint MakePathSpansAndTotalSlacks(RoutingDimension dimension, IntVarVector spans, IntVarVector total_slacks)
void AddPickupAndDelivery(long pickup, long delivery)
RoutingModel.VehicleTypeContainer GetVehicleTypeContainer()
bool IsVehicleUsed(Assignment assignment, int vehicle)
long UnperformedPenaltyOrValue(long default_value, long var_index)
SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t GetSameVehicleRequiredTypeAlternativesOfType(int type)
void AddRequiredTypeAlternativesWhenAddingType(int dependent_type, SWIGTYPE_p_absl__flat_hash_setT_int_t required_type_alternatives)
int AddDisjunction(long[] indices, long penalty, long max_cardinality)
long GetArcCostForClass(long from_index, long to_index, long cost_class_index)
long Next(Assignment assignment, long index)
void SetArcCostEvaluatorOfVehicle(int evaluator_index, int vehicle)
bool AreEmptyRouteCostsConsideredForVehicle(int vehicle)
void SetPrimaryConstrainedDimension(string dimension_name)
void SetAssignmentFromOtherModelAssignment(Assignment target_assignment, RoutingModel source_model, Assignment source_assignment)
bool ApplyLocksToAllVehicles(long[][] locks, bool close_routes)
Assignment ReadAssignment(string file_name)
int RegisterTransitCallback(LongLongToLong callback)
Parameters defining the search used to solve vehicle routing problems.
static int RoutingModel_GetNumOfSingletonNodes(global::System.Runtime.InteropServices.HandleRef jarg1)
static int RoutingModel_GetNonZeroCostClassesCount(global::System.Runtime.InteropServices.HandleRef jarg1)
static int RoutingModel_RegisterUnaryTransitCallback(global::System.Runtime.InteropServices.HandleRef jarg1, LongToLong jarg2)
static void RoutingModel_AddLocalSearchFilter(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr RoutingModel_GetRequiredTypeAlternativesWhenAddingType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void RoutingModel_SetFixedCostOfAllVehicles(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void RoutingModel_AddHardTypeIncompatibility(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
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)
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_VehicleVar(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void delete_RoutingModel(global::System.Runtime.InteropServices.HandleRef jarg1)
static int RoutingModel_RegisterUnaryTransitVector(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2)
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 int RoutingModel_GetPickupAndDeliveryPolicyOfVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void RoutingModel_ConsiderEmptyRouteCostsForVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2, int jarg3)
static global::System.IntPtr RoutingModel_GetAmortizedQuadraticCostFactorOfVehicles(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RoutingModel_CloseModel(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)
static void RoutingModel_AddToAssignment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int RoutingModel_GetCostClassIndexOfVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void RoutingModel_SetPrimaryConstrainedDimension(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2)
static int RoutingModel_AddDisjunction__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2, long jarg3)
static void RoutingModel_AddVariableMaximizedByFinalizer(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr RoutingModel_GetSameVehicleIndicesOfIndex(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr RoutingModel_GetDisjunctionIndices__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void RoutingModel_AddPickupAndDelivery(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
static int RoutingModel_RegisterTransitMatrix(global::System.Runtime.InteropServices.HandleRef jarg1, int len2_1, int[] len2_2, long[] jarg2)
static void RoutingModel_SetMaximumNumberOfActiveVehicles(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_HasTemporalTypeIncompatibilities(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_GetPairIndicesOfType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr RoutingModel_CompactAssignment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static long RoutingModel_Size(global::System.Runtime.InteropServices.HandleRef jarg1)
static int RoutingModel_VehicleIndex(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void RoutingModel_AddAtSolutionCallback(global::System.Runtime.InteropServices.HandleRef jarg1, VoidToVoid jarg2)
static global::System.IntPtr RoutingModel_GetDisjunctionIndices__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
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_VehicleTypeContainer_Type(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int RoutingModel_GetVisitTypePolicy(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static long RoutingModel_UnperformedPenaltyOrValue(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
static global::System.IntPtr RoutingModel_PreAssignment(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_RestoreAssignment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int RoutingModel_GetVisitType(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static global::System.IntPtr RoutingModel_GetTemporalTypeIncompatibilitiesOfType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void RoutingModel_SetFixedCostOfVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, int jarg3)
static int RoutingModel_AddDisjunction__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2)
static long RoutingModel_GetHomogeneousCost(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
static long RoutingModel_Start(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int RoutingModel_VehicleTypeContainer_NumTypes(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_GetMutableDimension(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2)
static void RoutingModel_AddTemporalTypeIncompatibility(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void RoutingModel_VehicleTypeContainer_type_index_of_vehicle_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool RoutingModel_IsMatchingModel(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_CostVar(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RoutingModel_AddLocalSearchOperator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static long RoutingModel_GetArcCostForFirstSolution(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
static global::System.IntPtr RoutingModel_VehicleTypeContainer_sorted_vehicle_classes_per_type_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RoutingModel_SetPickupAndDeliveryPolicyOfVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static int RoutingModel_GetStatus(global::System.Runtime.InteropServices.HandleRef jarg1)
static int RoutingModel_GetCostClassesCount(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool RoutingModel_AddDimensionWithVehicleCapacity(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, long jarg3, int length4, long[] jarg4, bool jarg5, string jarg6)
static global::System.IntPtr RoutingModel_AddVectorDimension(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2, long jarg3, bool jarg4, string jarg5)
static void RoutingModel_SetArcCostEvaluatorOfVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static bool RoutingModel_AddDimension(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, long jarg3, long jarg4, bool jarg5, string jarg6)
static void RoutingModel_SetPickupAndDeliveryPolicyOfAllVehicles(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr RoutingModel_Nexts(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool RoutingModel_ArcIsMoreConstrainedThanArc(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, long jarg4)
static global::System.IntPtr RoutingModel_ReadAssignmentFromRoutes(global::System.Runtime.InteropServices.HandleRef jarg1, int len2_1, int[] len2_2, long[] jarg2, bool jarg3)
static void RoutingModel_CloseVisitTypes(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_MakeGuidedSlackFinalizer(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, LongToLong jarg3)
static int RoutingModel_RegisterTransitCallback(global::System.Runtime.InteropServices.HandleRef jarg1, LongLongToLong jarg2)
static global::System.IntPtr RoutingModel_ApplyLocks(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2)
static void RoutingModel_SetFirstSolutionEvaluator(global::System.Runtime.InteropServices.HandleRef jarg1, LongLongToLong jarg2)
static void RoutingModel_AddRequiredTypeAlternativesWhenAddingType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr RoutingModel_MutablePreAssignment(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_AddConstantDimension(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, bool jarg4, string jarg5)
static long RoutingModel_GetDisjunctionMaxCardinality(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool RoutingModel_IsStart(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static global::System.IntPtr RoutingModel_AddConstantDimensionWithSlack(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, long jarg4, bool jarg5, string jarg6)
static global::System.IntPtr RoutingModel_NextVar(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void RoutingModel_AddPickupAndDeliverySets(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static global::System.IntPtr RoutingModel_solver(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool RoutingModel_HasTemporalTypeRequirements(global::System.Runtime.InteropServices.HandleRef jarg1)
static int RoutingModel_GetMaximumNumberOfActiveVehicles(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RoutingModel_AddRequiredTypeAlternativesWhenRemovingType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void RoutingModel_AddVariableTargetToFinalizer(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3)
static int RoutingModel_RegisterPositiveTransitCallback(global::System.Runtime.InteropServices.HandleRef jarg1, LongLongToLong jarg2)
static long RoutingModel_GetArcCostForClass(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, long jarg4)
static long RoutingModel_End(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static long RoutingModel_VehicleTypeContainer_VehicleClassEntry_fixed_cost_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_VehicleTypeContainer_vehicles_per_vehicle_class_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RoutingModel_CloseModelWithParameters(global::System.Runtime.InteropServices.HandleRef jarg1, int search_parameters_size, byte[] jarg2)
static void RoutingModel_VehicleTypeContainer_vehicles_per_vehicle_class_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static string RoutingModel_GetPrimaryConstrainedDimension(global::System.Runtime.InteropServices.HandleRef jarg1)
static long RoutingModel_GetNumberOfDecisionsInFirstSolution(global::System.Runtime.InteropServices.HandleRef jarg1, int search_parameters_size, byte[] jarg2)
static bool RoutingModel_HasDimension(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2)
static global::System.IntPtr RoutingModel_GetSameVehicleRequiredTypeAlternativesOfType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr RoutingModel_VehicleVars(global::System.Runtime.InteropServices.HandleRef jarg1)
static int RoutingModel_GetNumberOfDisjunctions(global::System.Runtime.InteropServices.HandleRef jarg1)
static long RoutingModel_UnperformedPenalty(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static global::System.IntPtr RoutingModel_ReadAssignment(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2)
static global::System.IntPtr RoutingModel_GetDimensionOrDie(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2)
static long RoutingModel_ComputeLowerBound(global::System.Runtime.InteropServices.HandleRef jarg1)
static long RoutingModel_GetNumberOfRejectsInFirstSolution(global::System.Runtime.InteropServices.HandleRef jarg1, int search_parameters_size, byte[] jarg2)
static void RoutingModel_SetVisitType(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, int jarg3, int jarg4)
static global::System.IntPtr RoutingModel_GetAmortizedLinearCostFactorOfVehicles(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RoutingModel_SetAmortizedCostFactorsOfAllVehicles(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
static void RoutingModel_AddIntervalToAssignment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr RoutingModel_CompactAndCheckAssignment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static long RoutingModel_Next(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3)
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)
static void delete_RoutingModel_VehicleTypeContainer_VehicleClassEntry(global::System.Runtime.InteropServices.HandleRef jarg1)
static int RoutingModel_GetVehicleClassesCount(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RoutingModel_VehicleTypeContainer_VehicleClassEntry_vehicle_class_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int RoutingModel_GetNumberOfVisitTypes(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RoutingModel_SetArcCostEvaluatorOfAllVehicles(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static long RoutingModel_GetArcCostForVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, long jarg4)
static int RoutingModel_GetVehicleClassIndexOfVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static long RoutingModel_GetDisjunctionPenalty(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool RoutingModel_HasSameVehicleTypeRequirements(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool RoutingModel_AddDimensionWithVehicleTransitAndCapacity(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, int[] jarg2, long jarg3, int length4, long[] jarg4, bool jarg5, string jarg6)
static global::System.IntPtr RoutingModel_VehicleTypeContainer_type_index_of_vehicle_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RoutingModel_SetAmortizedCostFactorsOfVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, int jarg4)
static bool RoutingModel_HasHardTypeIncompatibilities(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool RoutingModel_IsEnd(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static global::System.IntPtr RoutingModel_VehicleCostsConsideredVar(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)
static long RoutingModel_GetFixedCostOfVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool RoutingModel_CostsAreHomogeneousAcrossVehicles(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_GetVehicleTypeContainer(global::System.Runtime.InteropServices.HandleRef jarg1)
static int RoutingModel_Nodes(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RoutingModel_AddVariableMinimizedByFinalizer(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr RoutingModel_Solve__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static string RoutingModel_DebugOutputAssignment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3)
static bool RoutingModel_IsVehicleAllowedForIndex(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, long jarg3)
static bool RoutingModel_CheckLimit(global::System.Runtime.InteropServices.HandleRef jarg1)
static int RoutingModel_VehicleTypeContainer_VehicleClassEntry_vehicle_class_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool RoutingModel_AreEmptyRouteCostsConsideredForVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void RoutingModel_AssignmentToRoutes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int len3_1, int[] len3_2, long[] jarg3)
static int RoutingModel_Vehicles(global::System.Runtime.InteropServices.HandleRef jarg1)
static int RoutingModel_AddDisjunction__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2, long jarg3, long jarg4)
static void RoutingModel_AddSoftSameVehicleConstraint(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2, long jarg3)
static global::System.IntPtr RoutingModel_GetSingleNodesOfType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool RoutingModel_IsVehicleUsed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3)
static void RoutingModel_IgnoreDisjunctionsAlreadyForcedToZero(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_Solve__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static int RoutingModel_RegisterPositiveUnaryTransitCallback(global::System.Runtime.InteropServices.HandleRef jarg1, LongToLong jarg2)
static void RoutingModel_SetAllowedVehiclesForIndex(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, int[] jarg2, long jarg3)
static void RoutingModel_AddWeightedVariableMinimizedByFinalizer(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3)
static global::System.IntPtr RoutingModel_MakeSelfDependentDimensionFinalizer(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool RoutingModel_WriteAssignment(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2)
static void delete_RoutingModel_VehicleTypeContainer(global::System.Runtime.InteropServices.HandleRef jarg1)
static long RoutingModel_GetDepot(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)
static bool RoutingModel_ApplyLocksToAllVehicles(global::System.Runtime.InteropServices.HandleRef jarg1, int len2_1, int[] len2_2, long[] jarg2, bool jarg3)
static bool RoutingModel_HasVehicleWithCostClassIndex(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr RoutingModel_ActiveVar(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void RoutingModel_AddSearchMonitor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void RoutingModel_VehicleTypeContainer_VehicleClassEntry_fixed_cost_set(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static global::System.IntPtr RoutingModel_GetRequiredTypeAlternativesWhenRemovingType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static byte[] ProtoToByteArray(IMessage message)
Definition: ProtoHelper.cs:22
delegate long LongLongToLong(long t, long u)
delegate long LongToLong(long t)