9package com.google.ortools.constraintsolver;
12import com.google.ortools.constraintsolver.Assignment;
13import com.google.ortools.constraintsolver.DecisionBuilder;
14import com.google.ortools.constraintsolver.IntVar;
15import com.google.ortools.constraintsolver.IntervalVar;
16import com.google.ortools.constraintsolver.LocalSearchFilter;
17import com.google.ortools.constraintsolver.LocalSearchOperator;
18import com.google.ortools.constraintsolver.SearchMonitor;
19import com.google.ortools.constraintsolver.Solver;
21import com.google.ortools.util.Domain;
24import java.util.function.LongBinaryOperator;
27import java.util.function.LongUnaryOperator;
30 private transient long swigCPtr;
39 return (obj ==
null) ? 0 : obj.swigCPtr;
46 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
48 obj.swigCMemOwn =
false;
54 @SuppressWarnings({
"deprecation",
"removal"})
63 mainJNI.delete_RoutingModel(swigCPtr);
75 private transient long swigCPtr;
84 return (obj ==
null) ? 0 : obj.swigCPtr;
91 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
93 obj.swigCMemOwn =
false;
99 @SuppressWarnings({
"deprecation",
"removal"})
108 mainJNI.delete_RoutingModel_VehicleTypeContainer(swigCPtr);
115 private transient long swigCPtr;
124 return (obj ==
null) ? 0 : obj.swigCPtr;
131 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
133 obj.swigCMemOwn =
false;
139 @SuppressWarnings({
"deprecation",
"removal"})
148 mainJNI.delete_RoutingModel_VehicleTypeContainer_VehicleClassEntry(swigCPtr);
155 mainJNI.RoutingModel_VehicleTypeContainer_VehicleClassEntry_vehicle_class_set(swigCPtr,
this, value);
159 return mainJNI.RoutingModel_VehicleTypeContainer_VehicleClassEntry_vehicle_class_get(swigCPtr,
this);
163 mainJNI.RoutingModel_VehicleTypeContainer_VehicleClassEntry_fixed_cost_set(swigCPtr,
this, value);
167 return mainJNI.RoutingModel_VehicleTypeContainer_VehicleClassEntry_fixed_cost_get(swigCPtr,
this);
171 this(mainJNI.new_RoutingModel_VehicleTypeContainer_VehicleClassEntry(),
true);
177 return mainJNI.RoutingModel_VehicleTypeContainer_NumTypes(swigCPtr,
this);
181 return mainJNI.RoutingModel_VehicleTypeContainer_Type(swigCPtr,
this, vehicle);
185 mainJNI.RoutingModel_VehicleTypeContainer_type_index_of_vehicle_set(swigCPtr,
this, value);
189 return mainJNI.RoutingModel_VehicleTypeContainer_type_index_of_vehicle_get(swigCPtr,
this);
193 mainJNI.RoutingModel_VehicleTypeContainer_sorted_vehicle_classes_per_type_set(swigCPtr,
this, SWIGTYPE_p_std__vectorT_std__setT_operations_research__RoutingModel__VehicleTypeContainer__VehicleClassEntry_t_t.getCPtr(value));
197 long cPtr = mainJNI.RoutingModel_VehicleTypeContainer_sorted_vehicle_classes_per_type_get(swigCPtr,
this);
198 return (cPtr == 0) ? null :
new SWIGTYPE_p_std__vectorT_std__setT_operations_research__RoutingModel__VehicleTypeContainer__VehicleClassEntry_t_t(cPtr,
false);
202 mainJNI.RoutingModel_VehicleTypeContainer_vehicles_per_vehicle_class_set(swigCPtr,
this, SWIGTYPE_p_std__vectorT_std__dequeT_int_t_t.getCPtr(value));
206 return new SWIGTYPE_p_std__vectorT_std__dequeT_int_t_t(mainJNI.RoutingModel_VehicleTypeContainer_vehicles_per_vehicle_class_get(swigCPtr,
this),
true);
210 this(mainJNI.new_RoutingModel_VehicleTypeContainer(),
true);
229 private transient long swigCPtr;
238 return (obj ==
null) ? 0 : obj.swigCPtr;
245 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
247 obj.swigCMemOwn =
false;
253 @SuppressWarnings({
"deprecation",
"removal"})
262 mainJNI.delete_RoutingModel_ResourceGroup(swigCPtr);
272 private transient long swigCPtr;
281 return (obj ==
null) ? 0 : obj.swigCPtr;
288 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
290 obj.swigCMemOwn =
false;
296 @SuppressWarnings({
"deprecation",
"removal"})
305 mainJNI.delete_RoutingModel_ResourceGroup_Attributes(swigCPtr);
312 this(mainJNI.new_RoutingModel_ResourceGroup_Attributes__SWIG_0(),
true);
320 return new Domain(mainJNI.RoutingModel_ResourceGroup_Attributes_start_domain(swigCPtr,
this),
false);
324 return new Domain(mainJNI.RoutingModel_ResourceGroup_Attributes_end_domain(swigCPtr,
this),
false);
333 private transient long swigCPtr;
342 return (obj ==
null) ? 0 : obj.swigCPtr;
349 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
351 obj.swigCMemOwn =
false;
357 @SuppressWarnings({
"deprecation",
"removal"})
366 mainJNI.delete_RoutingModel_ResourceGroup_Resource(swigCPtr);
373 return new RoutingModel.ResourceGroup.Attributes(mainJNI.RoutingModel_ResourceGroup_Resource_GetDimensionAttributes(swigCPtr,
this,
RoutingDimension.
getCPtr(dimension), dimension),
false);
383 return mainJNI.RoutingModel_ResourceGroup_AddResource(swigCPtr,
this,
RoutingModel.ResourceGroup.Attributes.getCPtr(attributes), attributes,
RoutingDimension.
getCPtr(dimension), dimension);
392 mainJNI.RoutingModel_ResourceGroup_NotifyVehicleRequiresAResource(swigCPtr,
this, vehicle);
396 return mainJNI.RoutingModel_ResourceGroup_GetVehiclesRequiringAResource(swigCPtr,
this);
400 return mainJNI.RoutingModel_ResourceGroup_VehicleRequiresAResource(swigCPtr,
this, vehicle);
404 mainJNI.RoutingModel_ResourceGroup_SetAllowedResourcesForVehicle(swigCPtr,
this, vehicle, allowed_resource_indices);
408 mainJNI.RoutingModel_ResourceGroup_ClearAllowedResourcesForVehicle(swigCPtr,
this, vehicle);
412 return new SWIGTYPE_p_absl__flat_hash_setT_int_t(mainJNI.RoutingModel_ResourceGroup_GetResourcesMarkedAllowedForVehicle(swigCPtr,
this, vehicle),
false);
416 return mainJNI.RoutingModel_ResourceGroup_IsResourceAllowedForVehicle(swigCPtr,
this, resource, vehicle);
419 public SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__ResourceGroup__Resource_t
GetResources() {
420 return new SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__ResourceGroup__Resource_t(mainJNI.RoutingModel_ResourceGroup_GetResources(swigCPtr,
this),
false);
424 return new RoutingModel.ResourceGroup.Resource(mainJNI.RoutingModel_ResourceGroup_GetResource(swigCPtr,
this, resource_index),
false);
428 return new SWIGTYPE_p_absl__flat_hash_setT_RoutingDimensionIndex_t(mainJNI.RoutingModel_ResourceGroup_GetAffectedDimensionIndices(swigCPtr,
this),
false);
432 return mainJNI.RoutingModel_ResourceGroup_GetResourceClassesCount(swigCPtr,
this);
436 return mainJNI.RoutingModel_ResourceGroup_GetResourceIndicesInClass(swigCPtr,
this, resource_class);
439 public SWIGTYPE_p_util_intops__StrongVectorT_operations_research__RoutingModel__ResourceClassIndex_std__vectorT_int_t_t
GetResourceIndicesPerClass() {
440 return new SWIGTYPE_p_util_intops__StrongVectorT_operations_research__RoutingModel__ResourceClassIndex_std__vectorT_int_t_t(mainJNI.RoutingModel_ResourceGroup_GetResourceIndicesPerClass(swigCPtr,
this),
false);
444 return mainJNI.RoutingModel_ResourceGroup_GetResourceClassIndex(swigCPtr,
this, resource_index);
448 return new RoutingModel.ResourceGroup.Attributes(mainJNI.RoutingModel_ResourceGroup_GetDimensionAttributesForClass(swigCPtr,
this,
RoutingDimension.
getCPtr(dimension), dimension, rc_index),
false);
452 return mainJNI.RoutingModel_ResourceGroup_Size(swigCPtr,
this);
456 return mainJNI.RoutingModel_ResourceGroup_Index(swigCPtr,
this);
465 private transient long swigCPtr;
474 return (obj ==
null) ? 0 : obj.swigCPtr;
481 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
483 obj.swigCMemOwn =
false;
489 @SuppressWarnings({
"deprecation",
"removal"})
498 mainJNI.delete_RoutingModel_VariableValuePair(swigCPtr);
505 mainJNI.RoutingModel_VariableValuePair_var_index_set(swigCPtr,
this, value);
509 return mainJNI.RoutingModel_VariableValuePair_var_index_get(swigCPtr,
this);
513 mainJNI.RoutingModel_VariableValuePair_value_set(swigCPtr,
this, value);
517 return mainJNI.RoutingModel_VariableValuePair_value_get(swigCPtr,
this);
521 this(mainJNI.new_RoutingModel_VariableValuePair(),
true);
530 private transient long swigCPtr;
539 return (obj ==
null) ? 0 : obj.swigCPtr;
546 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
548 obj.swigCMemOwn =
false;
554 @SuppressWarnings({
"deprecation",
"removal"})
563 mainJNI.delete_RoutingModel_SecondaryOptimizer(swigCPtr);
570 this(mainJNI.new_RoutingModel_SecondaryOptimizer(
RoutingModel.getCPtr(model), model, search_parameters.toByteArray(), solve_period),
true);
573 public boolean Solve(SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__VariableValuePair_t in_state, SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__VariableValuePair_t out_state) {
574 return mainJNI.RoutingModel_SecondaryOptimizer_Solve(swigCPtr,
this, SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__VariableValuePair_t.getCPtr(in_state), SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__VariableValuePair_t.getCPtr(out_state));
583 return mainJNI.RoutingModel_kNoPenalty_get();
591 return mainJNI.RoutingModel_kNoDisjunction_get();
599 return mainJNI.RoutingModel_kNoDimension_get();
612 this(mainJNI.new_RoutingModel__SWIG_1(
RoutingIndexManager.
getCPtr(index_manager), index_manager, parameters.toByteArray()),
true);
623 return mainJNI.RoutingModel_registerUnaryTransitVector(swigCPtr,
this, values);
627 return mainJNI.RoutingModel_registerUnaryTransitCallback__SWIG_0(swigCPtr,
this, callback, sign);
631 return mainJNI.RoutingModel_registerUnaryTransitCallback__SWIG_1(swigCPtr,
this, callback);
635 return mainJNI.RoutingModel_registerTransitMatrix(swigCPtr,
this, values);
639 return mainJNI.RoutingModel_registerTransitCallback__SWIG_0(swigCPtr,
this, callback, sign);
643 return mainJNI.RoutingModel_registerTransitCallback__SWIG_1(swigCPtr,
this, callback);
647 return mainJNI.RoutingModel_RegisterCumulDependentTransitCallback(swigCPtr,
this, SWIGTYPE_p_std__functionT_FloatSlopePiecewiseLinearFunction_const_pflong_longF_t.getCPtr(callback));
651 return new SWIGTYPE_p_std__functionT_FloatSlopePiecewiseLinearFunction_const_pflong_longF_t(mainJNI.RoutingModel_CumulDependentTransitCallback(swigCPtr,
this, callback_index),
false);
676 public boolean addDimension(
int evaluator_index,
long slack_max,
long capacity,
boolean fix_start_cumul_to_zero, String name) {
677 return mainJNI.RoutingModel_addDimension(swigCPtr,
this, evaluator_index, slack_max, capacity, fix_start_cumul_to_zero, name);
681 return mainJNI.RoutingModel_addDimensionWithVehicleTransits(swigCPtr,
this, evaluator_indices, slack_max, capacity, fix_start_cumul_to_zero, name);
685 return mainJNI.RoutingModel_addDimensionWithVehicleCapacity(swigCPtr,
this, evaluator_index, slack_max, vehicle_capacities, fix_start_cumul_to_zero, name);
689 return mainJNI.RoutingModel_addDimensionWithVehicleTransitAndCapacity(swigCPtr,
this, evaluator_indices, slack_max, vehicle_capacities, fix_start_cumul_to_zero, name);
701 return mainJNI.RoutingModel_AddDimensionWithCumulDependentVehicleTransitAndCapacity(swigCPtr,
this, fixed_evaluator_indices, cumul_dependent_evaluator_indices, slack_max, vehicle_capacities, fix_start_cumul_to_zero, name);
715 return new IntBoolPair(mainJNI.RoutingModel_addConstantDimensionWithSlack(swigCPtr,
this, value, capacity, slack_max, fix_start_cumul_to_zero, name),
true);
719 return new IntBoolPair(mainJNI.RoutingModel_addConstantDimension(swigCPtr,
this, value, capacity, fix_start_cumul_to_zero, name),
true);
734 return new IntBoolPair(mainJNI.RoutingModel_addVectorDimension(swigCPtr,
this, values, capacity, fix_start_cumul_to_zero, name),
true);
749 return new IntBoolPair(mainJNI.RoutingModel_addMatrixDimension(swigCPtr,
this, values, capacity, fix_start_cumul_to_zero, name),
true);
756 return new SWIGTYPE_p_std__vectorT_operations_research__RoutingDimension_p_t(mainJNI.RoutingModel_GetUnaryDimensions(swigCPtr,
this),
true);
763 return new SWIGTYPE_p_std__vectorT_operations_research__RoutingDimension_const_p_t(mainJNI.RoutingModel_GetDimensionsWithGlobalCumulOptimizers(swigCPtr,
this),
true);
767 return new SWIGTYPE_p_std__vectorT_operations_research__RoutingDimension_const_p_t(mainJNI.RoutingModel_GetDimensionsWithLocalCumulOptimizers(swigCPtr,
this),
true);
774 return mainJNI.RoutingModel_HasGlobalCumulOptimizer(swigCPtr,
this,
RoutingDimension.
getCPtr(dimension), dimension);
778 return mainJNI.RoutingModel_HasLocalCumulOptimizer(swigCPtr,
this,
RoutingDimension.
getCPtr(dimension), dimension);
786 long cPtr = mainJNI.RoutingModel_GetMutableGlobalCumulLPOptimizer(swigCPtr,
this,
RoutingDimension.
getCPtr(dimension), dimension);
787 return (cPtr == 0) ? null :
new SWIGTYPE_p_operations_research__GlobalDimensionCumulOptimizer(cPtr,
false);
791 long cPtr = mainJNI.RoutingModel_GetMutableGlobalCumulMPOptimizer(swigCPtr,
this,
RoutingDimension.
getCPtr(dimension), dimension);
792 return (cPtr == 0) ? null :
new SWIGTYPE_p_operations_research__GlobalDimensionCumulOptimizer(cPtr,
false);
796 long cPtr = mainJNI.RoutingModel_GetMutableLocalCumulLPOptimizer(swigCPtr,
this,
RoutingDimension.
getCPtr(dimension), dimension);
797 return (cPtr == 0) ? null :
new SWIGTYPE_p_operations_research__LocalDimensionCumulOptimizer(cPtr,
false);
804 return mainJNI.RoutingModel_hasDimension(swigCPtr,
this, dimension_name);
811 return new RoutingDimension(mainJNI.RoutingModel_getDimensionOrDie(swigCPtr,
this, dimension_name),
false);
819 long cPtr = mainJNI.RoutingModel_getMutableDimension(swigCPtr,
this, dimension_name);
830 mainJNI.RoutingModel_setPrimaryConstrainedDimension(swigCPtr,
this, dimension_name);
837 return mainJNI.RoutingModel_getPrimaryConstrainedDimension(swigCPtr,
this);
844 long cPtr = mainJNI.RoutingModel_AddResourceGroup(swigCPtr,
this);
845 return (cPtr == 0) ? null :
new RoutingModel.ResourceGroup(cPtr,
false);
848 public SWIGTYPE_p_std__vectorT_std__unique_ptrT_operations_research__RoutingModel__ResourceGroup_t_t
GetResourceGroups() {
849 return new SWIGTYPE_p_std__vectorT_std__unique_ptrT_operations_research__RoutingModel__ResourceGroup_t_t(mainJNI.RoutingModel_GetResourceGroups(swigCPtr,
this),
false);
853 long cPtr = mainJNI.RoutingModel_GetResourceGroup(swigCPtr,
this, rg_index);
854 return (cPtr == 0) ? null :
new RoutingModel.ResourceGroup(cPtr,
false);
862 return mainJNI.RoutingModel_GetDimensionResourceGroupIndices(swigCPtr,
this,
RoutingDimension.
getCPtr(dimension), dimension);
870 return mainJNI.RoutingModel_GetDimensionResourceGroupIndex(swigCPtr,
this,
RoutingDimension.
getCPtr(dimension), dimension);
896 public int addDisjunction(
long[] indices,
long penalty,
long max_cardinality,
int penalty_cost_behavior) {
897 return mainJNI.RoutingModel_addDisjunction__SWIG_0(swigCPtr,
this, indices, penalty, max_cardinality, penalty_cost_behavior);
924 return mainJNI.RoutingModel_addDisjunction__SWIG_1(swigCPtr,
this, indices, penalty, max_cardinality);
951 return mainJNI.RoutingModel_addDisjunction__SWIG_2(swigCPtr,
this, indices, penalty);
978 return mainJNI.RoutingModel_addDisjunction__SWIG_3(swigCPtr,
this, indices);
985 return mainJNI.RoutingModel_getDisjunctionIndices(swigCPtr,
this, index);
993 return mainJNI.RoutingModel_GetDisjunctionNodeIndices(swigCPtr,
this, index);
1000 return mainJNI.RoutingModel_getDisjunctionPenalty(swigCPtr,
this, index);
1008 return mainJNI.RoutingModel_getDisjunctionMaxCardinality(swigCPtr,
this, index);
1016 return mainJNI.RoutingModel_GetDisjunctionPenaltyCostBehavior(swigCPtr,
this, index);
1023 return mainJNI.RoutingModel_getNumberOfDisjunctions(swigCPtr,
this);
1031 return mainJNI.RoutingModel_HasMandatoryDisjunctions(swigCPtr,
this);
1039 return mainJNI.RoutingModel_HasMaxCardinalityConstrainedDisjunctions(swigCPtr,
this);
1050 mainJNI.RoutingModel_ignoreDisjunctionsAlreadyForcedToZero(swigCPtr,
this);
1059 mainJNI.RoutingModel_addSoftSameVehicleConstraint(swigCPtr,
this, indices, cost);
1069 mainJNI.RoutingModel_setAllowedVehiclesForIndex(swigCPtr,
this,
vehicles, index);
1076 return mainJNI.RoutingModel_isVehicleAllowedForIndex(swigCPtr,
this, vehicle, index);
1095 mainJNI.RoutingModel_addPickupAndDelivery(swigCPtr,
this, pickup, delivery);
1104 mainJNI.RoutingModel_addPickupAndDeliverySets(swigCPtr,
this, pickup_disjunction, delivery_disjunction);
1111 private transient long swigCPtr;
1120 return (obj ==
null) ? 0 : obj.swigCPtr;
1127 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
1129 obj.swigCMemOwn =
false;
1135 @SuppressWarnings({
"deprecation",
"removal"})
1141 if (swigCPtr != 0) {
1144 mainJNI.delete_RoutingModel_PickupDeliveryPosition(swigCPtr);
1154 mainJNI.RoutingModel_PickupDeliveryPosition_pd_pair_index_set(swigCPtr,
this, value);
1161 return mainJNI.RoutingModel_PickupDeliveryPosition_pd_pair_index_get(swigCPtr,
this);
1169 mainJNI.RoutingModel_PickupDeliveryPosition_alternative_index_set(swigCPtr,
this, value);
1177 return mainJNI.RoutingModel_PickupDeliveryPosition_alternative_index_get(swigCPtr,
this);
1181 this(mainJNI.new_RoutingModel_PickupDeliveryPosition(),
true);
1189 public SWIGTYPE_p_std__optionalT_operations_research__RoutingModel__PickupDeliveryPosition_t
GetPickupPosition(
long node_index) {
1190 return new SWIGTYPE_p_std__optionalT_operations_research__RoutingModel__PickupDeliveryPosition_t(mainJNI.RoutingModel_GetPickupPosition(swigCPtr,
this, node_index),
true);
1196 public SWIGTYPE_p_std__optionalT_operations_research__RoutingModel__PickupDeliveryPosition_t
GetDeliveryPosition(
long node_index) {
1197 return new SWIGTYPE_p_std__optionalT_operations_research__RoutingModel__PickupDeliveryPosition_t(mainJNI.RoutingModel_GetDeliveryPosition(swigCPtr,
this, node_index),
true);
1204 return mainJNI.RoutingModel_IsPickup(swigCPtr,
this, node_index);
1208 return mainJNI.RoutingModel_IsDelivery(swigCPtr,
this, node_index);
1216 mainJNI.RoutingModel_setPickupAndDeliveryPolicyOfAllVehicles(swigCPtr,
this, policy);
1220 mainJNI.RoutingModel_setPickupAndDeliveryPolicyOfVehicle(swigCPtr,
this, policy, vehicle);
1224 return mainJNI.RoutingModel_getPickupAndDeliveryPolicyOfVehicle(swigCPtr,
this, vehicle);
1232 return mainJNI.RoutingModel_getNumOfSingletonNodes(swigCPtr,
this);
1236 return new SWIGTYPE_p_std__optionalT_long_t(mainJNI.RoutingModel_GetFirstMatchingPickupDeliverySibling(swigCPtr,
this, node, SWIGTYPE_p_std__functionT_bool_flongF_t.getCPtr(is_match)),
true);
1240 mainJNI.RoutingModel_setVisitType(swigCPtr,
this, index, type, type_policy);
1244 return mainJNI.RoutingModel_getVisitType(swigCPtr,
this, index);
1248 return mainJNI.RoutingModel_GetSingleNodesOfType(swigCPtr,
this, type);
1252 return mainJNI.RoutingModel_GetPairIndicesOfType(swigCPtr,
this, type);
1256 return mainJNI.RoutingModel_GetVisitTypePolicy(swigCPtr,
this, index);
1260 return mainJNI.RoutingModel_getNumberOfVisitTypes(swigCPtr,
this);
1273 mainJNI.RoutingModel_addHardTypeIncompatibility(swigCPtr,
this, type1, type2);
1277 mainJNI.RoutingModel_addTemporalTypeIncompatibility(swigCPtr,
this, type1, type2);
1281 return new SWIGTYPE_p_absl__flat_hash_setT_int_t(mainJNI.RoutingModel_getTemporalTypeIncompatibilitiesOfType(swigCPtr,
this, type),
false);
1289 return mainJNI.RoutingModel_hasHardTypeIncompatibilities(swigCPtr,
this);
1293 return mainJNI.RoutingModel_hasTemporalTypeIncompatibilities(swigCPtr,
this);
1303 mainJNI.RoutingModel_addRequiredTypeAlternativesWhenAddingType(swigCPtr,
this, dependent_type, SWIGTYPE_p_absl__flat_hash_setT_int_t.getCPtr(required_type_alternatives));
1314 mainJNI.RoutingModel_addRequiredTypeAlternativesWhenRemovingType(swigCPtr,
this, dependent_type, SWIGTYPE_p_absl__flat_hash_setT_int_t.getCPtr(required_type_alternatives));
1321 return new SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t(mainJNI.RoutingModel_GetRequiredTypeAlternativesWhenAddingType(swigCPtr,
this, type),
false);
1328 return new SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t(mainJNI.RoutingModel_GetRequiredTypeAlternativesWhenRemovingType(swigCPtr,
this, type),
false);
1336 return mainJNI.RoutingModel_hasSameVehicleTypeRequirements(swigCPtr,
this);
1340 return mainJNI.RoutingModel_hasTemporalTypeRequirements(swigCPtr,
this);
1350 return mainJNI.RoutingModel_unperformedPenalty(swigCPtr,
this, var_index);
1359 return mainJNI.RoutingModel_unperformedPenaltyOrValue(swigCPtr,
this, default_value, var_index);
1368 return mainJNI.RoutingModel_getDepot(swigCPtr,
this);
1378 mainJNI.RoutingModel_SetMaximumNumberOfActiveVehicles(swigCPtr,
this, max_active_vehicles);
1385 return mainJNI.RoutingModel_GetMaximumNumberOfActiveVehicles(swigCPtr,
this);
1394 mainJNI.RoutingModel_setArcCostEvaluatorOfAllVehicles(swigCPtr,
this, evaluator_index);
1401 mainJNI.RoutingModel_setArcCostEvaluatorOfVehicle(swigCPtr,
this, evaluator_index, vehicle);
1409 mainJNI.RoutingModel_setFixedCostOfAllVehicles(swigCPtr,
this, cost);
1416 mainJNI.RoutingModel_setFixedCostOfVehicle(swigCPtr,
this, cost, vehicle);
1425 return mainJNI.RoutingModel_getFixedCostOfVehicle(swigCPtr,
this, vehicle);
1429 mainJNI.RoutingModel_SetPathEnergyCostOfVehicle(swigCPtr,
this, force, distance, cost_per_unit, vehicle);
1432 public void SetPathEnergyCostsOfVehicle(String force, String distance,
long threshold,
long cost_per_unit_below_threshold,
long cost_per_unit_above_threshold,
int vehicle) {
1433 mainJNI.RoutingModel_SetPathEnergyCostsOfVehicle(swigCPtr,
this, force, distance, threshold, cost_per_unit_below_threshold, cost_per_unit_above_threshold, vehicle);
1454 mainJNI.RoutingModel_setAmortizedCostFactorsOfAllVehicles(swigCPtr,
this, linear_cost_factor, quadratic_cost_factor);
1461 mainJNI.RoutingModel_setAmortizedCostFactorsOfVehicle(swigCPtr,
this, linear_cost_factor, quadratic_cost_factor, vehicle);
1465 return mainJNI.RoutingModel_getAmortizedLinearCostFactorOfVehicles(swigCPtr,
this);
1469 return mainJNI.RoutingModel_getAmortizedQuadraticCostFactorOfVehicles(swigCPtr,
this);
1472 public void AddRouteConstraint(SWIGTYPE_p_std__functionT_std__optionalT_long_t_fstd__vectorT_long_t_const_RF_t route_evaluator,
boolean costs_are_homogeneous_across_vehicles) {
1473 mainJNI.RoutingModel_AddRouteConstraint__SWIG_0(swigCPtr,
this, SWIGTYPE_p_std__functionT_std__optionalT_long_t_fstd__vectorT_long_t_const_RF_t.getCPtr(route_evaluator), costs_are_homogeneous_across_vehicles);
1476 public void AddRouteConstraint(SWIGTYPE_p_std__functionT_std__optionalT_long_t_fstd__vectorT_long_t_const_RF_t route_evaluator) {
1477 mainJNI.RoutingModel_AddRouteConstraint__SWIG_1(swigCPtr,
this, SWIGTYPE_p_std__functionT_std__optionalT_long_t_fstd__vectorT_long_t_const_RF_t.getCPtr(route_evaluator));
1481 return new SWIGTYPE_p_std__optionalT_long_t(mainJNI.RoutingModel_GetRouteCost(swigCPtr,
this, route),
true);
1485 mainJNI.RoutingModel_SetVehicleUsedWhenEmpty(swigCPtr,
this, is_used, vehicle);
1489 return mainJNI.RoutingModel_IsVehicleUsedWhenEmpty(swigCPtr,
this, vehicle);
1498 mainJNI.RoutingModel_setFirstSolutionEvaluator(swigCPtr,
this, evaluator);
1508 mainJNI.RoutingModel_SetFirstSolutionHint(swigCPtr,
this,
Assignment.
getCPtr(hint), hint);
1515 long cPtr = mainJNI.RoutingModel_GetFirstSolutionHint(swigCPtr,
this);
1516 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1531 mainJNI.RoutingModel_addSearchMonitor(swigCPtr,
this,
SearchMonitor.
getCPtr(monitor), monitor);
1535 mainJNI.RoutingModel_AddEnterSearchCallback(swigCPtr,
this, callback);
1547 mainJNI.RoutingModel_addAtSolutionCallback__SWIG_0(swigCPtr,
this, callback, track_unchecked_neighbors);
1559 mainJNI.RoutingModel_addAtSolutionCallback__SWIG_1(swigCPtr,
this, callback);
1563 mainJNI.RoutingModel_AddRestoreDimensionValuesResetCallback(swigCPtr,
this, callback);
1573 mainJNI.RoutingModel_addVariableMinimizedByFinalizer(swigCPtr,
this,
IntVar.
getCPtr(var), var);
1581 mainJNI.RoutingModel_addVariableMaximizedByFinalizer(swigCPtr,
this,
IntVar.
getCPtr(var), var);
1589 mainJNI.RoutingModel_AddWeightedVariableMinimizedByFinalizer(swigCPtr,
this,
IntVar.
getCPtr(var), var, cost);
1597 mainJNI.RoutingModel_AddWeightedVariableMaximizedByFinalizer(swigCPtr,
this,
IntVar.
getCPtr(var), var, cost);
1605 mainJNI.RoutingModel_addVariableTargetToFinalizer(swigCPtr,
this,
IntVar.
getCPtr(var), var, target);
1613 mainJNI.RoutingModel_AddWeightedVariableTargetToFinalizer(swigCPtr,
this,
IntVar.
getCPtr(var), var, target, cost);
1625 mainJNI.RoutingModel_closeModel(swigCPtr,
this);
1633 mainJNI.RoutingModel_closeModelWithParameters(swigCPtr,
this, search_parameters.toByteArray());
1645 long cPtr = mainJNI.RoutingModel_solve__SWIG_0(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment);
1646 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1658 long cPtr = mainJNI.RoutingModel_solve__SWIG_1(swigCPtr,
this);
1659 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1672 long cPtr = mainJNI.RoutingModel_solveWithParameters(swigCPtr,
this, search_parameters.toByteArray());
1673 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1681 long cPtr = mainJNI.RoutingModel_solveFromAssignmentWithParameters(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment, search_parameters.toByteArray());
1682 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1692 long cPtr = mainJNI.RoutingModel_FastSolveFromAssignmentWithParameters__SWIG_0(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment, search_parameters.toByteArray(), check_solution_in_cp, SWIGTYPE_p_absl__flat_hash_setT_operations_research__IntVar_p_t.
getCPtr(touched));
1693 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1703 long cPtr = mainJNI.RoutingModel_FastSolveFromAssignmentWithParameters__SWIG_1(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment, search_parameters.toByteArray(), check_solution_in_cp);
1704 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1711 public Assignment SolveFromAssignmentsWithParameters(SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t assignments, com.google.ortools.constraintsolver.RoutingSearchParameters search_parameters, SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t solutions) {
1712 long cPtr = mainJNI.RoutingModel_SolveFromAssignmentsWithParameters__SWIG_0(swigCPtr,
this, SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t.getCPtr(assignments), search_parameters.toByteArray(), SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t.getCPtr(solutions));
1713 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1721 long cPtr = mainJNI.RoutingModel_SolveFromAssignmentsWithParameters__SWIG_1(swigCPtr,
this, SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t.getCPtr(assignments), search_parameters.toByteArray());
1722 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1730 long cPtr = mainJNI.RoutingModel_SolveWithIteratedLocalSearch(swigCPtr,
this, search_parameters.toByteArray());
1731 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1742 mainJNI.RoutingModel_setAssignmentFromOtherModelAssignment(swigCPtr,
this,
Assignment.
getCPtr(target_assignment), target_assignment,
RoutingModel.getCPtr(source_model), source_model,
Assignment.
getCPtr(source_assignment), source_assignment);
1753 return mainJNI.RoutingModel_computeLowerBound(swigCPtr,
this);
1761 return mainJNI.RoutingModel_objective_lower_bound(swigCPtr,
this);
1768 return com.google.ortools.constraintsolver.RoutingSearchStatus.Value.forNumber(mainJNI.RoutingModel_status(swigCPtr,
this));
1775 return mainJNI.RoutingModel_enable_deep_serialization(swigCPtr,
this);
1789 long cPtr = mainJNI.RoutingModel_applyLocks(swigCPtr,
this, locks);
1790 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
1804 return mainJNI.RoutingModel_applyLocksToAllVehicles(swigCPtr,
this, locks, close_routes);
1814 long cPtr = mainJNI.RoutingModel_preAssignment(swigCPtr,
this);
1815 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1819 long cPtr = mainJNI.RoutingModel_mutablePreAssignment(swigCPtr,
this);
1820 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1829 return mainJNI.RoutingModel_writeAssignment(swigCPtr,
this, file_name);
1838 long cPtr = mainJNI.RoutingModel_readAssignment(swigCPtr,
this, file_name);
1839 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1847 long cPtr = mainJNI.RoutingModel_restoreAssignment(swigCPtr,
this,
Assignment.
getCPtr(solution), solution);
1848 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1859 long cPtr = mainJNI.RoutingModel_readAssignmentFromRoutes(swigCPtr,
this, routes, ignore_inactive_indices);
1860 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1882 return mainJNI.RoutingModel_routesToAssignment(swigCPtr,
this, routes, ignore_inactive_indices, close_routes,
Assignment.
getCPtr(assignment), assignment);
1891 mainJNI.RoutingModel_assignmentToRoutes(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment, routes);
1918 long cPtr = mainJNI.RoutingModel_compactAssignment(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment);
1919 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1928 long cPtr = mainJNI.RoutingModel_compactAndCheckAssignment(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment);
1929 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1936 mainJNI.RoutingModel_addToAssignment(swigCPtr,
this,
IntVar.
getCPtr(var), var);
1940 mainJNI.RoutingModel_addIntervalToAssignment(swigCPtr,
this,
IntervalVar.
getCPtr(interval), interval);
1944 private transient long swigCPtr;
1953 return (obj ==
null) ? 0 : obj.swigCPtr;
1960 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
1962 obj.swigCMemOwn =
false;
1968 @SuppressWarnings({
"deprecation",
"removal"})
1974 if (swigCPtr != 0) {
1977 mainJNI.delete_RoutingModel_NodeNeighborsParameters(swigCPtr);
1984 mainJNI.RoutingModel_NodeNeighborsParameters_num_neighbors_set(swigCPtr,
this, value);
1988 return mainJNI.RoutingModel_NodeNeighborsParameters_num_neighbors_get(swigCPtr,
this);
1992 mainJNI.RoutingModel_NodeNeighborsParameters_add_vehicle_starts_to_neighbors_set(swigCPtr,
this, value);
1996 return mainJNI.RoutingModel_NodeNeighborsParameters_add_vehicle_starts_to_neighbors_get(swigCPtr,
this);
2000 mainJNI.RoutingModel_NodeNeighborsParameters_add_vehicle_ends_to_neighbors_set(swigCPtr,
this, value);
2004 return mainJNI.RoutingModel_NodeNeighborsParameters_add_vehicle_ends_to_neighbors_get(swigCPtr,
this);
2008 mainJNI.RoutingModel_NodeNeighborsParameters_only_sort_neighbors_for_partial_neighborhoods_set(swigCPtr,
this, value);
2012 return mainJNI.RoutingModel_NodeNeighborsParameters_only_sort_neighbors_for_partial_neighborhoods_get(swigCPtr,
this);
2016 this(mainJNI.new_RoutingModel_NodeNeighborsParameters(),
true);
2022 private transient long swigCPtr;
2031 return (obj ==
null) ? 0 : obj.swigCPtr;
2038 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
2040 obj.swigCMemOwn =
false;
2046 @SuppressWarnings({
"deprecation",
"removal"})
2052 if (swigCPtr != 0) {
2055 mainJNI.delete_RoutingModel_NodeNeighborsByCostClass(swigCPtr);
2062 this(mainJNI.new_RoutingModel_NodeNeighborsByCostClass(
RoutingModel.getCPtr(routing_model), routing_model),
true);
2070 mainJNI.RoutingModel_NodeNeighborsByCostClass_ComputeNeighbors(swigCPtr,
this,
RoutingModel.NodeNeighborsParameters.getCPtr(params), params);
2079 return mainJNI.RoutingModel_NodeNeighborsByCostClass_GetIncomingNeighborsOfNodeForCostClass(swigCPtr,
this, cost_class, node_index);
2088 return mainJNI.RoutingModel_NodeNeighborsByCostClass_GetOutgoingNeighborsOfNodeForCostClass(swigCPtr,
this, cost_class, node_index);
2097 return mainJNI.RoutingModel_NodeNeighborsByCostClass_IsNeighborhoodArcForCostClass(swigCPtr,
this, cost_class, from, to);
2109 long cPtr = mainJNI.RoutingModel_GetOrCreateNodeNeighborsByCostClass__SWIG_0(swigCPtr,
this, neighbors_ratio, min_neighbors, SWIGTYPE_p_double.getCPtr(neighbors_ratio_used), add_vehicle_starts_to_neighbors, add_vehicle_ends_to_neighbors, only_sort_neighbors_for_partial_neighborhoods);
2110 return (cPtr == 0) ? null :
new RoutingModel.NodeNeighborsByCostClass(cPtr,
false);
2120 long cPtr = mainJNI.RoutingModel_GetOrCreateNodeNeighborsByCostClass__SWIG_1(swigCPtr,
this, neighbors_ratio, min_neighbors, SWIGTYPE_p_double.getCPtr(neighbors_ratio_used), add_vehicle_starts_to_neighbors, add_vehicle_ends_to_neighbors);
2121 return (cPtr == 0) ? null :
new RoutingModel.NodeNeighborsByCostClass(cPtr,
false);
2131 long cPtr = mainJNI.RoutingModel_GetOrCreateNodeNeighborsByCostClass__SWIG_2(swigCPtr,
this, neighbors_ratio, min_neighbors, SWIGTYPE_p_double.getCPtr(neighbors_ratio_used), add_vehicle_starts_to_neighbors);
2132 return (cPtr == 0) ? null :
new RoutingModel.NodeNeighborsByCostClass(cPtr,
false);
2142 long cPtr = mainJNI.RoutingModel_GetOrCreateNodeNeighborsByCostClass__SWIG_3(swigCPtr,
this, neighbors_ratio, min_neighbors, SWIGTYPE_p_double.getCPtr(neighbors_ratio_used));
2143 return (cPtr == 0) ? null :
new RoutingModel.NodeNeighborsByCostClass(cPtr,
false);
2151 long cPtr = mainJNI.RoutingModel_GetOrCreateNodeNeighborsByCostClass__SWIG_4(swigCPtr,
this,
RoutingModel.NodeNeighborsParameters.getCPtr(params), params);
2152 return (cPtr == 0) ? null :
new RoutingModel.NodeNeighborsByCostClass(cPtr,
false);
2171 return mainJNI.RoutingModel_start(swigCPtr,
this, vehicle);
2177 public long end(
int vehicle) {
2178 return mainJNI.RoutingModel_end(swigCPtr,
this, vehicle);
2185 return mainJNI.RoutingModel_isStart(swigCPtr,
this, index);
2192 return mainJNI.RoutingModel_isEnd(swigCPtr,
this, index);
2200 return mainJNI.RoutingModel_VehicleIndex(swigCPtr,
this, index);
2209 return mainJNI.RoutingModel_next(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment, index);
2216 return mainJNI.RoutingModel_isVehicleUsed(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment, vehicle);
2224 return mainJNI.RoutingModel_nexts(swigCPtr,
this);
2232 return mainJNI.RoutingModel_vehicleVars(swigCPtr,
this);
2241 return mainJNI.RoutingModel_ResourceVars(swigCPtr,
this, resource_group);
2249 long cPtr = mainJNI.RoutingModel_nextVar(swigCPtr,
this, index);
2250 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
2257 long cPtr = mainJNI.RoutingModel_activeVar(swigCPtr,
this, index);
2258 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
2266 long cPtr = mainJNI.RoutingModel_activeVehicleVar(swigCPtr,
this, vehicle);
2267 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
2276 long cPtr = mainJNI.RoutingModel_VehicleRouteConsideredVar(swigCPtr,
this, vehicle);
2277 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
2285 long cPtr = mainJNI.RoutingModel_vehicleVar(swigCPtr,
this, index);
2286 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
2295 long cPtr = mainJNI.RoutingModel_ResourceVar(swigCPtr,
this, vehicle, resource_group);
2296 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
2303 long cPtr = mainJNI.RoutingModel_costVar(swigCPtr,
this);
2304 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
2312 return mainJNI.RoutingModel_getArcCostForVehicle(swigCPtr,
this, from_index, to_index, vehicle);
2319 return mainJNI.RoutingModel_costsAreHomogeneousAcrossVehicles(swigCPtr,
this);
2327 return mainJNI.RoutingModel_getHomogeneousCost(swigCPtr,
this, from_index, to_index);
2335 return mainJNI.RoutingModel_getArcCostForFirstSolution(swigCPtr,
this, from_index, to_index);
2347 return mainJNI.RoutingModel_getArcCostForClass(swigCPtr,
this, from_index, to_index, cost_class_index);
2354 return mainJNI.RoutingModel_getCostClassIndexOfVehicle(swigCPtr,
this, vehicle);
2362 return mainJNI.RoutingModel_hasVehicleWithCostClassIndex(swigCPtr,
this, cost_class_index);
2369 return mainJNI.RoutingModel_getCostClassesCount(swigCPtr,
this);
2376 return mainJNI.RoutingModel_getNonZeroCostClassesCount(swigCPtr,
this);
2380 return mainJNI.RoutingModel_getVehicleClassIndexOfVehicle(swigCPtr,
this, vehicle);
2388 return mainJNI.RoutingModel_GetVehicleOfClass(swigCPtr,
this, vehicle_class);
2395 return mainJNI.RoutingModel_getVehicleClassesCount(swigCPtr,
this);
2402 return mainJNI.RoutingModel_getSameVehicleIndicesOfIndex(swigCPtr,
this, node);
2409 return mainJNI.RoutingModel_GetSameActivityIndicesOfIndex(swigCPtr,
this, node);
2416 return mainJNI.RoutingModel_GetSameActivityGroupOfIndex(swigCPtr,
this, node);
2423 return mainJNI.RoutingModel_GetSameActivityGroupsCount(swigCPtr,
this);
2430 return mainJNI.RoutingModel_GetSameActivityIndicesOfGroup(swigCPtr,
this, group);
2434 return new RoutingModel.VehicleTypeContainer(mainJNI.RoutingModel_GetVehicleTypeContainer(swigCPtr,
this),
false);
2458 return mainJNI.RoutingModel_arcIsMoreConstrainedThanArc(swigCPtr,
this, from, to1, to2);
2468 return mainJNI.RoutingModel_debugOutputAssignment(swigCPtr,
this,
Assignment.
getCPtr(solution_assignment), solution_assignment, dimension_to_print);
2480 return mainJNI.RoutingModel_CheckIfAssignmentIsFeasible(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment, call_at_solution_monitors);
2488 long cPtr = mainJNI.RoutingModel_solver(swigCPtr,
this);
2489 return (cPtr == 0) ? null :
new Solver(cPtr,
false);
2497 return mainJNI.RoutingModel_checkLimit__SWIG_0(swigCPtr,
this, SWIGTYPE_p_absl__Duration.getCPtr(offset));
2505 return mainJNI.RoutingModel_checkLimit__SWIG_1(swigCPtr,
this);
2512 mainJNI.RoutingModel_UpdateTimeLimit(swigCPtr,
this, SWIGTYPE_p_absl__Duration.getCPtr(time_limit));
2519 return new SWIGTYPE_p_absl__Duration(mainJNI.RoutingModel_TimeBuffer(swigCPtr,
this),
true);
2526 long cPtr = mainJNI.RoutingModel_GetMutableCPSatInterrupt(swigCPtr,
this);
2527 return (cPtr == 0) ? null :
new SWIGTYPE_p_std__atomicT_bool_t(cPtr,
false);
2534 long cPtr = mainJNI.RoutingModel_GetMutableCPInterrupt(swigCPtr,
this);
2535 return (cPtr == 0) ? null :
new SWIGTYPE_p_std__atomicT_bool_t(cPtr,
false);
2542 mainJNI.RoutingModel_CancelSearch(swigCPtr,
this);
2550 return mainJNI.RoutingModel_nodes(swigCPtr,
this);
2557 return mainJNI.RoutingModel_vehicles(swigCPtr,
this);
2564 return mainJNI.RoutingModel_size(swigCPtr,
this);
2572 return mainJNI.RoutingModel_getNumberOfDecisionsInFirstSolution(swigCPtr,
this, search_parameters.toByteArray());
2576 return mainJNI.RoutingModel_getNumberOfRejectsInFirstSolution(swigCPtr,
this, search_parameters.toByteArray());
2583 return mainJNI.RoutingModel_isMatchingModel(swigCPtr,
this);
2591 return mainJNI.RoutingModel_AreRoutesInterdependent(swigCPtr,
this, SWIGTYPE_p_operations_research__RoutingSearchParameters.getCPtr(parameters));
2609 long cPtr = mainJNI.RoutingModel_makeGuidedSlackFinalizer(swigCPtr,
this,
RoutingDimension.
getCPtr(dimension), dimension, initializer);
2629 long cPtr = mainJNI.RoutingModel_makeSelfDependentDimensionFinalizer(swigCPtr,
this,
RoutingDimension.
getCPtr(dimension), dimension);
2634 return new PathsMetadata(mainJNI.RoutingModel_GetPathsMetadata(swigCPtr,
this),
false);
2642 return new SWIGTYPE_p_std__dequeT_int_t(mainJNI.RoutingModel_GetVehiclesOfSameClass(swigCPtr,
this, start_end_index),
false);
2653 return new SWIGTYPE_p_std__vectorT_std__pairT_long_long_t_t(mainJNI.RoutingModel_GetSameVehicleClassArcs(swigCPtr,
this, from_index, to_index),
true);
2689 public final static int PENALIZE_ONCE = mainJNI.RoutingModel_PENALIZE_ONCE_get();
static long swigRelease(VehicleClassEntry obj)
static long getCPtr(VehicleClassEntry obj)
void setVehicle_class(int value)
synchronized void delete()
VehicleClassEntry(long cPtr, boolean cMemoryOwn)
transient boolean swigCMemOwn
void setFixed_cost(long value)
static long getCPtr(Domain obj)