14using System.Collections.Generic;
16public partial class RoutingModel : global::System.IDisposable {
20 internal RoutingModel(global::System.IntPtr cPtr,
bool cMemoryOwn) {
22 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
RoutingModel obj) {
26 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
29 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(RoutingModel obj) {
32 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
33 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
34 obj.swigCMemOwn =
false;
38 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
48 global::System.GC.SuppressFinalize(
this);
51 protected virtual void Dispose(
bool disposing) {
53 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
58 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
64 private List<LongToLong> unaryTransitCallbacks;
66 if (unaryTransitCallbacks ==
null)
67 unaryTransitCallbacks =
new List<LongToLong>();
68 unaryTransitCallbacks.Add(c);
72 private List<LongLongToLong> transitCallbacks;
74 if (transitCallbacks ==
null)
75 transitCallbacks =
new List<LongLongToLong>();
76 transitCallbacks.Add(c);
80 private List<VoidToVoid> solutionCallbacks;
82 if (solutionCallbacks ==
null)
83 solutionCallbacks =
new List<VoidToVoid>();
84 solutionCallbacks.Add(c);
88 public partial class VehicleTypeContainer : global::System.IDisposable {
89 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
94 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
97 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
VehicleTypeContainer obj) {
98 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
101 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(
VehicleTypeContainer obj) {
103 if (!obj.swigCMemOwn)
104 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
105 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
106 obj.swigCMemOwn =
false;
110 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
114 ~VehicleTypeContainer() {
120 global::System.GC.SuppressFinalize(
this);
123 protected virtual void Dispose(
bool disposing) {
125 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
130 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
135 public partial class VehicleClassEntry : global::System.IDisposable {
136 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
141 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
144 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
VehicleClassEntry obj) {
145 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
148 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(
VehicleClassEntry obj) {
150 if (!obj.swigCMemOwn)
151 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
152 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
153 obj.swigCMemOwn =
false;
157 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
161 ~VehicleClassEntry() {
167 global::System.GC.SuppressFinalize(
this);
170 protected virtual void Dispose(
bool disposing) {
172 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
177 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
212 public int Type(
int vehicle) {
223 IntVector ret = (cPtr == global::System.IntPtr.Zero) ?
null :
new IntVector(cPtr,
false);
228 public SWIGTYPE_p_std__vectorT_std__setT_operations_research__RoutingModel__VehicleTypeContainer__VehicleClassEntry_t_t
sorted_vehicle_classes_per_type {
234 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);
245 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);
250 public VehicleTypeContainer() : this(operations_research_constraint_solverPINVOKE.new_RoutingModel_VehicleTypeContainer(), true) {
255 public partial class ResourceGroup : global::System.IDisposable {
256 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
261 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
264 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
ResourceGroup obj) {
265 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
268 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(ResourceGroup obj) {
270 if (!obj.swigCMemOwn)
271 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
272 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
273 obj.swigCMemOwn =
false;
277 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
287 global::System.GC.SuppressFinalize(
this);
290 protected virtual void Dispose(
bool disposing) {
292 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
297 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
302 public partial class Attributes : global::System.IDisposable {
303 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
306 internal Attributes(global::System.IntPtr cPtr,
bool cMemoryOwn) {
308 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
311 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
Attributes obj) {
312 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
315 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(
Attributes obj) {
317 if (!obj.swigCMemOwn)
318 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
319 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
320 obj.swigCMemOwn =
false;
324 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
334 global::System.GC.SuppressFinalize(
this);
337 protected virtual void Dispose(
bool disposing) {
339 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
344 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
368 public partial class Resource : global::System.IDisposable {
369 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
372 internal Resource(global::System.IntPtr cPtr,
bool cMemoryOwn) {
374 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
377 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
Resource obj) {
378 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
381 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(Resource obj) {
383 if (!obj.swigCMemOwn)
384 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
385 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
386 obj.swigCMemOwn =
false;
390 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
400 global::System.GC.SuppressFinalize(
this);
403 protected virtual void Dispose(
bool disposing) {
405 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
410 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
435 if (cPtr != global::System.IntPtr.Zero) {
437 int[] outArray =
new int[tmpVector.
Count];
438 tmpVector.
CopyTo(outArray);
467 public SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__ResourceGroup__Resource_t
GetResources() {
490 if (cPtr != global::System.IntPtr.Zero) {
492 int[] outArray =
new int[tmpVector.
Count];
493 tmpVector.
CopyTo(outArray);
499 public SWIGTYPE_p_util_intops__StrongVectorT_operations_research__RoutingModel__ResourceClassIndex_std__vectorT_int_t_t
GetResourceIndicesPerClass() {
520 public partial class VariableValuePair : global::System.IDisposable {
521 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
526 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
529 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
VariableValuePair obj) {
530 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
533 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(
VariableValuePair obj) {
535 if (!obj.swigCMemOwn)
536 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
537 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
538 obj.swigCMemOwn =
false;
542 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
546 ~VariableValuePair() {
552 global::System.GC.SuppressFinalize(
this);
555 protected virtual void Dispose(
bool disposing) {
557 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
562 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
587 public VariableValuePair() : this(operations_research_constraint_solverPINVOKE.new_RoutingModel_VariableValuePair(), true) {
593 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
598 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
601 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
SecondaryOptimizer obj) {
602 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
605 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(SecondaryOptimizer obj) {
607 if (!obj.swigCMemOwn)
608 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
609 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
610 obj.swigCMemOwn =
false;
614 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
618 ~SecondaryOptimizer() {
624 global::System.GC.SuppressFinalize(
this);
627 protected virtual void Dispose(
bool disposing) {
629 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
634 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
639 public SecondaryOptimizer(RoutingModel model,
Google.
OrTools.
ConstraintSolver.
RoutingSearchParameters search_parameters,
long solve_period) : this(operations_research_constraint_solverPINVOKE.new_RoutingModel_SecondaryOptimizer(RoutingModel.getCPtr(model),
ProtoHelper.ProtoToByteArray(search_parameters, out var buffer), buffer, solve_period), true) {
642 public bool Solve(SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__VariableValuePair_t in_state, SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__VariableValuePair_t out_state) {
671 public RoutingModel(RoutingIndexManager index_manager) : this(operations_research_constraint_solverPINVOKE.new_RoutingModel__SWIG_0(RoutingIndexManager.getCPtr(index_manager)), true) {
672 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending)
throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
713 public bool AddDimension(
int evaluator_index,
long slack_max,
long capacity,
bool fix_start_cumul_to_zero,
string name) {
725 public bool AddDimensionWithVehicleCapacity(
int evaluator_index,
long slack_max,
long[] vehicle_capacities,
bool fix_start_cumul_to_zero,
string name) {
760, capacity, fix_start_cumul_to_zero, name),
true);
765 public SWIGTYPE_p_std__vectorT_operations_research__RoutingDimension_p_t
GetUnaryDimensions() {
794 SWIGTYPE_p_operations_research__GlobalDimensionCumulOptimizer ret = (cPtr == global::System.IntPtr.Zero) ?
null : new SWIGTYPE_p_operations_research__GlobalDimensionCumulOptimizer(cPtr, false);
801 SWIGTYPE_p_operations_research__GlobalDimensionCumulOptimizer ret = (cPtr == global::System.IntPtr.Zero) ?
null : new SWIGTYPE_p_operations_research__GlobalDimensionCumulOptimizer(cPtr, false);
808 SWIGTYPE_p_operations_research__LocalDimensionCumulOptimizer ret = (cPtr == global::System.IntPtr.Zero) ?
null : new SWIGTYPE_p_operations_research__LocalDimensionCumulOptimizer(cPtr, false);
848 public SWIGTYPE_p_std__vectorT_std__unique_ptrT_operations_research__RoutingModel__ResourceGroup_t_t
GetResourceGroups() {
862 if (cPtr != global::System.IntPtr.Zero) {
864 int[] outArray =
new int[tmpVector.
Count];
865 tmpVector.
CopyTo(outArray);
872 int ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetDimensionResourceGroupIndex(swigCPtr, RoutingDimension.getCPtr(dimension));
876 public int AddDisjunction(
long[] indices,
long penalty,
long max_cardinality) {
891 if (cPtr != global::System.IntPtr.Zero) {
893 int[] outArray =
new int[tmpVector.
Count];
894 tmpVector.
CopyTo(outArray);
901 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_GetDisjunctionNodeIndices(swigCPtr, index);
903 if (cPtr != global::System.IntPtr.Zero) {
905 long[] outArray =
new long[tmpVector.
Count];
906 tmpVector.
CopyTo(outArray);
913 long ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetDisjunctionPenalty(swigCPtr, index);
962 public partial class PickupDeliveryPosition : global::System.IDisposable {
963 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
968 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
972 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
975 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(
PickupDeliveryPosition obj) {
977 if (!obj.swigCMemOwn)
978 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
979 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
980 obj.swigCMemOwn =
false;
984 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
988 ~PickupDeliveryPosition() {
994 global::System.GC.SuppressFinalize(
this);
997 protected virtual void Dispose(
bool disposing) {
999 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
1004 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
1029 public PickupDeliveryPosition() : this(operations_research_constraint_solverPINVOKE.new_RoutingModel_PickupDeliveryPosition(), true) {
1034 public SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__PickupDeliveryPosition_t
GetPickupPositions(
long node_index) {
1039 public SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__PickupDeliveryPosition_t
GetDeliveryPositions(
long node_index) {
1044 public bool IsPickup(
long node_index) {
1072 public void SetVisitType(
long index,
int type,
int type_policy) {
1084 if (cPtr != global::System.IntPtr.Zero) {
1086 int[] outArray =
new int[tmpVector.
Count];
1087 tmpVector.
CopyTo(outArray);
1094 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_GetPairIndicesOfType(swigCPtr, type);
1096 if (cPtr != global::System.IntPtr.Zero) {
1098 int[] outArray =
new int[tmpVector.
Count];
1099 tmpVector.
CopyTo(outArray);
1106 int ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetVisitTypePolicy(swigCPtr, index);
1238 if (cPtr != global::System.IntPtr.Zero) {
1240 long[] outArray =
new long[tmpVector.
Count];
1241 tmpVector.
CopyTo(outArray);
1248 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_GetAmortizedQuadraticCostFactorOfVehicles(swigCPtr);
1250 if (cPtr != global::System.IntPtr.Zero) {
1252 long[] outArray =
new long[tmpVector.
Count];
1253 tmpVector.
CopyTo(outArray);
1260 operations_research_constraint_solverPINVOKE.RoutingModel_SetVehicleUsedWhenEmpty(swigCPtr, is_used, vehicle);
1402 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
1449 routes.GetLength(0),
1452, ignore_inactive_indices);
1459 routes.GetLength(0),
1462, ignore_inactive_indices, close_routes,
Assignment.getCPtr(assignment));
1468 routes.GetLength(0),
1497 public partial class RouteDimensionTravelInfo : global::System.IDisposable {
1498 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1503 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
1507 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
1512 if (!obj.swigCMemOwn)
1513 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
1514 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
1515 obj.swigCMemOwn =
false;
1519 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
1523 ~RouteDimensionTravelInfo() {
1529 global::System.GC.SuppressFinalize(
this);
1532 protected virtual void Dispose(
bool disposing) {
1534 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
1539 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
1544 public partial class TransitionInfo : global::System.IDisposable {
1545 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1550 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
1553 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
TransitionInfo obj) {
1554 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
1557 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(
TransitionInfo obj) {
1559 if (!obj.swigCMemOwn)
1560 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
1561 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
1562 obj.swigCMemOwn =
false;
1566 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
1576 global::System.GC.SuppressFinalize(
this);
1579 protected virtual void Dispose(
bool disposing) {
1581 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
1586 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
1591 public partial class PiecewiseLinearFormulation : global::System.IDisposable {
1592 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1597 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
1601 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
1606 if (!obj.swigCMemOwn)
1607 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
1608 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
1609 obj.swigCMemOwn =
false;
1613 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
1617 ~PiecewiseLinearFormulation() {
1623 global::System.GC.SuppressFinalize(
this);
1626 protected virtual void Dispose(
bool disposing) {
1628 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
1633 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
1638 public SWIGTYPE_p_absl__InlinedVectorT_long_8_t
x_anchors {
1650 public SWIGTYPE_p_absl__InlinedVectorT_long_8_t
y_anchors {
1662 public string ToString(
string line_prefix) {
1740 public string ToString(
string line_prefix) {
1756 public SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__RouteDimensionTravelInfo__TransitionInfo_t
transition_info {
1762 SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__RouteDimensionTravelInfo__TransitionInfo_t ret = (cPtr == global::System.IntPtr.Zero) ?
null :
new SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__RouteDimensionTravelInfo__TransitionInfo_t(cPtr,
false);
1777 public string ToString(
string line_prefix) {
1778 string ret = operations_research_constraint_solverPINVOKE.RoutingModel_RouteDimensionTravelInfo_ToString__SWIG_0(swigCPtr, line_prefix);
1794 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1799 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
1803 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
1808 if (!obj.swigCMemOwn)
1809 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
1810 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
1811 obj.swigCMemOwn =
false;
1815 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
1819 ~NodeNeighborsByCostClass() {
1825 global::System.GC.SuppressFinalize(
this);
1828 protected virtual void Dispose(
bool disposing) {
1830 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
1835 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
1840 public NodeNeighborsByCostClass() : this(operations_research_constraint_solverPINVOKE.new_RoutingModel_NodeNeighborsByCostClass(), true) {
1851 if (cPtr != global::System.IntPtr.Zero) {
1853 int[] outArray =
new int[tmpVector.
Count];
1854 tmpVector.
CopyTo(outArray);
1862 public RoutingModel.NodeNeighborsByCostClass
GetOrCreateNodeNeighborsByCostClass(
double neighbors_ratio,
long min_neighbors, SWIGTYPE_p_double neighbors_ratio_used,
bool add_vehicle_starts_to_neighbors) {
1863 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_GetOrCreateNodeNeighborsByCostClass__SWIG_0(swigCPtr, neighbors_ratio, min_neighbors, SWIGTYPE_p_double.getCPtr(neighbors_ratio_used), add_vehicle_starts_to_neighbors);
1892 public long Start(
int vehicle) {
1897 public long End(
int vehicle) {
1902 public bool IsStart(
long index) {
1907 public bool IsEnd(
long index) {
1946 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
1952 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
1958 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
1964 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
1970 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
1976 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
1982 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
2006 public long GetArcCostForClass(
long from_index,
long to_index,
long cost_class_index) {
2047 if (cPtr != global::System.IntPtr.Zero) {
2049 int[] outArray =
new int[tmpVector.
Count];
2050 tmpVector.
CopyTo(outArray);
2057 RoutingModel.VehicleTypeContainer ret =
new RoutingModel.VehicleTypeContainer(operations_research_constraint_solverPINVOKE.RoutingModel_GetVehicleTypeContainer(swigCPtr),
false);
2080 Solver ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
Solver(cPtr, false);
2084 public bool CheckLimit(SWIGTYPE_p_absl__Duration offset) {
2100 public SWIGTYPE_p_absl__Duration
TimeBuffer() {
2107 SWIGTYPE_p_std__atomicT_bool_t ret = (cPtr == global::System.IntPtr.Zero) ?
null : new SWIGTYPE_p_std__atomicT_bool_t(cPtr, false);
2113 SWIGTYPE_p_std__atomicT_bool_t ret = (cPtr == global::System.IntPtr.Zero) ?
null : new SWIGTYPE_p_std__atomicT_bool_t(cPtr, false);
2121 public int Nodes() {
2131 public long Size() {