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, index),
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, dimension_index, 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);
897 public int addDisjunction(
long[] indices,
long penalty,
long max_cardinality,
int penalty_cost_behavior) {
898 return mainJNI.RoutingModel_addDisjunction__SWIG_0(swigCPtr,
this, indices, penalty, max_cardinality, penalty_cost_behavior);
926 return mainJNI.RoutingModel_addDisjunction__SWIG_1(swigCPtr,
this, indices, penalty, max_cardinality);
954 return mainJNI.RoutingModel_addDisjunction__SWIG_2(swigCPtr,
this, indices, penalty);
977 return mainJNI.RoutingModel_addDisjunction__SWIG_3(swigCPtr,
this, indices);
984 return mainJNI.RoutingModel_getDisjunctionIndices(swigCPtr,
this, index);
992 return mainJNI.RoutingModel_GetDisjunctionNodeIndices(swigCPtr,
this, index);
999 return mainJNI.RoutingModel_getDisjunctionPenalty(swigCPtr,
this, index);
1007 return mainJNI.RoutingModel_getDisjunctionMaxCardinality(swigCPtr,
this, index);
1015 return mainJNI.RoutingModel_GetDisjunctionPenaltyCostBehavior(swigCPtr,
this, index);
1022 return mainJNI.RoutingModel_getNumberOfDisjunctions(swigCPtr,
this);
1030 return mainJNI.RoutingModel_HasMandatoryDisjunctions(swigCPtr,
this);
1038 return mainJNI.RoutingModel_HasMaxCardinalityConstrainedDisjunctions(swigCPtr,
this);
1049 mainJNI.RoutingModel_ignoreDisjunctionsAlreadyForcedToZero(swigCPtr,
this);
1060 mainJNI.RoutingModel_addSoftSameVehicleConstraint(swigCPtr,
this, indices, cost);
1067 return mainJNI.RoutingModel_GetNumberOfSoftSameVehicleConstraints(swigCPtr,
this);
1075 return mainJNI.RoutingModel_GetSoftSameVehicleIndices(swigCPtr,
this, index);
1082 return mainJNI.RoutingModel_GetSoftSameVehicleCost(swigCPtr,
this, index);
1092 mainJNI.RoutingModel_setAllowedVehiclesForIndex(swigCPtr,
this, SWIGTYPE_p_absl__SpanT_int_const_t.getCPtr(
vehicles), index);
1099 return mainJNI.RoutingModel_isVehicleAllowedForIndex(swigCPtr,
this, vehicle, index);
1118 mainJNI.RoutingModel_addPickupAndDelivery(swigCPtr,
this, pickup, delivery);
1127 mainJNI.RoutingModel_addPickupAndDeliverySets(swigCPtr,
this, pickup_disjunction, delivery_disjunction);
1134 private transient long swigCPtr;
1143 return (obj ==
null) ? 0 : obj.swigCPtr;
1150 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
1152 obj.swigCMemOwn =
false;
1158 @SuppressWarnings({
"deprecation",
"removal"})
1164 if (swigCPtr != 0) {
1167 mainJNI.delete_RoutingModel_PickupDeliveryPosition(swigCPtr);
1177 mainJNI.RoutingModel_PickupDeliveryPosition_pd_pair_index_set(swigCPtr,
this, value);
1184 return mainJNI.RoutingModel_PickupDeliveryPosition_pd_pair_index_get(swigCPtr,
this);
1192 mainJNI.RoutingModel_PickupDeliveryPosition_alternative_index_set(swigCPtr,
this, value);
1200 return mainJNI.RoutingModel_PickupDeliveryPosition_alternative_index_get(swigCPtr,
this);
1204 this(mainJNI.new_RoutingModel_PickupDeliveryPosition(),
true);
1212 public SWIGTYPE_p_std__optionalT_operations_research__RoutingModel__PickupDeliveryPosition_t
GetPickupPosition(
long node_index) {
1213 return new SWIGTYPE_p_std__optionalT_operations_research__RoutingModel__PickupDeliveryPosition_t(mainJNI.RoutingModel_GetPickupPosition(swigCPtr,
this, node_index),
true);
1219 public SWIGTYPE_p_std__optionalT_operations_research__RoutingModel__PickupDeliveryPosition_t
GetDeliveryPosition(
long node_index) {
1220 return new SWIGTYPE_p_std__optionalT_operations_research__RoutingModel__PickupDeliveryPosition_t(mainJNI.RoutingModel_GetDeliveryPosition(swigCPtr,
this, node_index),
true);
1227 return mainJNI.RoutingModel_IsPickup(swigCPtr,
this, node_index);
1231 return mainJNI.RoutingModel_IsDelivery(swigCPtr,
this, node_index);
1239 mainJNI.RoutingModel_setPickupAndDeliveryPolicyOfAllVehicles(swigCPtr,
this, policy);
1243 mainJNI.RoutingModel_setPickupAndDeliveryPolicyOfVehicle(swigCPtr,
this, policy, vehicle);
1247 return mainJNI.RoutingModel_getPickupAndDeliveryPolicyOfVehicle(swigCPtr,
this, vehicle);
1255 return mainJNI.RoutingModel_getNumOfSingletonNodes(swigCPtr,
this);
1259 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);
1263 mainJNI.RoutingModel_setVisitType(swigCPtr,
this, index, type, type_policy);
1267 return mainJNI.RoutingModel_getVisitType(swigCPtr,
this, index);
1271 return mainJNI.RoutingModel_GetSingleNodesOfType(swigCPtr,
this, type);
1275 return mainJNI.RoutingModel_GetPairIndicesOfType(swigCPtr,
this, type);
1279 return mainJNI.RoutingModel_GetVisitTypePolicy(swigCPtr,
this, index);
1283 return mainJNI.RoutingModel_getNumberOfVisitTypes(swigCPtr,
this);
1296 mainJNI.RoutingModel_addHardTypeIncompatibility(swigCPtr,
this, type1, type2);
1300 mainJNI.RoutingModel_addTemporalTypeIncompatibility(swigCPtr,
this, type1, type2);
1304 return new SWIGTYPE_p_absl__flat_hash_setT_int_t(mainJNI.RoutingModel_getTemporalTypeIncompatibilitiesOfType(swigCPtr,
this, type),
false);
1312 return mainJNI.RoutingModel_hasHardTypeIncompatibilities(swigCPtr,
this);
1316 return mainJNI.RoutingModel_hasTemporalTypeIncompatibilities(swigCPtr,
this);
1326 mainJNI.RoutingModel_addRequiredTypeAlternativesWhenAddingType(swigCPtr,
this, dependent_type, SWIGTYPE_p_absl__flat_hash_setT_int_t.getCPtr(required_type_alternatives));
1337 mainJNI.RoutingModel_addRequiredTypeAlternativesWhenRemovingType(swigCPtr,
this, dependent_type, SWIGTYPE_p_absl__flat_hash_setT_int_t.getCPtr(required_type_alternatives));
1344 return new SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t(mainJNI.RoutingModel_GetRequiredTypeAlternativesWhenAddingType(swigCPtr,
this, type),
false);
1351 return new SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t(mainJNI.RoutingModel_GetRequiredTypeAlternativesWhenRemovingType(swigCPtr,
this, type),
false);
1359 return mainJNI.RoutingModel_hasSameVehicleTypeRequirements(swigCPtr,
this);
1363 return mainJNI.RoutingModel_hasTemporalTypeRequirements(swigCPtr,
this);
1373 return mainJNI.RoutingModel_unperformedPenalty(swigCPtr,
this, var_index);
1382 return mainJNI.RoutingModel_unperformedPenaltyOrValue(swigCPtr,
this, default_value, var_index);
1391 return mainJNI.RoutingModel_getDepot(swigCPtr,
this);
1401 mainJNI.RoutingModel_SetMaximumNumberOfActiveVehicles(swigCPtr,
this, max_active_vehicles);
1408 return mainJNI.RoutingModel_GetMaximumNumberOfActiveVehicles(swigCPtr,
this);
1417 mainJNI.RoutingModel_setArcCostEvaluatorOfAllVehicles(swigCPtr,
this, evaluator_index);
1424 mainJNI.RoutingModel_setArcCostEvaluatorOfVehicle(swigCPtr,
this, evaluator_index, vehicle);
1432 mainJNI.RoutingModel_setFixedCostOfAllVehicles(swigCPtr,
this, cost);
1439 mainJNI.RoutingModel_setFixedCostOfVehicle(swigCPtr,
this, cost, vehicle);
1448 return mainJNI.RoutingModel_getFixedCostOfVehicle(swigCPtr,
this, vehicle);
1452 mainJNI.RoutingModel_SetPathEnergyCostOfVehicle(swigCPtr,
this, force, distance, cost_per_unit, vehicle);
1455 public void SetPathEnergyCostsOfVehicle(String force, String distance,
long threshold,
long cost_per_unit_below_threshold,
long cost_per_unit_above_threshold,
int vehicle) {
1456 mainJNI.RoutingModel_SetPathEnergyCostsOfVehicle(swigCPtr,
this, force, distance, threshold, cost_per_unit_below_threshold, cost_per_unit_above_threshold, vehicle);
1477 mainJNI.RoutingModel_setAmortizedCostFactorsOfAllVehicles(swigCPtr,
this, linear_cost_factor, quadratic_cost_factor);
1484 mainJNI.RoutingModel_setAmortizedCostFactorsOfVehicle(swigCPtr,
this, linear_cost_factor, quadratic_cost_factor, vehicle);
1488 return mainJNI.RoutingModel_getAmortizedLinearCostFactorOfVehicles(swigCPtr,
this);
1492 return mainJNI.RoutingModel_getAmortizedQuadraticCostFactorOfVehicles(swigCPtr,
this);
1496 return new SWIGTYPE_p_std__optionalT_long_t(mainJNI.RoutingModel_GetRouteCost(swigCPtr,
this, route),
true);
1500 mainJNI.RoutingModel_SetVehicleUsedWhenEmpty(swigCPtr,
this, is_used, vehicle);
1504 return mainJNI.RoutingModel_IsVehicleUsedWhenEmpty(swigCPtr,
this, vehicle);
1513 mainJNI.RoutingModel_setFirstSolutionEvaluator(swigCPtr,
this, evaluator);
1523 mainJNI.RoutingModel_SetFirstSolutionHint(swigCPtr,
this,
Assignment.
getCPtr(hint), hint);
1530 long cPtr = mainJNI.RoutingModel_GetFirstSolutionHint(swigCPtr,
this);
1531 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1546 mainJNI.RoutingModel_addSearchMonitor(swigCPtr,
this,
SearchMonitor.
getCPtr(monitor), monitor);
1550 mainJNI.RoutingModel_AddEnterSearchCallback(swigCPtr,
this, callback);
1562 mainJNI.RoutingModel_addAtSolutionCallback__SWIG_0(swigCPtr,
this, callback, track_unchecked_neighbors);
1574 mainJNI.RoutingModel_addAtSolutionCallback__SWIG_1(swigCPtr,
this, callback);
1578 mainJNI.RoutingModel_AddRestoreDimensionValuesResetCallback(swigCPtr,
this, callback);
1588 mainJNI.RoutingModel_addVariableMinimizedByFinalizer(swigCPtr,
this,
IntVar.
getCPtr(var), var);
1596 mainJNI.RoutingModel_addVariableMaximizedByFinalizer(swigCPtr,
this,
IntVar.
getCPtr(var), var);
1604 mainJNI.RoutingModel_AddWeightedVariableMinimizedByFinalizer(swigCPtr,
this,
IntVar.
getCPtr(var), var, cost);
1612 mainJNI.RoutingModel_AddWeightedVariableMaximizedByFinalizer(swigCPtr,
this,
IntVar.
getCPtr(var), var, cost);
1620 mainJNI.RoutingModel_addVariableTargetToFinalizer(swigCPtr,
this,
IntVar.
getCPtr(var), var, target);
1628 mainJNI.RoutingModel_AddWeightedVariableTargetToFinalizer(swigCPtr,
this,
IntVar.
getCPtr(var), var, target, cost);
1640 mainJNI.RoutingModel_closeModel(swigCPtr,
this);
1648 mainJNI.RoutingModel_closeModelWithParameters(swigCPtr,
this, search_parameters.toByteArray());
1660 long cPtr = mainJNI.RoutingModel_solve__SWIG_0(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment);
1661 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1673 long cPtr = mainJNI.RoutingModel_solve__SWIG_1(swigCPtr,
this);
1674 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1686 public Assignment solveWithParameters(com.google.ortools.constraintsolver.RoutingSearchParameters search_parameters, SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t solutions) {
1687 long cPtr = mainJNI.RoutingModel_solveWithParameters__SWIG_0(swigCPtr,
this, search_parameters.toByteArray(), SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t.getCPtr(solutions));
1688 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1701 long cPtr = mainJNI.RoutingModel_solveWithParameters__SWIG_1(swigCPtr,
this, search_parameters.toByteArray());
1702 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1710 long cPtr = mainJNI.RoutingModel_solveFromAssignmentWithParameters__SWIG_0(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment, search_parameters.toByteArray(), SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t.
getCPtr(solutions));
1711 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1719 long cPtr = mainJNI.RoutingModel_solveFromAssignmentWithParameters__SWIG_1(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment, search_parameters.toByteArray());
1720 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1730 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));
1731 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1741 long cPtr = mainJNI.RoutingModel_FastSolveFromAssignmentWithParameters__SWIG_1(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment, search_parameters.toByteArray(), check_solution_in_cp);
1742 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1749 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) {
1750 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));
1751 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1759 long cPtr = mainJNI.RoutingModel_SolveFromAssignmentsWithParameters__SWIG_1(swigCPtr,
this, SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t.getCPtr(assignments), search_parameters.toByteArray());
1760 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1768 long cPtr = mainJNI.RoutingModel_SolveWithIteratedLocalSearch(swigCPtr,
this, search_parameters.toByteArray());
1769 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1780 mainJNI.RoutingModel_setAssignmentFromOtherModelAssignment(swigCPtr,
this,
Assignment.
getCPtr(target_assignment), target_assignment,
RoutingModel.getCPtr(source_model), source_model,
Assignment.
getCPtr(source_assignment), source_assignment);
1787 return new SWIGTYPE_p_operations_research__SubSolverStatistics(mainJNI.RoutingModel_GetSubSolverStatistics(swigCPtr,
this),
true);
1798 return mainJNI.RoutingModel_computeLowerBound(swigCPtr,
this);
1806 return mainJNI.RoutingModel_objective_lower_bound(swigCPtr,
this);
1813 return com.google.ortools.constraintsolver.RoutingSearchStatus.Value.forNumber(mainJNI.RoutingModel_status(swigCPtr,
this));
1820 return new RoutingSearchStats(mainJNI.RoutingModel_search_stats(swigCPtr,
this),
false);
1827 return mainJNI.RoutingModel_enable_deep_serialization(swigCPtr,
this);
1841 long cPtr = mainJNI.RoutingModel_applyLocks(swigCPtr,
this, SWIGTYPE_p_absl__SpanT_long_const_t.getCPtr(locks));
1842 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
1856 return mainJNI.RoutingModel_applyLocksToAllVehicles(swigCPtr,
this, locks, close_routes);
1866 long cPtr = mainJNI.RoutingModel_preAssignment(swigCPtr,
this);
1867 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1871 long cPtr = mainJNI.RoutingModel_mutablePreAssignment(swigCPtr,
this);
1872 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1881 return mainJNI.RoutingModel_writeAssignment(swigCPtr,
this, file_name);
1890 long cPtr = mainJNI.RoutingModel_readAssignment(swigCPtr,
this, file_name);
1891 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1899 long cPtr = mainJNI.RoutingModel_restoreAssignment(swigCPtr,
this,
Assignment.
getCPtr(solution), solution);
1900 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1911 long cPtr = mainJNI.RoutingModel_readAssignmentFromRoutes(swigCPtr,
this, routes, ignore_inactive_indices);
1912 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1934 return mainJNI.RoutingModel_routesToAssignment(swigCPtr,
this, routes, ignore_inactive_indices, close_routes,
Assignment.
getCPtr(assignment), assignment);
1943 mainJNI.RoutingModel_assignmentToRoutes(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment, routes);
1970 long cPtr = mainJNI.RoutingModel_compactAssignment(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment);
1971 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1980 long cPtr = mainJNI.RoutingModel_compactAndCheckAssignment(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment);
1981 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
1988 mainJNI.RoutingModel_addToAssignment(swigCPtr,
this,
IntVar.
getCPtr(var), var);
1992 mainJNI.RoutingModel_addIntervalToAssignment(swigCPtr,
this,
IntervalVar.
getCPtr(interval), interval);
1996 private transient long swigCPtr;
2005 return (obj ==
null) ? 0 : obj.swigCPtr;
2012 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
2014 obj.swigCMemOwn =
false;
2020 @SuppressWarnings({
"deprecation",
"removal"})
2026 if (swigCPtr != 0) {
2029 mainJNI.delete_RoutingModel_NodeNeighborsParameters(swigCPtr);
2036 mainJNI.RoutingModel_NodeNeighborsParameters_num_neighbors_set(swigCPtr,
this, value);
2040 return mainJNI.RoutingModel_NodeNeighborsParameters_num_neighbors_get(swigCPtr,
this);
2044 mainJNI.RoutingModel_NodeNeighborsParameters_add_vehicle_starts_to_neighbors_set(swigCPtr,
this, value);
2048 return mainJNI.RoutingModel_NodeNeighborsParameters_add_vehicle_starts_to_neighbors_get(swigCPtr,
this);
2052 mainJNI.RoutingModel_NodeNeighborsParameters_add_vehicle_ends_to_neighbors_set(swigCPtr,
this, value);
2056 return mainJNI.RoutingModel_NodeNeighborsParameters_add_vehicle_ends_to_neighbors_get(swigCPtr,
this);
2060 mainJNI.RoutingModel_NodeNeighborsParameters_only_sort_neighbors_for_partial_neighborhoods_set(swigCPtr,
this, value);
2064 return mainJNI.RoutingModel_NodeNeighborsParameters_only_sort_neighbors_for_partial_neighborhoods_get(swigCPtr,
this);
2068 this(mainJNI.new_RoutingModel_NodeNeighborsParameters(),
true);
2074 private transient long swigCPtr;
2083 return (obj ==
null) ? 0 : obj.swigCPtr;
2090 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
2092 obj.swigCMemOwn =
false;
2098 @SuppressWarnings({
"deprecation",
"removal"})
2104 if (swigCPtr != 0) {
2107 mainJNI.delete_RoutingModel_NodeNeighborsByCostClass(swigCPtr);
2114 this(mainJNI.new_RoutingModel_NodeNeighborsByCostClass(
RoutingModel.getCPtr(routing_model), routing_model),
true);
2122 mainJNI.RoutingModel_NodeNeighborsByCostClass_ComputeNeighbors(swigCPtr,
this,
RoutingModel.NodeNeighborsParameters.getCPtr(params), params);
2131 return mainJNI.RoutingModel_NodeNeighborsByCostClass_GetIncomingNeighborsOfNodeForCostClass(swigCPtr,
this, cost_class, node_index);
2140 return mainJNI.RoutingModel_NodeNeighborsByCostClass_GetOutgoingNeighborsOfNodeForCostClass(swigCPtr,
this, cost_class, node_index);
2149 return mainJNI.RoutingModel_NodeNeighborsByCostClass_IsNeighborhoodArcForCostClass(swigCPtr,
this, cost_class, from, to);
2153 return mainJNI.RoutingModel_NodeNeighborsByCostClass_IsFullNeighborhood(swigCPtr,
this);
2165 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);
2166 return (cPtr == 0) ? null :
new RoutingModel.NodeNeighborsByCostClass(cPtr,
false);
2176 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);
2177 return (cPtr == 0) ? null :
new RoutingModel.NodeNeighborsByCostClass(cPtr,
false);
2187 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);
2188 return (cPtr == 0) ? null :
new RoutingModel.NodeNeighborsByCostClass(cPtr,
false);
2198 long cPtr = mainJNI.RoutingModel_GetOrCreateNodeNeighborsByCostClass__SWIG_3(swigCPtr,
this, neighbors_ratio, min_neighbors, SWIGTYPE_p_double.getCPtr(neighbors_ratio_used));
2199 return (cPtr == 0) ? null :
new RoutingModel.NodeNeighborsByCostClass(cPtr,
false);
2207 long cPtr = mainJNI.RoutingModel_GetOrCreateNodeNeighborsByCostClass__SWIG_4(swigCPtr,
this,
RoutingModel.NodeNeighborsParameters.getCPtr(params), params);
2208 return (cPtr == 0) ? null :
new RoutingModel.NodeNeighborsByCostClass(cPtr,
false);
2227 return mainJNI.RoutingModel_start(swigCPtr,
this, vehicle);
2233 public long end(
int vehicle) {
2234 return mainJNI.RoutingModel_end(swigCPtr,
this, vehicle);
2241 return mainJNI.RoutingModel_isStart(swigCPtr,
this, index);
2248 return mainJNI.RoutingModel_isEnd(swigCPtr,
this, index);
2256 return mainJNI.RoutingModel_VehicleIndex(swigCPtr,
this, index);
2265 return mainJNI.RoutingModel_next(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment, index);
2272 return mainJNI.RoutingModel_isVehicleUsed(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment, vehicle);
2280 return mainJNI.RoutingModel_nexts(swigCPtr,
this);
2288 return mainJNI.RoutingModel_vehicleVars(swigCPtr,
this);
2297 return mainJNI.RoutingModel_ResourceVars(swigCPtr,
this, resource_group);
2305 long cPtr = mainJNI.RoutingModel_nextVar(swigCPtr,
this, index);
2306 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
2313 long cPtr = mainJNI.RoutingModel_activeVar(swigCPtr,
this, index);
2314 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
2322 long cPtr = mainJNI.RoutingModel_activeVehicleVar(swigCPtr,
this, vehicle);
2323 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
2332 long cPtr = mainJNI.RoutingModel_VehicleRouteConsideredVar(swigCPtr,
this, vehicle);
2333 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
2341 long cPtr = mainJNI.RoutingModel_vehicleVar(swigCPtr,
this, index);
2342 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
2351 long cPtr = mainJNI.RoutingModel_ResourceVar(swigCPtr,
this, vehicle, resource_group);
2352 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
2359 long cPtr = mainJNI.RoutingModel_costVar(swigCPtr,
this);
2360 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
2368 return mainJNI.RoutingModel_getArcCostForVehicle(swigCPtr,
this, from_index, to_index, vehicle);
2375 return mainJNI.RoutingModel_costsAreHomogeneousAcrossVehicles(swigCPtr,
this);
2383 return mainJNI.RoutingModel_getHomogeneousCost(swigCPtr,
this, from_index, to_index);
2391 return mainJNI.RoutingModel_getArcCostForFirstSolution(swigCPtr,
this, from_index, to_index);
2403 return mainJNI.RoutingModel_getArcCostForClass(swigCPtr,
this, from_index, to_index, cost_class_index);
2410 return mainJNI.RoutingModel_getCostClassIndexOfVehicle(swigCPtr,
this, vehicle);
2418 return mainJNI.RoutingModel_hasVehicleWithCostClassIndex(swigCPtr,
this, cost_class_index);
2425 return mainJNI.RoutingModel_getCostClassesCount(swigCPtr,
this);
2432 return mainJNI.RoutingModel_getNonZeroCostClassesCount(swigCPtr,
this);
2436 return mainJNI.RoutingModel_getVehicleClassIndexOfVehicle(swigCPtr,
this, vehicle);
2444 return mainJNI.RoutingModel_GetVehicleOfClass(swigCPtr,
this, vehicle_class);
2451 return mainJNI.RoutingModel_getVehicleClassesCount(swigCPtr,
this);
2458 return mainJNI.RoutingModel_getSameVehicleIndicesOfIndex(swigCPtr,
this, node);
2462 mainJNI.RoutingModel_AddSameActivityGroup(swigCPtr,
this, SWIGTYPE_p_absl__SpanT_int_const_t.getCPtr(
nodes));
2469 return mainJNI.RoutingModel_GetSameActivityIndicesOfIndex(swigCPtr,
this, node);
2476 return mainJNI.RoutingModel_GetSameActivityGroupOfIndex(swigCPtr,
this, node);
2483 return mainJNI.RoutingModel_GetSameActivityGroups(swigCPtr,
this);
2490 return mainJNI.RoutingModel_GetSameActivityGroupsCount(swigCPtr,
this);
2497 return mainJNI.RoutingModel_GetSameActivityIndicesOfGroup(swigCPtr,
this, group);
2501 return new RoutingModel.VehicleTypeContainer(mainJNI.RoutingModel_GetVehicleTypeContainer(swigCPtr,
this),
false);
2525 return mainJNI.RoutingModel_arcIsMoreConstrainedThanArc(swigCPtr,
this, from, to1, to2);
2535 return mainJNI.RoutingModel_debugOutputAssignment(swigCPtr,
this,
Assignment.
getCPtr(solution_assignment), solution_assignment, dimension_to_print);
2547 return mainJNI.RoutingModel_CheckIfAssignmentIsFeasible(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment, call_at_solution_monitors);
2555 long cPtr = mainJNI.RoutingModel_solver(swigCPtr,
this);
2556 return (cPtr == 0) ? null :
new Solver(cPtr,
false);
2564 return mainJNI.RoutingModel_checkLimit__SWIG_0(swigCPtr,
this, SWIGTYPE_p_absl__Duration.getCPtr(offset));
2572 return mainJNI.RoutingModel_checkLimit__SWIG_1(swigCPtr,
this);
2579 mainJNI.RoutingModel_UpdateTimeLimit(swigCPtr,
this, SWIGTYPE_p_absl__Duration.getCPtr(time_limit));
2586 return new SWIGTYPE_p_absl__Duration(mainJNI.RoutingModel_TimeBuffer(swigCPtr,
this),
true);
2593 long cPtr = mainJNI.RoutingModel_GetMutableCPSatInterrupt(swigCPtr,
this);
2594 return (cPtr == 0) ? null :
new SWIGTYPE_p_std__atomicT_bool_t(cPtr,
false);
2601 long cPtr = mainJNI.RoutingModel_GetMutableCPInterrupt(swigCPtr,
this);
2602 return (cPtr == 0) ? null :
new SWIGTYPE_p_std__atomicT_bool_t(cPtr,
false);
2609 mainJNI.RoutingModel_CancelSearch(swigCPtr,
this);
2617 return mainJNI.RoutingModel_nodes(swigCPtr,
this);
2624 return mainJNI.RoutingModel_vehicles(swigCPtr,
this);
2631 return mainJNI.RoutingModel_size(swigCPtr,
this);
2639 return mainJNI.RoutingModel_getNumberOfDecisionsInFirstSolution(swigCPtr,
this, search_parameters.toByteArray());
2643 return mainJNI.RoutingModel_getNumberOfRejectsInFirstSolution(swigCPtr,
this, search_parameters.toByteArray());
2650 return mainJNI.RoutingModel_isMatchingModel(swigCPtr,
this);
2658 return mainJNI.RoutingModel_AreRoutesInterdependent(swigCPtr,
this, SWIGTYPE_p_operations_research__RoutingSearchParameters.getCPtr(parameters));
2676 long cPtr = mainJNI.RoutingModel_makeGuidedSlackFinalizer(swigCPtr,
this,
RoutingDimension.
getCPtr(dimension), dimension, initializer);
2696 long cPtr = mainJNI.RoutingModel_makeSelfDependentDimensionFinalizer(swigCPtr,
this,
RoutingDimension.
getCPtr(dimension), dimension);
2701 return new PathsMetadata(mainJNI.RoutingModel_GetPathsMetadata(swigCPtr,
this),
false);
2709 return new SWIGTYPE_p_std__dequeT_int_t(mainJNI.RoutingModel_GetVehiclesOfSameClass(swigCPtr,
this, start_end_index),
false);
2720 return new SWIGTYPE_p_std__vectorT_std__pairT_long_long_t_t(mainJNI.RoutingModel_GetSameVehicleClassArcs(swigCPtr,
this, from_index, to_index),
true);
2756 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)