DotNet Reference

DotNet 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.0
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 static long kNoPenalty {
78  get {
80  return ret;
81  }
82  }
83 
84  public static int kNoDisjunction {
85  get {
87  }
88 
89  }
90 
91  public static int kNoDimension {
92  get {
94  }
95 
96  }
97 
98  public RoutingModel(RoutingIndexManager index_manager) : this(operations_research_constraint_solverPINVOKE.new_RoutingModel__SWIG_0(RoutingIndexManager.getCPtr(index_manager)), true) {
100  }
101 
102  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) {
104  }
105 
106  public int RegisterUnaryTransitCallback( LongToLong callback) {
107  int ret = operations_research_constraint_solverPINVOKE.RoutingModel_RegisterUnaryTransitCallback(swigCPtr, StoreLongToLong(callback) );
108  return ret;
109  }
110 
113  return ret;
114  }
115 
116  public int RegisterTransitCallback( LongLongToLong callback) {
117  int ret = operations_research_constraint_solverPINVOKE.RoutingModel_RegisterTransitCallback(swigCPtr, StoreLongLongToLong(callback) );
118  return ret;
119  }
120 
122  int ret = operations_research_constraint_solverPINVOKE.RoutingModel_RegisterPositiveTransitCallback(swigCPtr, StoreLongLongToLong(callback) );
123  return ret;
124  }
125 
126  public bool AddDimension(int evaluator_index, long slack_max, long capacity, bool fix_start_cumul_to_zero, string name) {
127  bool ret = operations_research_constraint_solverPINVOKE.RoutingModel_AddDimension(swigCPtr, evaluator_index, slack_max, capacity, fix_start_cumul_to_zero, name);
129  return ret;
130  }
131 
132  public bool AddDimensionWithVehicleTransits( int[] evaluator_indices, long slack_max, long capacity, bool fix_start_cumul_to_zero, string name) {
133  bool ret = operations_research_constraint_solverPINVOKE.RoutingModel_AddDimensionWithVehicleTransits(swigCPtr, evaluator_indices.Length, evaluator_indices , slack_max, capacity, fix_start_cumul_to_zero, name);
135  return ret;
136  }
137 
138  public bool AddDimensionWithVehicleCapacity(int evaluator_index, long slack_max, long[] vehicle_capacities, bool fix_start_cumul_to_zero, string name) {
139  bool ret = operations_research_constraint_solverPINVOKE.RoutingModel_AddDimensionWithVehicleCapacity(swigCPtr, evaluator_index, slack_max, vehicle_capacities.Length, vehicle_capacities , fix_start_cumul_to_zero, name);
141  return ret;
142  }
143 
144  public bool AddDimensionWithVehicleTransitAndCapacity( int[] evaluator_indices, long slack_max, long[] vehicle_capacities, bool fix_start_cumul_to_zero, string name) {
145  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);
147  return ret;
148  }
149 
150  public bool AddConstantDimensionWithSlack(long value, long capacity, long slack_max, bool fix_start_cumul_to_zero, string name) {
151  bool ret = operations_research_constraint_solverPINVOKE.RoutingModel_AddConstantDimensionWithSlack(swigCPtr, value, capacity, slack_max, fix_start_cumul_to_zero, name);
153  return ret;
154  }
155 
156  public bool AddConstantDimension(long value, long capacity, bool fix_start_cumul_to_zero, string name) {
157  bool ret = operations_research_constraint_solverPINVOKE.RoutingModel_AddConstantDimension(swigCPtr, value, capacity, fix_start_cumul_to_zero, name);
159  return ret;
160  }
161 
162  public bool AddVectorDimension( long[] values, long capacity, bool fix_start_cumul_to_zero, string name) {
163  bool ret = operations_research_constraint_solverPINVOKE.RoutingModel_AddVectorDimension(swigCPtr, values.Length, values , capacity, fix_start_cumul_to_zero, name);
165  return ret;
166  }
167 
169  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_MakePathSpansAndTotalSlacks(swigCPtr, RoutingDimension.getCPtr(dimension), IntVarVector.getCPtr(spans), IntVarVector.getCPtr(total_slacks));
170  Constraint ret = (cPtr == global::System.IntPtr.Zero) ? null : new Constraint(cPtr, false);
172  return ret;
173  }
174 
175  public SWIGTYPE_p_std__vectorT_operations_research__RoutingDimension_p_t GetDimensionsForGlobalCumulOptimizers() {
176  SWIGTYPE_p_std__vectorT_operations_research__RoutingDimension_p_t ret = new SWIGTYPE_p_std__vectorT_operations_research__RoutingDimension_p_t(operations_research_constraint_solverPINVOKE.RoutingModel_GetDimensionsForGlobalCumulOptimizers(swigCPtr), false);
177  return ret;
178  }
179 
180  public SWIGTYPE_p_std__vectorT_operations_research__RoutingDimension_p_t GetDimensionsForLocalCumulOptimizers() {
181  SWIGTYPE_p_std__vectorT_operations_research__RoutingDimension_p_t ret = new SWIGTYPE_p_std__vectorT_operations_research__RoutingDimension_p_t(operations_research_constraint_solverPINVOKE.RoutingModel_GetDimensionsForLocalCumulOptimizers(swigCPtr), false);
182  return ret;
183  }
184 
185  public bool HasDimension(string dimension_name) {
186  bool ret = operations_research_constraint_solverPINVOKE.RoutingModel_HasDimension(swigCPtr, dimension_name);
188  return ret;
189  }
190 
191  public RoutingDimension GetDimensionOrDie(string dimension_name) {
194  return ret;
195  }
196 
197  public RoutingDimension GetMutableDimension(string dimension_name) {
198  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_GetMutableDimension(swigCPtr, dimension_name);
199  RoutingDimension ret = (cPtr == global::System.IntPtr.Zero) ? null : new RoutingDimension(cPtr, false);
201  return ret;
202  }
203 
204  public void SetPrimaryConstrainedDimension(string dimension_name) {
207  }
208 
211  return ret;
212  }
213 
214  public int AddDisjunction( long[] indices, long penalty, long max_cardinality) {
215  return operations_research_constraint_solverPINVOKE.RoutingModel_AddDisjunction__SWIG_0(swigCPtr, indices.Length, indices , penalty, max_cardinality);
216 }
217 
218  public int AddDisjunction( long[] indices, long penalty) {
219  return operations_research_constraint_solverPINVOKE.RoutingModel_AddDisjunction__SWIG_1(swigCPtr, indices.Length, indices , penalty);
220 }
221 
222  public int AddDisjunction( long[] indices) {
224 }
225 
226  public int[] GetDisjunctionIndices(long index) {
228  CpIntVector tmpVector = null;
229  if (cPtr != global::System.IntPtr.Zero) {
230  tmpVector = new CpIntVector(cPtr, true);
231  int[] outArray = new int[tmpVector.Count];
232  tmpVector.CopyTo(outArray);
233  return outArray;
234  }
235  return null;
236 }
237 
238  public long[] GetDisjunctionIndices(int index) {
240  CpInt64Vector tmpVector = null;
241  if (cPtr != global::System.IntPtr.Zero) {
242  tmpVector = new CpInt64Vector(cPtr, true);
243  long[] outArray = new long[tmpVector.Count];
244  tmpVector.CopyTo(outArray);
245  return outArray;
246  }
247  return null;
248 }
249 
250  public long GetDisjunctionPenalty(int index) {
252  return ret;
253  }
254 
255  public long GetDisjunctionMaxCardinality(int index) {
257  return ret;
258  }
259 
260  public int GetNumberOfDisjunctions() {
262  return ret;
263  }
264 
267  }
268 
269  public void AddSoftSameVehicleConstraint( long[] indices, long cost) {
271  }
272 
273  public void SetAllowedVehiclesForIndex( int[] vehicles, long index) {
275  }
276 
277  public bool IsVehicleAllowedForIndex(int vehicle, long index) {
279  return ret;
280  }
281 
282  public void AddPickupAndDelivery(long pickup, long delivery) {
284  }
285 
286  public void AddPickupAndDeliverySets(int pickup_disjunction, int delivery_disjunction) {
287  operations_research_constraint_solverPINVOKE.RoutingModel_AddPickupAndDeliverySets(swigCPtr, pickup_disjunction, delivery_disjunction);
288  }
289 
290  public void SetPickupAndDeliveryPolicyOfAllVehicles(int policy) {
292  }
293 
294  public void SetPickupAndDeliveryPolicyOfVehicle(int policy, int vehicle) {
296  }
297 
298  public int GetPickupAndDeliveryPolicyOfVehicle(int vehicle) {
300  return ret;
301  }
302 
303  public int GetNumOfSingletonNodes() {
305  return ret;
306  }
307 
308  public void SetVisitType(long index, int type) {
310  }
311 
312  public int GetVisitType(long index) {
314  return ret;
315  }
316 
317  public int GetNumberOfVisitTypes() {
319  return ret;
320  }
321 
322  public long UnperformedPenalty(long var_index) {
324  return ret;
325  }
326 
327  public long UnperformedPenaltyOrValue(long default_value, long var_index) {
328  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_UnperformedPenaltyOrValue(swigCPtr, default_value, var_index);
329  return ret;
330  }
331 
332  public long GetDepot() {
334  return ret;
335  }
336 
337  public void SetArcCostEvaluatorOfAllVehicles(int evaluator_index) {
339  }
340 
341  public void SetArcCostEvaluatorOfVehicle(int evaluator_index, int vehicle) {
343  }
344 
345  public void SetFixedCostOfAllVehicles(long cost) {
347  }
348 
349  public void SetFixedCostOfVehicle(long cost, int vehicle) {
351  }
352 
353  public long GetFixedCostOfVehicle(int vehicle) {
355  return ret;
356  }
357 
358  public void SetAmortizedCostFactorsOfAllVehicles(long linear_cost_factor, long quadratic_cost_factor) {
359  operations_research_constraint_solverPINVOKE.RoutingModel_SetAmortizedCostFactorsOfAllVehicles(swigCPtr, linear_cost_factor, quadratic_cost_factor);
360  }
361 
362  public void SetAmortizedCostFactorsOfVehicle(long linear_cost_factor, long quadratic_cost_factor, int vehicle) {
363  operations_research_constraint_solverPINVOKE.RoutingModel_SetAmortizedCostFactorsOfVehicle(swigCPtr, linear_cost_factor, quadratic_cost_factor, vehicle);
364  }
365 
368  CpInt64Vector tmpVector = null;
369  if (cPtr != global::System.IntPtr.Zero) {
370  tmpVector = new CpInt64Vector(cPtr, true);
371  long[] outArray = new long[tmpVector.Count];
372  tmpVector.CopyTo(outArray);
373  return outArray;
374  }
375  return null;
376 }
377 
380  CpInt64Vector tmpVector = null;
381  if (cPtr != global::System.IntPtr.Zero) {
382  tmpVector = new CpInt64Vector(cPtr, true);
383  long[] outArray = new long[tmpVector.Count];
384  tmpVector.CopyTo(outArray);
385  return outArray;
386  }
387  return null;
388 }
389 
390  public void ConsiderEmptyRouteCostsForVehicle(bool consider_costs, int vehicle) {
392  }
393 
394  public bool AreEmptyRouteCostsConsideredForVehicle(int vehicle) {
396  return ret;
397  }
398 
399  public void SetFirstSolutionEvaluator( LongLongToLong evaluator) {
401  }
402 
403  public void AddLocalSearchOperator(LocalSearchOperator ls_operator) {
405  }
406 
407  public void AddSearchMonitor(SearchMonitor monitor) {
409  }
410 
411  public void AddAtSolutionCallback( VoidToVoid callback) {
413  }
414 
417  }
418 
421  }
422 
423  public void AddWeightedVariableMinimizedByFinalizer(IntVar var, long cost) {
425  }
426 
427  public void AddVariableTargetToFinalizer(IntVar var, long target) {
429  }
430 
431  public void CloseModel() {
433  }
434 
436  operations_research_constraint_solverPINVOKE.RoutingModel_CloseModelWithParameters(swigCPtr, search_parameters.CalculateSize(), ProtoHelper.ProtoToByteArray(search_parameters));
437  }
438 
439  public Assignment Solve(Assignment assignment) {
440  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_Solve__SWIG_0(swigCPtr, Assignment.getCPtr(assignment));
441  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
442  return ret;
443  }
444 
445  public Assignment Solve() {
446  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_Solve__SWIG_1(swigCPtr);
447  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
448  return ret;
449  }
450 
452  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_SolveWithParameters(swigCPtr, search_parameters.CalculateSize(), ProtoHelper.ProtoToByteArray(search_parameters));
453  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
454  return ret;
455  }
456 
458  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_SolveFromAssignmentWithParameters(swigCPtr, Assignment.getCPtr(assignment), search_parameters.CalculateSize(), ProtoHelper.ProtoToByteArray(search_parameters));
459  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
460  return ret;
461  }
462 
463  public void SetAssignmentFromOtherModelAssignment(Assignment target_assignment, RoutingModel source_model, Assignment source_assignment) {
464  operations_research_constraint_solverPINVOKE.RoutingModel_SetAssignmentFromOtherModelAssignment(swigCPtr, Assignment.getCPtr(target_assignment), RoutingModel.getCPtr(source_model), Assignment.getCPtr(source_assignment));
465  }
466 
467  public long ComputeLowerBound() {
469  return ret;
470  }
471 
472  public int GetStatus() {
474  return ret;
475  }
476 
477  public IntVar ApplyLocks( long[] locks) {
478  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_ApplyLocks(swigCPtr, locks.Length, locks );
479  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
480  return ret;
481  }
482 
483  public bool ApplyLocksToAllVehicles( long[][] locks, bool close_routes) {
485  locks.GetLength(0),
486  NestedArrayHelper.GetArraySecondSize(locks),
487  NestedArrayHelper.GetFlatArray(locks)
488 , close_routes);
489  return ret;
490  }
491 
493  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_PreAssignment(swigCPtr);
494  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
495  return ret;
496  }
497 
500  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
501  return ret;
502  }
503 
504  public bool WriteAssignment(string file_name) {
507  return ret;
508  }
509 
510  public Assignment ReadAssignment(string file_name) {
511  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_ReadAssignment(swigCPtr, file_name);
512  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
514  return ret;
515  }
516 
518  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_RestoreAssignment(swigCPtr, Assignment.getCPtr(solution));
519  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
521  return ret;
522  }
523 
524  public Assignment ReadAssignmentFromRoutes( long[][] routes, bool ignore_inactive_indices) {
526  routes.GetLength(0),
527  NestedArrayHelper.GetArraySecondSize(routes),
528  NestedArrayHelper.GetFlatArray(routes)
529 , ignore_inactive_indices);
530  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
531  return ret;
532  }
533 
534  public bool RoutesToAssignment( long[][] routes, bool ignore_inactive_indices, bool close_routes, Assignment assignment) {
536  routes.GetLength(0),
537  NestedArrayHelper.GetArraySecondSize(routes),
538  NestedArrayHelper.GetFlatArray(routes)
539 , ignore_inactive_indices, close_routes, Assignment.getCPtr(assignment));
540  return ret;
541  }
542 
543  public void AssignmentToRoutes(Assignment assignment, long[][] routes) {
545  routes.GetLength(0),
546  NestedArrayHelper.GetArraySecondSize(routes),
547  NestedArrayHelper.GetFlatArray(routes)
548 );
550  }
551 
553  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_CompactAssignment(swigCPtr, Assignment.getCPtr(assignment));
554  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
556  return ret;
557  }
558 
560  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_CompactAndCheckAssignment(swigCPtr, Assignment.getCPtr(assignment));
561  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
563  return ret;
564  }
565 
566  public void AddToAssignment(IntVar var) {
568  }
569 
570  public void AddIntervalToAssignment(IntervalVar interval) {
572  }
573 
574  public Assignment PackCumulsOfOptimizerDimensionsFromAssignment(Assignment original_assignment, SWIGTYPE_p_absl__Duration duration_limit) {
575  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment(swigCPtr, Assignment.getCPtr(original_assignment), SWIGTYPE_p_absl__Duration.getCPtr(duration_limit));
576  Assignment ret = (cPtr == global::System.IntPtr.Zero) ? null : new Assignment(cPtr, false);
578  return ret;
579  }
580 
583  }
584 
585  public long Start(int vehicle) {
587  return ret;
588  }
589 
590  public long End(int vehicle) {
592  return ret;
593  }
594 
595  public bool IsStart(long index) {
597  return ret;
598  }
599 
600  public bool IsEnd(long index) {
602  return ret;
603  }
604 
605  public int VehicleIndex(int index) {
607  return ret;
608  }
609 
610  public long Next(Assignment assignment, long index) {
611  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_Next(swigCPtr, Assignment.getCPtr(assignment), index);
613  return ret;
614  }
615 
616  public bool IsVehicleUsed(Assignment assignment, int vehicle) {
617  bool ret = operations_research_constraint_solverPINVOKE.RoutingModel_IsVehicleUsed(swigCPtr, Assignment.getCPtr(assignment), vehicle);
619  return ret;
620  }
621 
622  public IntVarVector Nexts() {
624  return ret;
625  }
626 
629  return ret;
630  }
631 
632  public IntVar NextVar(long index) {
633  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_NextVar(swigCPtr, index);
634  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
635  return ret;
636  }
637 
638  public IntVar ActiveVar(long index) {
639  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_ActiveVar(swigCPtr, index);
640  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
641  return ret;
642  }
643 
644  public IntVar VehicleCostsConsideredVar(int vehicle) {
645  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_VehicleCostsConsideredVar(swigCPtr, vehicle);
646  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
647  return ret;
648  }
649 
650  public IntVar VehicleVar(long index) {
651  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_VehicleVar(swigCPtr, index);
652  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
653  return ret;
654  }
655 
656  public IntVar CostVar() {
657  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_CostVar(swigCPtr);
658  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
659  return ret;
660  }
661 
662  public long GetArcCostForVehicle(long from_index, long to_index, long vehicle) {
663  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetArcCostForVehicle(swigCPtr, from_index, to_index, vehicle);
664  return ret;
665  }
666 
669  return ret;
670  }
671 
672  public long GetHomogeneousCost(long from_index, long to_index) {
673  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetHomogeneousCost(swigCPtr, from_index, to_index);
674  return ret;
675  }
676 
677  public long GetArcCostForFirstSolution(long from_index, long to_index) {
679  return ret;
680  }
681 
682  public long GetArcCostForClass(long from_index, long to_index, long cost_class_index) {
683  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetArcCostForClass(swigCPtr, from_index, to_index, cost_class_index);
684  return ret;
685  }
686 
687  public int GetCostClassIndexOfVehicle(long vehicle) {
689 }
690 
691  public bool HasVehicleWithCostClassIndex(int cost_class_index) {
693  return ret;
694  }
695 
696  public int GetCostClassesCount() {
698  return ret;
699  }
700 
703  return ret;
704  }
705 
706  public int GetVehicleClassIndexOfVehicle(long vehicle) {
708 }
709 
710  public int GetVehicleClassesCount() {
712  return ret;
713  }
714 
715  public int[] GetSameVehicleIndicesOfIndex(int node) {
717  CpIntVector tmpVector = null;
718  if (cPtr != global::System.IntPtr.Zero) {
719  tmpVector = new CpIntVector(cPtr, true);
720  int[] outArray = new int[tmpVector.Count];
721  tmpVector.CopyTo(outArray);
722  return outArray;
723  }
724  return null;
725 }
726 
727  public bool ArcIsMoreConstrainedThanArc(long from, long to1, long to2) {
729  return ret;
730  }
731 
732  public string DebugOutputAssignment(Assignment solution_assignment, string dimension_to_print) {
733  string ret = operations_research_constraint_solverPINVOKE.RoutingModel_DebugOutputAssignment(swigCPtr, Assignment.getCPtr(solution_assignment), dimension_to_print);
735  return ret;
736  }
737 
738  public Solver solver() {
739  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_solver(swigCPtr);
740  Solver ret = (cPtr == global::System.IntPtr.Zero) ? null : new Solver(cPtr, false);
741  return ret;
742  }
743 
744  public bool CheckLimit() {
746  return ret;
747  }
748 
749  public SWIGTYPE_p_absl__Duration RemainingTime() {
750  SWIGTYPE_p_absl__Duration ret = new SWIGTYPE_p_absl__Duration(operations_research_constraint_solverPINVOKE.RoutingModel_RemainingTime(swigCPtr), true);
751  return ret;
752  }
753 
754  public int Nodes() {
756  return ret;
757  }
758 
759  public int Vehicles() {
761  return ret;
762  }
763 
764  public long Size() {
766  return ret;
767  }
768 
770  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetNumberOfDecisionsInFirstSolution(swigCPtr, search_parameters.CalculateSize(), ProtoHelper.ProtoToByteArray(search_parameters));
771  return ret;
772  }
773 
775  long ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetNumberOfRejectsInFirstSolution(swigCPtr, search_parameters.CalculateSize(), ProtoHelper.ProtoToByteArray(search_parameters));
776  return ret;
777  }
778 
779  public bool IsMatchingModel() {
781  return ret;
782  }
783 
785  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_MakeGuidedSlackFinalizer(swigCPtr, RoutingDimension.getCPtr(dimension), StoreLongToLong(initializer) );
786  DecisionBuilder ret = (cPtr == global::System.IntPtr.Zero) ? null : new DecisionBuilder(cPtr, false);
787  return ret;
788  }
789 
792  DecisionBuilder ret = (cPtr == global::System.IntPtr.Zero) ? null : new DecisionBuilder(cPtr, false);
793  return ret;
794  }
795 
796  // Status
802 
803  // PickupAndDeliveryPolicy
807 
808 }
809 
810 }
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)
static int RoutingModel_GetCostClassesCount(global::System.Runtime.InteropServices.HandleRef jarg1)
Assignment CompactAndCheckAssignment(Assignment assignment)
int RegisterPositiveUnaryTransitCallback(LongToLong callback)
static int RoutingModel_GetNumberOfVisitTypes(global::System.Runtime.InteropServices.HandleRef jarg1)
static int RoutingModel_RegisterUnaryTransitCallback(global::System.Runtime.InteropServices.HandleRef jarg1, LongToLong jarg2)
string DebugOutputAssignment(Assignment solution_assignment, string dimension_to_print)
static void RoutingModel_SetArcCostEvaluatorOfVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
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 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 int RoutingModel_AddDisjunction__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2)
int RegisterTransitCallback(LongLongToLong callback)
static int RoutingModel_GetStatus(global::System.Runtime.InteropServices.HandleRef jarg1)
RoutingModel(RoutingIndexManager index_manager, Google.OrTools.ConstraintSolver.RoutingModelParameters parameters)
int RegisterPositiveTransitCallback(LongLongToLong callback)
Parameters defining the search used to solve vehicle routing problems.
static bool RoutingModel_IsMatchingModel(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_RemainingTime(global::System.Runtime.InteropServices.HandleRef jarg1)
static byte [] ProtoToByteArray(IMessage message)
Definition: ProtoHelper.cs:21
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 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 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)
void SetAllowedVehiclesForIndex(int[] vehicles, long index)
long GetNumberOfRejectsInFirstSolution(Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters)
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)
static global::System.IntPtr RoutingModel_GetDisjunctionIndices__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
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)
static void RoutingModel_SetPickupAndDeliveryPolicyOfVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
bool ApplyLocksToAllVehicles(long[][] locks, bool close_routes)
static global::System.IntPtr RoutingModel_MutablePreAssignment(global::System.Runtime.InteropServices.HandleRef jarg1)
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)
Assignment ReadAssignment(string file_name)
static global::System.IntPtr RoutingModel_Solve__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
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)
bool AddConstantDimension(long value, long capacity, bool fix_start_cumul_to_zero, string name)
static int RoutingModel_RegisterTransitCallback(global::System.Runtime.InteropServices.HandleRef jarg1, LongLongToLong jarg2)
static bool RoutingModel_AreEmptyRouteCostsConsideredForVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
void SetVisitType(long index, int type)
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)
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)
SWIGTYPE_p_absl__Duration RemainingTime()
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)
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)
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)
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)
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_GetDimensionsForLocalCumulOptimizers(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_Solve__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void RoutingModel_AddSearchMonitor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int RoutingModel_VehicleIndex(global::System.Runtime.InteropServices.HandleRef jarg1, int 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_Vehicles(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool RoutingModel_CheckLimit(global::System.Runtime.InteropServices.HandleRef jarg1)
static long RoutingModel_GetArcCostForFirstSolution(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
void AddLocalSearchOperator(LocalSearchOperator ls_operator)
static void RoutingModel_SetAmortizedCostFactorsOfAllVehicles(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
static bool RoutingModel_AddConstantDimensionWithSlack(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, long jarg4, bool jarg5, string jarg6)
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)
void AddIntervalToAssignment(IntervalVar interval)
RoutingDimension GetMutableDimension(string dimension_name)
bool AddConstantDimensionWithSlack(long value, long capacity, long slack_max, bool fix_start_cumul_to_zero, string 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)
void ConsiderEmptyRouteCostsForVehicle(bool consider_costs, int vehicle)
long GetArcCostForVehicle(long from_index, long to_index, long vehicle)
SWIGTYPE_p_std__vectorT_operations_research__RoutingDimension_p_t GetDimensionsForLocalCumulOptimizers()
static void RoutingModel_SetVisitType(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, int jarg3)
static long RoutingModel_GetNumberOfDecisionsInFirstSolution(global::System.Runtime.InteropServices.HandleRef jarg1, int search_parameters_size, byte[] jarg2)
static string RoutingModel_GetPrimaryConstrainedDimension(global::System.Runtime.InteropServices.HandleRef jarg1)
static int RoutingModel_GetNonZeroCostClassesCount(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr RoutingModel_Nexts(global::System.Runtime.InteropServices.HandleRef jarg1)
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_CostsAreHomogeneousAcrossVehicles(global::System.Runtime.InteropServices.HandleRef jarg1)
static long RoutingModel_GetHomogeneousCost(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
static void RoutingModel_SetFirstSolutionEvaluator(global::System.Runtime.InteropServices.HandleRef jarg1, LongLongToLong jarg2)
SWIGTYPE_p_std__vectorT_operations_research__RoutingDimension_p_t GetDimensionsForGlobalCumulOptimizers()
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)
static bool RoutingModel_AddVectorDimension(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2, long jarg3, bool jarg4, string jarg5)
static void RoutingModel_AddWeightedVariableMinimizedByFinalizer(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3)
static void RoutingModel_CloseModel(global::System.Runtime.InteropServices.HandleRef jarg1)
Assignment CompactAssignment(Assignment assignment)
static string RoutingModel_DebugOutputAssignment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3)
virtual void Dispose(bool disposing)
Definition: RoutingModel.cs:40
static global::System.IntPtr RoutingModel_RestoreAssignment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
void SetArcCostEvaluatorOfAllVehicles(int evaluator_index)
static void RoutingModel_ConsiderEmptyRouteCostsForVehicle(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2, int jarg3)
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 long RoutingModel_Size(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 void RoutingModel_AddVariableMinimizedByFinalizer(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
void AddSoftSameVehicleConstraint(long[] indices, long cost)
static void RoutingModel_SetPickupAndDeliveryPolicyOfAllVehicles(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr RoutingModel_GetDisjunctionIndices__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
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_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_GetNumOfSingletonNodes(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)
Parameters which have to be set when creating a RoutingModel.
RoutingModel(RoutingIndexManager index_manager)
Definition: RoutingModel.cs:98
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 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_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)
static global::System.IntPtr RoutingModel_VehicleCostsConsideredVar(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
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 bool RoutingModel_AddConstantDimension(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, bool jarg4, string jarg5)
void SetPickupAndDeliveryPolicyOfVehicle(int policy, int vehicle)
bool AreEmptyRouteCostsConsideredForVehicle(int vehicle)
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_GetDimensionsForGlobalCumulOptimizers(global::System.Runtime.InteropServices.HandleRef jarg1)
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)
Assignment PackCumulsOfOptimizerDimensionsFromAssignment(Assignment original_assignment, SWIGTYPE_p_absl__Duration duration_limit)
bool HasDimension(string dimension_name)
static global::System.IntPtr RoutingModel_solver(global::System.Runtime.InteropServices.HandleRef jarg1)
bool AddVectorDimension(long[] values, long capacity, bool fix_start_cumul_to_zero, string name)
static bool RoutingModel_ArcIsMoreConstrainedThanArc(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, long jarg4)
void SetPrimaryConstrainedDimension(string dimension_name)
void AddAtSolutionCallback(VoidToVoid callback)
void AddPickupAndDelivery(long pickup, long delivery)
static long RoutingModel_GetDisjunctionPenalty(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
void CloseModelWithParameters(Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters)
static global::System.IntPtr RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)