14using System.Collections.Generic;
15using Domain = Google.OrTools.Util.Domain;
18 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
21 internal RoutingModel(global::System.IntPtr cPtr,
bool cMemoryOwn) {
23 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
26 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
RoutingModel obj) {
27 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
30 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(RoutingModel obj) {
33 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
34 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
35 obj.swigCMemOwn =
false;
39 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
49 global::System.GC.SuppressFinalize(
this);
52 protected virtual void Dispose(
bool disposing) {
54 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
59 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
65 private List<LongToLong> unaryTransitCallbacks;
67 if (unaryTransitCallbacks ==
null)
68 unaryTransitCallbacks =
new List<LongToLong>();
69 unaryTransitCallbacks.Add(c);
73 private List<LongLongToLong> transitCallbacks;
75 if (transitCallbacks ==
null)
76 transitCallbacks =
new List<LongLongToLong>();
77 transitCallbacks.Add(c);
81 private List<VoidToVoid> solutionCallbacks;
83 if (solutionCallbacks ==
null)
84 solutionCallbacks =
new List<VoidToVoid>();
85 solutionCallbacks.Add(c);
90 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
95 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
98 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
VehicleTypeContainer obj) {
99 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
102 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(
VehicleTypeContainer obj) {
104 if (!obj.swigCMemOwn)
105 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
106 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
107 obj.swigCMemOwn =
false;
111 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
115 ~VehicleTypeContainer() {
121 global::System.GC.SuppressFinalize(
this);
124 protected virtual void Dispose(
bool disposing) {
126 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
131 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
136 public partial class VehicleClassEntry : global::System.IDisposable {
137 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
142 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
145 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
VehicleClassEntry obj) {
146 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
149 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(
VehicleClassEntry obj) {
151 if (!obj.swigCMemOwn)
152 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
153 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
154 obj.swigCMemOwn =
false;
158 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
162 ~VehicleClassEntry() {
168 global::System.GC.SuppressFinalize(
this);
171 protected virtual void Dispose(
bool disposing) {
173 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
178 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
213 public int Type(
int vehicle) {
224 IntVector ret = (cPtr == global::System.IntPtr.Zero) ?
null :
new IntVector(cPtr,
false);
229 public SWIGTYPE_p_std__vectorT_std__setT_operations_research__RoutingModel__VehicleTypeContainer__VehicleClassEntry_t_t
sorted_vehicle_classes_per_type {
235 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);
246 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);
251 public VehicleTypeContainer() : this(operations_research_constraint_solverPINVOKE.new_RoutingModel_VehicleTypeContainer(), true) {
256 public partial class ResourceGroup : global::System.IDisposable {
257 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
260 internal ResourceGroup(global::System.IntPtr cPtr,
bool cMemoryOwn) {
262 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
265 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
ResourceGroup obj) {
266 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
269 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(ResourceGroup obj) {
271 if (!obj.swigCMemOwn)
272 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
273 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
274 obj.swigCMemOwn =
false;
278 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
288 global::System.GC.SuppressFinalize(
this);
291 protected virtual void Dispose(
bool disposing) {
293 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
298 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
303 public partial class Attributes : global::System.IDisposable {
304 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
307 internal Attributes(global::System.IntPtr cPtr,
bool cMemoryOwn) {
309 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
312 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
Attributes obj) {
313 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
316 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(
Attributes obj) {
318 if (!obj.swigCMemOwn)
319 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
320 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
321 obj.swigCMemOwn =
false;
325 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
335 global::System.GC.SuppressFinalize(
this);
338 protected virtual void Dispose(
bool disposing) {
340 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
345 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
369 public partial class Resource : global::System.IDisposable {
370 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
373 internal Resource(global::System.IntPtr cPtr,
bool cMemoryOwn) {
375 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
378 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
Resource obj) {
379 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
382 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(Resource obj) {
384 if (!obj.swigCMemOwn)
385 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
386 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
387 obj.swigCMemOwn =
false;
391 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
401 global::System.GC.SuppressFinalize(
this);
404 protected virtual void Dispose(
bool disposing) {
406 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
411 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
436 if (cPtr != global::System.IntPtr.Zero) {
438 int[] outArray =
new int[tmpVector.
Count];
439 tmpVector.
CopyTo(outArray);
468 public SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__ResourceGroup__Resource_t
GetResources() {
491 if (cPtr != global::System.IntPtr.Zero) {
493 int[] outArray =
new int[tmpVector.
Count];
494 tmpVector.
CopyTo(outArray);
500 public SWIGTYPE_p_util_intops__StrongVectorT_operations_research__RoutingModel__ResourceClassIndex_std__vectorT_int_t_t
GetResourceIndicesPerClass() {
526 public partial class VariableValuePair : global::System.IDisposable {
527 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
532 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
535 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
VariableValuePair obj) {
536 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
539 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(
VariableValuePair obj) {
541 if (!obj.swigCMemOwn)
542 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
543 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
544 obj.swigCMemOwn =
false;
548 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
552 ~VariableValuePair() {
558 global::System.GC.SuppressFinalize(
this);
561 protected virtual void Dispose(
bool disposing) {
563 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
568 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
593 public VariableValuePair() : this(operations_research_constraint_solverPINVOKE.new_RoutingModel_VariableValuePair(), true) {
599 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
602 internal SecondaryOptimizer(global::System.IntPtr cPtr,
bool cMemoryOwn) {
604 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
607 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
SecondaryOptimizer obj) {
608 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
611 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(SecondaryOptimizer obj) {
613 if (!obj.swigCMemOwn)
614 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
615 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
616 obj.swigCMemOwn =
false;
620 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
624 ~SecondaryOptimizer() {
630 global::System.GC.SuppressFinalize(
this);
633 protected virtual void Dispose(
bool disposing) {
635 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
640 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
645 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) {
648 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) {
677 public RoutingModel(RoutingIndexManager index_manager) : this(operations_research_constraint_solverPINVOKE.new_RoutingModel__SWIG_0(RoutingIndexManager.getCPtr(index_manager)), true) {
678 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending)
throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
730 public bool AddDimension(
int evaluator_index,
long slack_max,
long capacity,
bool fix_start_cumul_to_zero,
string name) {
742 public bool AddDimensionWithVehicleCapacity(
int evaluator_index,
long slack_max,
long[] vehicle_capacities,
bool fix_start_cumul_to_zero,
string name) {
783, capacity, fix_start_cumul_to_zero, name),
true);
788 public SWIGTYPE_p_std__vectorT_operations_research__RoutingDimension_p_t
GetUnaryDimensions() {
817 SWIGTYPE_p_operations_research__GlobalDimensionCumulOptimizer ret = (cPtr == global::System.IntPtr.Zero) ?
null : new SWIGTYPE_p_operations_research__GlobalDimensionCumulOptimizer(cPtr, false);
824 SWIGTYPE_p_operations_research__GlobalDimensionCumulOptimizer ret = (cPtr == global::System.IntPtr.Zero) ?
null : new SWIGTYPE_p_operations_research__GlobalDimensionCumulOptimizer(cPtr, false);
831 SWIGTYPE_p_operations_research__LocalDimensionCumulOptimizer ret = (cPtr == global::System.IntPtr.Zero) ?
null : new SWIGTYPE_p_operations_research__LocalDimensionCumulOptimizer(cPtr, false);
871 public SWIGTYPE_p_std__vectorT_std__unique_ptrT_operations_research__RoutingModel__ResourceGroup_t_t
GetResourceGroups() {
885 if (cPtr != global::System.IntPtr.Zero) {
887 int[] outArray =
new int[tmpVector.
Count];
888 tmpVector.
CopyTo(outArray);
895 int ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetDimensionResourceGroupIndex(swigCPtr, RoutingDimension.getCPtr(dimension));
899 public int AddDisjunction(
long[] indices,
long penalty,
long max_cardinality,
int penalty_cost_behavior) {
903 public int AddDisjunction(
long[] indices,
long penalty,
long max_cardinality) {
918 if (cPtr != global::System.IntPtr.Zero) {
920 int[] outArray =
new int[tmpVector.
Count];
921 tmpVector.
CopyTo(outArray);
928 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_GetDisjunctionNodeIndices(swigCPtr, index);
930 if (cPtr != global::System.IntPtr.Zero) {
932 long[] outArray =
new long[tmpVector.
Count];
933 tmpVector.
CopyTo(outArray);
940 long ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetDisjunctionPenalty(swigCPtr, index);
994 public partial class PickupDeliveryPosition : global::System.IDisposable {
995 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1000 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
1004 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
1007 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(
PickupDeliveryPosition obj) {
1009 if (!obj.swigCMemOwn)
1010 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
1011 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
1012 obj.swigCMemOwn =
false;
1016 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
1020 ~PickupDeliveryPosition() {
1026 global::System.GC.SuppressFinalize(
this);
1029 protected virtual void Dispose(
bool disposing) {
1031 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
1036 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
1061 public PickupDeliveryPosition() : this(operations_research_constraint_solverPINVOKE.new_RoutingModel_PickupDeliveryPosition(), true) {
1066 public SWIGTYPE_p_std__optionalT_operations_research__RoutingModel__PickupDeliveryPosition_t
GetPickupPosition(
long node_index) {
1071 public SWIGTYPE_p_std__optionalT_operations_research__RoutingModel__PickupDeliveryPosition_t
GetDeliveryPosition(
long node_index) {
1076 public bool IsPickup(
long node_index) {
1110 public void SetVisitType(
long index,
int type,
int type_policy) {
1122 if (cPtr != global::System.IntPtr.Zero) {
1124 int[] outArray =
new int[tmpVector.
Count];
1125 tmpVector.
CopyTo(outArray);
1132 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_GetPairIndicesOfType(swigCPtr, type);
1134 if (cPtr != global::System.IntPtr.Zero) {
1136 int[] outArray =
new int[tmpVector.
Count];
1137 tmpVector.
CopyTo(outArray);
1144 int ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetVisitTypePolicy(swigCPtr, index);
1261 public void SetPathEnergyCostsOfVehicle(
string force,
string distance,
long threshold,
long cost_per_unit_below_threshold,
long cost_per_unit_above_threshold,
int vehicle) {
1277 if (cPtr != global::System.IntPtr.Zero) {
1279 long[] outArray =
new long[tmpVector.
Count];
1280 tmpVector.
CopyTo(outArray);
1287 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_GetAmortizedQuadraticCostFactorOfVehicles(swigCPtr);
1289 if (cPtr != global::System.IntPtr.Zero) {
1291 long[] outArray =
new long[tmpVector.
Count];
1292 tmpVector.
CopyTo(outArray);
1298 public void AddRouteConstraint(SWIGTYPE_p_std__functionT_std__optionalT_long_t_fstd__vectorT_int64_t_t_const_RF_t route_evaluator,
bool costs_are_homogeneous_across_vehicles) {
1299 operations_research_constraint_solverPINVOKE.RoutingModel_AddRouteConstraint__SWIG_0(swigCPtr, SWIGTYPE_p_std__functionT_std__optionalT_long_t_fstd__vectorT_int64_t_t_const_RF_t.getCPtr(route_evaluator), costs_are_homogeneous_across_vehicles);
1303 public void AddRouteConstraint(SWIGTYPE_p_std__functionT_std__optionalT_long_t_fstd__vectorT_int64_t_t_const_RF_t route_evaluator) {
1308 public SWIGTYPE_p_std__optionalT_long_t
GetRouteCost(
long[] route) {
1473 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
1520 routes.GetLength(0),
1523, ignore_inactive_indices);
1530 routes.GetLength(0),
1533, ignore_inactive_indices, close_routes,
Assignment.getCPtr(assignment));
1539 routes.GetLength(0),
1568 public partial class NodeNeighborsParameters : global::System.IDisposable {
1569 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1574 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
1578 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
1583 if (!obj.swigCMemOwn)
1584 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
1585 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
1586 obj.swigCMemOwn =
false;
1590 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
1594 ~NodeNeighborsParameters() {
1600 global::System.GC.SuppressFinalize(
this);
1603 protected virtual void Dispose(
bool disposing) {
1605 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
1610 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
1655 public NodeNeighborsParameters() : this(operations_research_constraint_solverPINVOKE.new_RoutingModel_NodeNeighborsParameters(), true) {
1661 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1664 internal NodeNeighborsByCostClass(global::System.IntPtr cPtr,
bool cMemoryOwn) {
1666 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
1670 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
1673 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(NodeNeighborsByCostClass obj) {
1675 if (!obj.swigCMemOwn)
1676 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
1677 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
1678 obj.swigCMemOwn =
false;
1682 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
1686 ~NodeNeighborsByCostClass() {
1692 global::System.GC.SuppressFinalize(
this);
1695 protected virtual void Dispose(
bool disposing) {
1697 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
1702 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
1707 public NodeNeighborsByCostClass(RoutingModel routing_model) : this(operations_research_constraint_solverPINVOKE.new_RoutingModel_NodeNeighborsByCostClass(RoutingModel.getCPtr(routing_model)), true) {
1710 public void ComputeNeighbors(RoutingModel.NodeNeighborsParameters params_) {
1718 if (cPtr != global::System.IntPtr.Zero) {
1720 int[] outArray =
new int[tmpVector.
Count];
1721 tmpVector.
CopyTo(outArray);
1730 if (cPtr != global::System.IntPtr.Zero) {
1732 int[] outArray =
new int[tmpVector.
Count];
1733 tmpVector.
CopyTo(outArray);
1785 public long Start(
int vehicle) {
1790 public long End(
int vehicle) {
1795 public bool IsStart(
long index) {
1800 public bool IsEnd(
long index) {
1839 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
1845 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
1851 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
1857 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
1863 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
1869 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
1875 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
1899 public long GetArcCostForClass(
long from_index,
long to_index,
long cost_class_index) {
1940 if (cPtr != global::System.IntPtr.Zero) {
1942 int[] outArray =
new int[tmpVector.
Count];
1943 tmpVector.
CopyTo(outArray);
1950 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingModel_GetSameActivityIndicesOfIndex(swigCPtr, node);
1952 if (cPtr != global::System.IntPtr.Zero) {
1954 int[] outArray =
new int[tmpVector.
Count];
1955 tmpVector.
CopyTo(outArray);
1962 int ret = operations_research_constraint_solverPINVOKE.RoutingModel_GetSameActivityGroupOfIndex(swigCPtr, node);
1974 if (cPtr != global::System.IntPtr.Zero) {
1976 int[] outArray =
new int[tmpVector.
Count];
1977 tmpVector.
CopyTo(outArray);
1984 RoutingModel.VehicleTypeContainer ret =
new RoutingModel.VehicleTypeContainer(operations_research_constraint_solverPINVOKE.RoutingModel_GetVehicleTypeContainer(swigCPtr),
false);
2007 Solver ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
Solver(cPtr, false);
2011 public bool CheckLimit(SWIGTYPE_p_absl__Duration offset) {
2027 public SWIGTYPE_p_absl__Duration
TimeBuffer() {
2034 SWIGTYPE_p_std__atomicT_bool_t ret = (cPtr == global::System.IntPtr.Zero) ?
null : new SWIGTYPE_p_std__atomicT_bool_t(cPtr, false);
2040 SWIGTYPE_p_std__atomicT_bool_t ret = (cPtr == global::System.IntPtr.Zero) ?
null : new SWIGTYPE_p_std__atomicT_bool_t(cPtr, false);
2048 public int Nodes() {
2058 public long Size() {
2106 public SWIGTYPE_p_std__vectorT_std__pairT_long_long_t_t
GetSameVehicleClassArcs(
long from_index,
long to_index) {