5package com.google.ortools.constraintsolver;
21 com.google.protobuf.GeneratedMessageV3 implements
24private static final long serialVersionUID = 0L;
30 firstSolutionStrategy_ = 0;
31 localCheapestInsertionPickupDeliveryStrategy_ = 0;
32 localCheapestCostInsertionPickupDeliveryStrategy_ = 0;
33 localSearchMetaheuristic_ = 0;
36 useGeneralizedCpSat_ = 0;
37 continuousSchedulingSolver_ = 0;
38 mixedIntegerSchedulingSolver_ = 0;
43 @SuppressWarnings({
"unused"})
45 UnusedPrivateParameter unused) {
49 public static final com.google.protobuf.Descriptors.Descriptor
51 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_descriptor;
55 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
57 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_fieldAccessorTable
58 .ensureFieldAccessorsInitialized(
59 com.google.ortools.constraintsolver.RoutingSearchParameters.class, com.google.ortools.constraintsolver.RoutingSearchParameters.Builder.class);
72 implements com.google.protobuf.ProtocolMessageEnum {
119 public static final int AUTOMATIC_VALUE = 0;
127 public static final int BEST_PICKUP_THEN_BEST_DELIVERY_VALUE = 1;
135 public static final int BEST_PICKUP_DELIVERY_PAIR_VALUE = 2;
147 public static final int BEST_PICKUP_DELIVERY_PAIR_MULTITOUR_VALUE = 3;
151 if (
this == UNRECOGNIZED) {
152 throw new java.lang.IllegalArgumentException(
153 "Can't get the number of an unknown enum value.");
163 @java.lang.Deprecated
165 return forNumber(value);
174 case 0:
return AUTOMATIC;
175 case 1:
return BEST_PICKUP_THEN_BEST_DELIVERY;
176 case 2:
return BEST_PICKUP_DELIVERY_PAIR;
177 case 3:
return BEST_PICKUP_DELIVERY_PAIR_MULTITOUR;
178 default:
return null;
184 return internalValueMap;
186 private static final com.google.protobuf.Internal.EnumLiteMap<
194 public final com.google.protobuf.Descriptors.EnumValueDescriptor
196 if (
this == UNRECOGNIZED) {
197 throw new java.lang.IllegalStateException(
198 "Can't get the descriptor of an unrecognized enum value.");
202 public final com.google.protobuf.Descriptors.EnumDescriptor
206 public static final com.google.protobuf.Descriptors.EnumDescriptor
208 return com.google.ortools.constraintsolver.RoutingSearchParameters.getDescriptor().getEnumTypes().get(0);
214 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
216 throw new java.lang.IllegalArgumentException(
217 "EnumValueDescriptor is not for this type.");
219 if (desc.getIndex() == -1) {
222 return VALUES[desc.getIndex()];
225 private final int value;
243 implements com.google.protobuf.ProtocolMessageEnum {
262 public static final int SCHEDULING_UNSET_VALUE = 0;
266 public static final int SCHEDULING_GLOP_VALUE = 1;
270 public static final int SCHEDULING_CP_SAT_VALUE = 2;
274 if (
this == UNRECOGNIZED) {
275 throw new java.lang.IllegalArgumentException(
276 "Can't get the number of an unknown enum value.");
286 @java.lang.Deprecated
288 return forNumber(value);
297 case 0:
return SCHEDULING_UNSET;
298 case 1:
return SCHEDULING_GLOP;
299 case 2:
return SCHEDULING_CP_SAT;
300 default:
return null;
306 return internalValueMap;
308 private static final com.google.protobuf.Internal.EnumLiteMap<
316 public final com.google.protobuf.Descriptors.EnumValueDescriptor
318 if (
this == UNRECOGNIZED) {
319 throw new java.lang.IllegalStateException(
320 "Can't get the descriptor of an unrecognized enum value.");
324 public final com.google.protobuf.Descriptors.EnumDescriptor
328 public static final com.google.protobuf.Descriptors.EnumDescriptor
330 return com.google.ortools.constraintsolver.RoutingSearchParameters.getDescriptor().getEnumTypes().get(1);
336 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
338 throw new java.lang.IllegalArgumentException(
339 "EnumValueDescriptor is not for this type.");
341 if (desc.getIndex() == -1) {
344 return VALUES[desc.getIndex()];
347 private final int value;
358 com.google.protobuf.MessageOrBuilder {
1397 com.google.protobuf.GeneratedMessageV3 implements
1400 private static final long serialVersionUID = 0L;
1407 useRelocatePair_ = 0;
1408 useLightRelocatePair_ = 0;
1409 useRelocateNeighbors_ = 0;
1410 useRelocateSubtrip_ = 0;
1412 useExchangePair_ = 0;
1413 useExchangeSubtrip_ = 0;
1415 useCrossExchange_ = 0;
1416 useRelocateExpensiveChain_ = 0;
1419 useLinKernighan_ = 0;
1422 useRelocateAndMakeActive_ = 0;
1423 useMakeInactive_ = 0;
1424 useMakeChainInactive_ = 0;
1426 useExtendedSwapActive_ = 0;
1427 useShortestPathSwapActive_ = 0;
1428 useNodePairSwapActive_ = 0;
1430 useFullPathLns_ = 0;
1432 useInactiveLns_ = 0;
1433 useGlobalCheapestInsertionPathLns_ = 0;
1434 useLocalCheapestInsertionPathLns_ = 0;
1435 useRelocatePathGlobalCheapestInsertionInsertUnperformed_ = 0;
1436 useGlobalCheapestInsertionExpensiveChainLns_ = 0;
1437 useLocalCheapestInsertionExpensiveChainLns_ = 0;
1438 useGlobalCheapestInsertionCloseNodesLns_ = 0;
1439 useLocalCheapestInsertionCloseNodesLns_ = 0;
1443 @SuppressWarnings({
"unused"})
1445 UnusedPrivateParameter unused) {
1449 public static final com.google.protobuf.Descriptors.Descriptor
1451 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_LocalSearchNeighborhoodOperators_descriptor;
1455 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1457 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_LocalSearchNeighborhoodOperators_fieldAccessorTable
1458 .ensureFieldAccessorsInitialized(
1459 com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.class, com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.class);
1463 private int useRelocate_ = 0;
1481 return useRelocate_;
1501 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1505 private int useRelocatePair_ = 0;
1523 return useRelocatePair_;
1543 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1547 private int useLightRelocatePair_ = 0;
1563 return useLightRelocatePair_;
1581 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1585 private int useRelocateNeighbors_ = 0;
1616 return useRelocateNeighbors_;
1649 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1653 private int useRelocateSubtrip_ = 0;
1676 return useRelocateSubtrip_;
1701 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1705 private int useExchange_ = 0;
1721 return useExchange_;
1739 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1743 private int useExchangePair_ = 0;
1759 return useExchangePair_;
1777 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1781 private int useExchangeSubtrip_ = 0;
1792 return useExchangeSubtrip_;
1805 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1809 private int useCross_ = 0;
1847 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1851 private int useCrossExchange_ = 0;
1861 return useCrossExchange_;
1873 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1877 private int useRelocateExpensiveChain_ = 0;
1896 return useRelocateExpensiveChain_;
1917 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1921 private int useTwoOpt_ = 0;
1961 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1965 private int useOrOpt_ = 0;
2007 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2011 private int useLinKernighan_ = 0;
2024 return useLinKernighan_;
2039 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2043 private int useTspOpt_ = 0;
2075 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2079 private int useMakeActive_ = 0;
2095 return useMakeActive_;
2113 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2117 private int useRelocateAndMakeActive_ = 0;
2136 return useRelocateAndMakeActive_;
2157 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2161 private int useMakeInactive_ = 0;
2175 return useMakeInactive_;
2191 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2195 private int useMakeChainInactive_ = 0;
2210 return useMakeChainInactive_;
2227 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2231 private int useSwapActive_ = 0;
2245 return useSwapActive_;
2261 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2265 private int useExtendedSwapActive_ = 0;
2284 return useExtendedSwapActive_;
2305 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2309 private int useShortestPathSwapActive_ = 0;
2324 return useShortestPathSwapActive_;
2341 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2345 private int useNodePairSwapActive_ = 0;
2365 return useNodePairSwapActive_;
2387 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2391 private int usePathLns_ = 0;
2427 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2431 private int useFullPathLns_ = 0;
2441 return useFullPathLns_;
2453 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2457 private int useTspLns_ = 0;
2489 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2493 private int useInactiveLns_ = 0;
2505 return useInactiveLns_;
2519 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2523 private int useGlobalCheapestInsertionPathLns_ = 0;
2535 return useGlobalCheapestInsertionPathLns_;
2549 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2553 private int useLocalCheapestInsertionPathLns_ = 0;
2563 return useLocalCheapestInsertionPathLns_;
2575 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2579 private int useRelocatePathGlobalCheapestInsertionInsertUnperformed_ = 0;
2591 return useRelocatePathGlobalCheapestInsertionInsertUnperformed_;
2605 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2609 private int useGlobalCheapestInsertionExpensiveChainLns_ = 0;
2622 return useGlobalCheapestInsertionExpensiveChainLns_;
2637 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2641 private int useLocalCheapestInsertionExpensiveChainLns_ = 0;
2652 return useLocalCheapestInsertionExpensiveChainLns_;
2665 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2669 private int useGlobalCheapestInsertionCloseNodesLns_ = 0;
2682 return useGlobalCheapestInsertionCloseNodesLns_;
2697 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2701 private int useLocalCheapestInsertionCloseNodesLns_ = 0;
2712 return useLocalCheapestInsertionCloseNodesLns_;
2725 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2728 private byte memoizedIsInitialized = -1;
2735 memoizedIsInitialized = 1;
2740 public void writeTo(com.google.protobuf.CodedOutputStream output)
2741 throws java.io.IOException {
2742 if (useRelocate_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2743 output.writeEnum(1, useRelocate_);
2745 if (useRelocatePair_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2746 output.writeEnum(2, useRelocatePair_);
2748 if (useRelocateNeighbors_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2749 output.writeEnum(3, useRelocateNeighbors_);
2751 if (useExchange_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2752 output.writeEnum(4, useExchange_);
2754 if (useCross_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2755 output.writeEnum(5, useCross_);
2757 if (useCrossExchange_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2758 output.writeEnum(6, useCrossExchange_);
2760 if (useTwoOpt_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2761 output.writeEnum(7, useTwoOpt_);
2763 if (useOrOpt_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2764 output.writeEnum(8, useOrOpt_);
2766 if (useLinKernighan_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2767 output.writeEnum(9, useLinKernighan_);
2769 if (useTspOpt_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2770 output.writeEnum(10, useTspOpt_);
2772 if (useMakeActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2773 output.writeEnum(11, useMakeActive_);
2775 if (useMakeInactive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2776 output.writeEnum(12, useMakeInactive_);
2778 if (useMakeChainInactive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2779 output.writeEnum(13, useMakeChainInactive_);
2781 if (useSwapActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2782 output.writeEnum(14, useSwapActive_);
2784 if (useExtendedSwapActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2785 output.writeEnum(15, useExtendedSwapActive_);
2787 if (usePathLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2788 output.writeEnum(16, usePathLns_);
2790 if (useFullPathLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2791 output.writeEnum(17, useFullPathLns_);
2793 if (useTspLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2794 output.writeEnum(18, useTspLns_);
2796 if (useInactiveLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2797 output.writeEnum(19, useInactiveLns_);
2799 if (useNodePairSwapActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2800 output.writeEnum(20, useNodePairSwapActive_);
2802 if (useRelocateAndMakeActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2803 output.writeEnum(21, useRelocateAndMakeActive_);
2805 if (useExchangePair_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2806 output.writeEnum(22, useExchangePair_);
2808 if (useRelocateExpensiveChain_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2809 output.writeEnum(23, useRelocateExpensiveChain_);
2811 if (useLightRelocatePair_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2812 output.writeEnum(24, useLightRelocatePair_);
2814 if (useRelocateSubtrip_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2815 output.writeEnum(25, useRelocateSubtrip_);
2817 if (useExchangeSubtrip_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2818 output.writeEnum(26, useExchangeSubtrip_);
2820 if (useGlobalCheapestInsertionPathLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2821 output.writeEnum(27, useGlobalCheapestInsertionPathLns_);
2823 if (useLocalCheapestInsertionPathLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2824 output.writeEnum(28, useLocalCheapestInsertionPathLns_);
2826 if (useGlobalCheapestInsertionExpensiveChainLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2827 output.writeEnum(29, useGlobalCheapestInsertionExpensiveChainLns_);
2829 if (useLocalCheapestInsertionExpensiveChainLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2830 output.writeEnum(30, useLocalCheapestInsertionExpensiveChainLns_);
2832 if (useGlobalCheapestInsertionCloseNodesLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2833 output.writeEnum(31, useGlobalCheapestInsertionCloseNodesLns_);
2835 if (useLocalCheapestInsertionCloseNodesLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2836 output.writeEnum(32, useLocalCheapestInsertionCloseNodesLns_);
2838 if (useRelocatePathGlobalCheapestInsertionInsertUnperformed_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2839 output.writeEnum(33, useRelocatePathGlobalCheapestInsertionInsertUnperformed_);
2841 if (useShortestPathSwapActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2842 output.writeEnum(34, useShortestPathSwapActive_);
2844 getUnknownFields().writeTo(output);
2849 int size = memoizedSize;
2850 if (size != -1)
return size;
2853 if (useRelocate_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2854 size += com.google.protobuf.CodedOutputStream
2855 .computeEnumSize(1, useRelocate_);
2857 if (useRelocatePair_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2858 size += com.google.protobuf.CodedOutputStream
2859 .computeEnumSize(2, useRelocatePair_);
2861 if (useRelocateNeighbors_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2862 size += com.google.protobuf.CodedOutputStream
2863 .computeEnumSize(3, useRelocateNeighbors_);
2865 if (useExchange_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2866 size += com.google.protobuf.CodedOutputStream
2867 .computeEnumSize(4, useExchange_);
2869 if (useCross_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2870 size += com.google.protobuf.CodedOutputStream
2871 .computeEnumSize(5, useCross_);
2873 if (useCrossExchange_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2874 size += com.google.protobuf.CodedOutputStream
2875 .computeEnumSize(6, useCrossExchange_);
2877 if (useTwoOpt_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2878 size += com.google.protobuf.CodedOutputStream
2879 .computeEnumSize(7, useTwoOpt_);
2881 if (useOrOpt_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2882 size += com.google.protobuf.CodedOutputStream
2883 .computeEnumSize(8, useOrOpt_);
2885 if (useLinKernighan_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2886 size += com.google.protobuf.CodedOutputStream
2887 .computeEnumSize(9, useLinKernighan_);
2889 if (useTspOpt_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2890 size += com.google.protobuf.CodedOutputStream
2891 .computeEnumSize(10, useTspOpt_);
2893 if (useMakeActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2894 size += com.google.protobuf.CodedOutputStream
2895 .computeEnumSize(11, useMakeActive_);
2897 if (useMakeInactive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2898 size += com.google.protobuf.CodedOutputStream
2899 .computeEnumSize(12, useMakeInactive_);
2901 if (useMakeChainInactive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2902 size += com.google.protobuf.CodedOutputStream
2903 .computeEnumSize(13, useMakeChainInactive_);
2905 if (useSwapActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2906 size += com.google.protobuf.CodedOutputStream
2907 .computeEnumSize(14, useSwapActive_);
2909 if (useExtendedSwapActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2910 size += com.google.protobuf.CodedOutputStream
2911 .computeEnumSize(15, useExtendedSwapActive_);
2913 if (usePathLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2914 size += com.google.protobuf.CodedOutputStream
2915 .computeEnumSize(16, usePathLns_);
2917 if (useFullPathLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2918 size += com.google.protobuf.CodedOutputStream
2919 .computeEnumSize(17, useFullPathLns_);
2921 if (useTspLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2922 size += com.google.protobuf.CodedOutputStream
2923 .computeEnumSize(18, useTspLns_);
2925 if (useInactiveLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2926 size += com.google.protobuf.CodedOutputStream
2927 .computeEnumSize(19, useInactiveLns_);
2929 if (useNodePairSwapActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2930 size += com.google.protobuf.CodedOutputStream
2931 .computeEnumSize(20, useNodePairSwapActive_);
2933 if (useRelocateAndMakeActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2934 size += com.google.protobuf.CodedOutputStream
2935 .computeEnumSize(21, useRelocateAndMakeActive_);
2937 if (useExchangePair_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2938 size += com.google.protobuf.CodedOutputStream
2939 .computeEnumSize(22, useExchangePair_);
2941 if (useRelocateExpensiveChain_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2942 size += com.google.protobuf.CodedOutputStream
2943 .computeEnumSize(23, useRelocateExpensiveChain_);
2945 if (useLightRelocatePair_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2946 size += com.google.protobuf.CodedOutputStream
2947 .computeEnumSize(24, useLightRelocatePair_);
2949 if (useRelocateSubtrip_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2950 size += com.google.protobuf.CodedOutputStream
2951 .computeEnumSize(25, useRelocateSubtrip_);
2953 if (useExchangeSubtrip_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2954 size += com.google.protobuf.CodedOutputStream
2955 .computeEnumSize(26, useExchangeSubtrip_);
2957 if (useGlobalCheapestInsertionPathLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2958 size += com.google.protobuf.CodedOutputStream
2959 .computeEnumSize(27, useGlobalCheapestInsertionPathLns_);
2961 if (useLocalCheapestInsertionPathLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2962 size += com.google.protobuf.CodedOutputStream
2963 .computeEnumSize(28, useLocalCheapestInsertionPathLns_);
2965 if (useGlobalCheapestInsertionExpensiveChainLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2966 size += com.google.protobuf.CodedOutputStream
2967 .computeEnumSize(29, useGlobalCheapestInsertionExpensiveChainLns_);
2969 if (useLocalCheapestInsertionExpensiveChainLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2970 size += com.google.protobuf.CodedOutputStream
2971 .computeEnumSize(30, useLocalCheapestInsertionExpensiveChainLns_);
2973 if (useGlobalCheapestInsertionCloseNodesLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2974 size += com.google.protobuf.CodedOutputStream
2975 .computeEnumSize(31, useGlobalCheapestInsertionCloseNodesLns_);
2977 if (useLocalCheapestInsertionCloseNodesLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2978 size += com.google.protobuf.CodedOutputStream
2979 .computeEnumSize(32, useLocalCheapestInsertionCloseNodesLns_);
2981 if (useRelocatePathGlobalCheapestInsertionInsertUnperformed_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2982 size += com.google.protobuf.CodedOutputStream
2983 .computeEnumSize(33, useRelocatePathGlobalCheapestInsertionInsertUnperformed_);
2985 if (useShortestPathSwapActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2986 size += com.google.protobuf.CodedOutputStream
2987 .computeEnumSize(34, useShortestPathSwapActive_);
2989 size += getUnknownFields().getSerializedSize();
2990 memoizedSize = size;
2995 public boolean equals(
final java.lang.Object obj) {
2999 if (!(obj instanceof com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators)) {
3000 return super.equals(obj);
3004 if (useRelocate_ != other.useRelocate_)
return false;
3005 if (useRelocatePair_ != other.useRelocatePair_)
return false;
3006 if (useLightRelocatePair_ != other.useLightRelocatePair_)
return false;
3007 if (useRelocateNeighbors_ != other.useRelocateNeighbors_)
return false;
3008 if (useRelocateSubtrip_ != other.useRelocateSubtrip_)
return false;
3009 if (useExchange_ != other.useExchange_)
return false;
3010 if (useExchangePair_ != other.useExchangePair_)
return false;
3011 if (useExchangeSubtrip_ != other.useExchangeSubtrip_)
return false;
3012 if (useCross_ != other.useCross_)
return false;
3013 if (useCrossExchange_ != other.useCrossExchange_)
return false;
3014 if (useRelocateExpensiveChain_ != other.useRelocateExpensiveChain_)
return false;
3015 if (useTwoOpt_ != other.useTwoOpt_)
return false;
3016 if (useOrOpt_ != other.useOrOpt_)
return false;
3017 if (useLinKernighan_ != other.useLinKernighan_)
return false;
3018 if (useTspOpt_ != other.useTspOpt_)
return false;
3019 if (useMakeActive_ != other.useMakeActive_)
return false;
3020 if (useRelocateAndMakeActive_ != other.useRelocateAndMakeActive_)
return false;
3021 if (useMakeInactive_ != other.useMakeInactive_)
return false;
3022 if (useMakeChainInactive_ != other.useMakeChainInactive_)
return false;
3023 if (useSwapActive_ != other.useSwapActive_)
return false;
3024 if (useExtendedSwapActive_ != other.useExtendedSwapActive_)
return false;
3025 if (useShortestPathSwapActive_ != other.useShortestPathSwapActive_)
return false;
3026 if (useNodePairSwapActive_ != other.useNodePairSwapActive_)
return false;
3027 if (usePathLns_ != other.usePathLns_)
return false;
3028 if (useFullPathLns_ != other.useFullPathLns_)
return false;
3029 if (useTspLns_ != other.useTspLns_)
return false;
3030 if (useInactiveLns_ != other.useInactiveLns_)
return false;
3031 if (useGlobalCheapestInsertionPathLns_ != other.useGlobalCheapestInsertionPathLns_)
return false;
3032 if (useLocalCheapestInsertionPathLns_ != other.useLocalCheapestInsertionPathLns_)
return false;
3033 if (useRelocatePathGlobalCheapestInsertionInsertUnperformed_ != other.useRelocatePathGlobalCheapestInsertionInsertUnperformed_)
return false;
3034 if (useGlobalCheapestInsertionExpensiveChainLns_ != other.useGlobalCheapestInsertionExpensiveChainLns_)
return false;
3035 if (useLocalCheapestInsertionExpensiveChainLns_ != other.useLocalCheapestInsertionExpensiveChainLns_)
return false;
3036 if (useGlobalCheapestInsertionCloseNodesLns_ != other.useGlobalCheapestInsertionCloseNodesLns_)
return false;
3037 if (useLocalCheapestInsertionCloseNodesLns_ != other.useLocalCheapestInsertionCloseNodesLns_)
return false;
3038 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
3044 if (memoizedHashCode != 0) {
3045 return memoizedHashCode;
3050 hash = (53 * hash) + useRelocate_;
3052 hash = (53 * hash) + useRelocatePair_;
3054 hash = (53 * hash) + useLightRelocatePair_;
3056 hash = (53 * hash) + useRelocateNeighbors_;
3058 hash = (53 * hash) + useRelocateSubtrip_;
3060 hash = (53 * hash) + useExchange_;
3062 hash = (53 * hash) + useExchangePair_;
3064 hash = (53 * hash) + useExchangeSubtrip_;
3066 hash = (53 * hash) + useCross_;
3068 hash = (53 * hash) + useCrossExchange_;
3070 hash = (53 * hash) + useRelocateExpensiveChain_;
3072 hash = (53 * hash) + useTwoOpt_;
3074 hash = (53 * hash) + useOrOpt_;
3076 hash = (53 * hash) + useLinKernighan_;
3078 hash = (53 * hash) + useTspOpt_;
3080 hash = (53 * hash) + useMakeActive_;
3082 hash = (53 * hash) + useRelocateAndMakeActive_;
3084 hash = (53 * hash) + useMakeInactive_;
3086 hash = (53 * hash) + useMakeChainInactive_;
3088 hash = (53 * hash) + useSwapActive_;
3090 hash = (53 * hash) + useExtendedSwapActive_;
3092 hash = (53 * hash) + useShortestPathSwapActive_;
3094 hash = (53 * hash) + useNodePairSwapActive_;
3096 hash = (53 * hash) + usePathLns_;
3098 hash = (53 * hash) + useFullPathLns_;
3100 hash = (53 * hash) + useTspLns_;
3102 hash = (53 * hash) + useInactiveLns_;
3104 hash = (53 * hash) + useGlobalCheapestInsertionPathLns_;
3106 hash = (53 * hash) + useLocalCheapestInsertionPathLns_;
3108 hash = (53 * hash) + useRelocatePathGlobalCheapestInsertionInsertUnperformed_;
3110 hash = (53 * hash) + useGlobalCheapestInsertionExpensiveChainLns_;
3112 hash = (53 * hash) + useLocalCheapestInsertionExpensiveChainLns_;
3114 hash = (53 * hash) + useGlobalCheapestInsertionCloseNodesLns_;
3116 hash = (53 * hash) + useLocalCheapestInsertionCloseNodesLns_;
3117 hash = (29 * hash) + getUnknownFields().hashCode();
3118 memoizedHashCode = hash;
3123 java.nio.ByteBuffer data)
3124 throws com.google.protobuf.InvalidProtocolBufferException {
3125 return PARSER.parseFrom(data);
3128 java.nio.ByteBuffer data,
3129 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3130 throws com.google.protobuf.InvalidProtocolBufferException {
3131 return PARSER.parseFrom(data, extensionRegistry);
3134 com.google.protobuf.ByteString data)
3135 throws com.google.protobuf.InvalidProtocolBufferException {
3136 return PARSER.parseFrom(data);
3139 com.google.protobuf.ByteString data,
3140 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3141 throws com.google.protobuf.InvalidProtocolBufferException {
3142 return PARSER.parseFrom(data, extensionRegistry);
3145 throws com.google.protobuf.InvalidProtocolBufferException {
3146 return PARSER.parseFrom(data);
3150 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3151 throws com.google.protobuf.InvalidProtocolBufferException {
3152 return PARSER.parseFrom(data, extensionRegistry);
3155 throws java.io.IOException {
3156 return com.google.protobuf.GeneratedMessageV3
3157 .parseWithIOException(PARSER, input);
3160 java.io.InputStream input,
3161 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3162 throws java.io.IOException {
3163 return com.google.protobuf.GeneratedMessageV3
3164 .parseWithIOException(PARSER, input, extensionRegistry);
3168 throws java.io.IOException {
3169 return com.google.protobuf.GeneratedMessageV3
3170 .parseDelimitedWithIOException(PARSER, input);
3174 java.io.InputStream input,
3175 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3176 throws java.io.IOException {
3177 return com.google.protobuf.GeneratedMessageV3
3178 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
3181 com.google.protobuf.CodedInputStream input)
3182 throws java.io.IOException {
3183 return com.google.protobuf.GeneratedMessageV3
3184 .parseWithIOException(PARSER, input);
3187 com.google.protobuf.CodedInputStream input,
3188 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3189 throws java.io.IOException {
3190 return com.google.protobuf.GeneratedMessageV3
3191 .parseWithIOException(PARSER, input, extensionRegistry);
3199 public static Builder newBuilder(com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators prototype) {
3204 return this == DEFAULT_INSTANCE
3210 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
3223 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
3226 public static final com.google.protobuf.Descriptors.Descriptor
3228 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_LocalSearchNeighborhoodOperators_descriptor;
3232 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
3234 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_LocalSearchNeighborhoodOperators_fieldAccessorTable
3235 .ensureFieldAccessorsInitialized(
3236 com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.class, com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.class);
3245 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
3255 useRelocatePair_ = 0;
3256 useLightRelocatePair_ = 0;
3257 useRelocateNeighbors_ = 0;
3258 useRelocateSubtrip_ = 0;
3260 useExchangePair_ = 0;
3261 useExchangeSubtrip_ = 0;
3263 useCrossExchange_ = 0;
3264 useRelocateExpensiveChain_ = 0;
3267 useLinKernighan_ = 0;
3270 useRelocateAndMakeActive_ = 0;
3271 useMakeInactive_ = 0;
3272 useMakeChainInactive_ = 0;
3274 useExtendedSwapActive_ = 0;
3275 useShortestPathSwapActive_ = 0;
3276 useNodePairSwapActive_ = 0;
3278 useFullPathLns_ = 0;
3280 useInactiveLns_ = 0;
3281 useGlobalCheapestInsertionPathLns_ = 0;
3282 useLocalCheapestInsertionPathLns_ = 0;
3283 useRelocatePathGlobalCheapestInsertionInsertUnperformed_ = 0;
3284 useGlobalCheapestInsertionExpensiveChainLns_ = 0;
3285 useLocalCheapestInsertionExpensiveChainLns_ = 0;
3286 useGlobalCheapestInsertionCloseNodesLns_ = 0;
3287 useLocalCheapestInsertionCloseNodesLns_ = 0;
3292 public com.google.protobuf.Descriptors.Descriptor
3294 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_LocalSearchNeighborhoodOperators_descriptor;
3299 return com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.getDefaultInstance();
3306 throw newUninitializedMessageException(result);
3314 if (bitField0_ != 0) { buildPartial0(result); }
3315 if (bitField1_ != 0) { buildPartial1(result); }
3320 private void buildPartial0(com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators result) {
3321 int from_bitField0_ = bitField0_;
3322 if (((from_bitField0_ & 0x00000001) != 0)) {
3323 result.useRelocate_ = useRelocate_;
3325 if (((from_bitField0_ & 0x00000002) != 0)) {
3326 result.useRelocatePair_ = useRelocatePair_;
3328 if (((from_bitField0_ & 0x00000004) != 0)) {
3329 result.useLightRelocatePair_ = useLightRelocatePair_;
3331 if (((from_bitField0_ & 0x00000008) != 0)) {
3332 result.useRelocateNeighbors_ = useRelocateNeighbors_;
3334 if (((from_bitField0_ & 0x00000010) != 0)) {
3335 result.useRelocateSubtrip_ = useRelocateSubtrip_;
3337 if (((from_bitField0_ & 0x00000020) != 0)) {
3338 result.useExchange_ = useExchange_;
3340 if (((from_bitField0_ & 0x00000040) != 0)) {
3341 result.useExchangePair_ = useExchangePair_;
3343 if (((from_bitField0_ & 0x00000080) != 0)) {
3344 result.useExchangeSubtrip_ = useExchangeSubtrip_;
3346 if (((from_bitField0_ & 0x00000100) != 0)) {
3347 result.useCross_ = useCross_;
3349 if (((from_bitField0_ & 0x00000200) != 0)) {
3350 result.useCrossExchange_ = useCrossExchange_;
3352 if (((from_bitField0_ & 0x00000400) != 0)) {
3353 result.useRelocateExpensiveChain_ = useRelocateExpensiveChain_;
3355 if (((from_bitField0_ & 0x00000800) != 0)) {
3356 result.useTwoOpt_ = useTwoOpt_;
3358 if (((from_bitField0_ & 0x00001000) != 0)) {
3359 result.useOrOpt_ = useOrOpt_;
3361 if (((from_bitField0_ & 0x00002000) != 0)) {
3362 result.useLinKernighan_ = useLinKernighan_;
3364 if (((from_bitField0_ & 0x00004000) != 0)) {
3365 result.useTspOpt_ = useTspOpt_;
3367 if (((from_bitField0_ & 0x00008000) != 0)) {
3368 result.useMakeActive_ = useMakeActive_;
3370 if (((from_bitField0_ & 0x00010000) != 0)) {
3371 result.useRelocateAndMakeActive_ = useRelocateAndMakeActive_;
3373 if (((from_bitField0_ & 0x00020000) != 0)) {
3374 result.useMakeInactive_ = useMakeInactive_;
3376 if (((from_bitField0_ & 0x00040000) != 0)) {
3377 result.useMakeChainInactive_ = useMakeChainInactive_;
3379 if (((from_bitField0_ & 0x00080000) != 0)) {
3380 result.useSwapActive_ = useSwapActive_;
3382 if (((from_bitField0_ & 0x00100000) != 0)) {
3383 result.useExtendedSwapActive_ = useExtendedSwapActive_;
3385 if (((from_bitField0_ & 0x00200000) != 0)) {
3386 result.useShortestPathSwapActive_ = useShortestPathSwapActive_;
3388 if (((from_bitField0_ & 0x00400000) != 0)) {
3389 result.useNodePairSwapActive_ = useNodePairSwapActive_;
3391 if (((from_bitField0_ & 0x00800000) != 0)) {
3392 result.usePathLns_ = usePathLns_;
3394 if (((from_bitField0_ & 0x01000000) != 0)) {
3395 result.useFullPathLns_ = useFullPathLns_;
3397 if (((from_bitField0_ & 0x02000000) != 0)) {
3398 result.useTspLns_ = useTspLns_;
3400 if (((from_bitField0_ & 0x04000000) != 0)) {
3401 result.useInactiveLns_ = useInactiveLns_;
3403 if (((from_bitField0_ & 0x08000000) != 0)) {
3404 result.useGlobalCheapestInsertionPathLns_ = useGlobalCheapestInsertionPathLns_;
3406 if (((from_bitField0_ & 0x10000000) != 0)) {
3407 result.useLocalCheapestInsertionPathLns_ = useLocalCheapestInsertionPathLns_;
3409 if (((from_bitField0_ & 0x20000000) != 0)) {
3410 result.useRelocatePathGlobalCheapestInsertionInsertUnperformed_ = useRelocatePathGlobalCheapestInsertionInsertUnperformed_;
3412 if (((from_bitField0_ & 0x40000000) != 0)) {
3413 result.useGlobalCheapestInsertionExpensiveChainLns_ = useGlobalCheapestInsertionExpensiveChainLns_;
3415 if (((from_bitField0_ & 0x80000000) != 0)) {
3416 result.useLocalCheapestInsertionExpensiveChainLns_ = useLocalCheapestInsertionExpensiveChainLns_;
3420 private void buildPartial1(com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators result) {
3421 int from_bitField1_ = bitField1_;
3422 if (((from_bitField1_ & 0x00000001) != 0)) {
3423 result.useGlobalCheapestInsertionCloseNodesLns_ = useGlobalCheapestInsertionCloseNodesLns_;
3425 if (((from_bitField1_ & 0x00000002) != 0)) {
3426 result.useLocalCheapestInsertionCloseNodesLns_ = useLocalCheapestInsertionCloseNodesLns_;
3432 return super.
clone();
3436 com.google.protobuf.Descriptors.FieldDescriptor field,
3437 java.lang.Object value) {
3438 return super.
setField(field, value);
3442 com.google.protobuf.Descriptors.FieldDescriptor field) {
3447 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
3452 com.google.protobuf.Descriptors.FieldDescriptor field,
3453 int index, java.lang.Object value) {
3458 com.google.protobuf.Descriptors.FieldDescriptor field,
3459 java.lang.Object value) {
3464 if (other instanceof com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators) {
3465 return mergeFrom((com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators)other);
3467 super.mergeFrom(other);
3472 public Builder mergeFrom(com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators other) {
3473 if (other == com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.getDefaultInstance())
return this;
3474 if (other.useRelocate_ != 0) {
3477 if (other.useRelocatePair_ != 0) {
3480 if (other.useLightRelocatePair_ != 0) {
3483 if (other.useRelocateNeighbors_ != 0) {
3486 if (other.useRelocateSubtrip_ != 0) {
3489 if (other.useExchange_ != 0) {
3492 if (other.useExchangePair_ != 0) {
3495 if (other.useExchangeSubtrip_ != 0) {
3498 if (other.useCross_ != 0) {
3501 if (other.useCrossExchange_ != 0) {
3504 if (other.useRelocateExpensiveChain_ != 0) {
3507 if (other.useTwoOpt_ != 0) {
3510 if (other.useOrOpt_ != 0) {
3513 if (other.useLinKernighan_ != 0) {
3516 if (other.useTspOpt_ != 0) {
3519 if (other.useMakeActive_ != 0) {
3522 if (other.useRelocateAndMakeActive_ != 0) {
3525 if (other.useMakeInactive_ != 0) {
3528 if (other.useMakeChainInactive_ != 0) {
3531 if (other.useSwapActive_ != 0) {
3534 if (other.useExtendedSwapActive_ != 0) {
3537 if (other.useShortestPathSwapActive_ != 0) {
3540 if (other.useNodePairSwapActive_ != 0) {
3543 if (other.usePathLns_ != 0) {
3546 if (other.useFullPathLns_ != 0) {
3549 if (other.useTspLns_ != 0) {
3552 if (other.useInactiveLns_ != 0) {
3555 if (other.useGlobalCheapestInsertionPathLns_ != 0) {
3558 if (other.useLocalCheapestInsertionPathLns_ != 0) {
3561 if (other.useRelocatePathGlobalCheapestInsertionInsertUnperformed_ != 0) {
3564 if (other.useGlobalCheapestInsertionExpensiveChainLns_ != 0) {
3567 if (other.useLocalCheapestInsertionExpensiveChainLns_ != 0) {
3570 if (other.useGlobalCheapestInsertionCloseNodesLns_ != 0) {
3573 if (other.useLocalCheapestInsertionCloseNodesLns_ != 0) {
3588 com.google.protobuf.CodedInputStream input,
3589 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3590 throws java.io.IOException {
3591 if (extensionRegistry ==
null) {
3592 throw new java.lang.NullPointerException();
3595 boolean done =
false;
3597 int tag = input.readTag();
3603 useRelocate_ = input.readEnum();
3604 bitField0_ |= 0x00000001;
3608 useRelocatePair_ = input.readEnum();
3609 bitField0_ |= 0x00000002;
3613 useRelocateNeighbors_ = input.readEnum();
3614 bitField0_ |= 0x00000008;
3618 useExchange_ = input.readEnum();
3619 bitField0_ |= 0x00000020;
3623 useCross_ = input.readEnum();
3624 bitField0_ |= 0x00000100;
3628 useCrossExchange_ = input.readEnum();
3629 bitField0_ |= 0x00000200;
3633 useTwoOpt_ = input.readEnum();
3634 bitField0_ |= 0x00000800;
3638 useOrOpt_ = input.readEnum();
3639 bitField0_ |= 0x00001000;
3643 useLinKernighan_ = input.readEnum();
3644 bitField0_ |= 0x00002000;
3648 useTspOpt_ = input.readEnum();
3649 bitField0_ |= 0x00004000;
3653 useMakeActive_ = input.readEnum();
3654 bitField0_ |= 0x00008000;
3658 useMakeInactive_ = input.readEnum();
3659 bitField0_ |= 0x00020000;
3663 useMakeChainInactive_ = input.readEnum();
3664 bitField0_ |= 0x00040000;
3668 useSwapActive_ = input.readEnum();
3669 bitField0_ |= 0x00080000;
3673 useExtendedSwapActive_ = input.readEnum();
3674 bitField0_ |= 0x00100000;
3678 usePathLns_ = input.readEnum();
3679 bitField0_ |= 0x00800000;
3683 useFullPathLns_ = input.readEnum();
3684 bitField0_ |= 0x01000000;
3688 useTspLns_ = input.readEnum();
3689 bitField0_ |= 0x02000000;
3693 useInactiveLns_ = input.readEnum();
3694 bitField0_ |= 0x04000000;
3698 useNodePairSwapActive_ = input.readEnum();
3699 bitField0_ |= 0x00400000;
3703 useRelocateAndMakeActive_ = input.readEnum();
3704 bitField0_ |= 0x00010000;
3708 useExchangePair_ = input.readEnum();
3709 bitField0_ |= 0x00000040;
3713 useRelocateExpensiveChain_ = input.readEnum();
3714 bitField0_ |= 0x00000400;
3718 useLightRelocatePair_ = input.readEnum();
3719 bitField0_ |= 0x00000004;
3723 useRelocateSubtrip_ = input.readEnum();
3724 bitField0_ |= 0x00000010;
3728 useExchangeSubtrip_ = input.readEnum();
3729 bitField0_ |= 0x00000080;
3733 useGlobalCheapestInsertionPathLns_ = input.readEnum();
3734 bitField0_ |= 0x08000000;
3738 useLocalCheapestInsertionPathLns_ = input.readEnum();
3739 bitField0_ |= 0x10000000;
3743 useGlobalCheapestInsertionExpensiveChainLns_ = input.readEnum();
3744 bitField0_ |= 0x40000000;
3748 useLocalCheapestInsertionExpensiveChainLns_ = input.readEnum();
3749 bitField0_ |= 0x80000000;
3753 useGlobalCheapestInsertionCloseNodesLns_ = input.readEnum();
3754 bitField1_ |= 0x00000001;
3758 useLocalCheapestInsertionCloseNodesLns_ = input.readEnum();
3759 bitField1_ |= 0x00000002;
3763 useRelocatePathGlobalCheapestInsertionInsertUnperformed_ = input.readEnum();
3764 bitField0_ |= 0x20000000;
3768 useShortestPathSwapActive_ = input.readEnum();
3769 bitField0_ |= 0x00200000;
3773 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
3780 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
3781 throw e.unwrapIOException();
3787 private int bitField0_;
3788 private int bitField1_;
3790 private int useRelocate_ = 0;
3808 return useRelocate_;
3828 useRelocate_ = value;
3829 bitField0_ |= 0x00000001;
3852 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
3872 if (value ==
null) {
3873 throw new NullPointerException();
3875 bitField0_ |= 0x00000001;
3876 useRelocate_ = value.getNumber();
3897 bitField0_ = (bitField0_ & ~0x00000001);
3903 private int useRelocatePair_ = 0;
3921 return useRelocatePair_;
3941 useRelocatePair_ = value;
3942 bitField0_ |= 0x00000002;
3965 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
3985 if (value ==
null) {
3986 throw new NullPointerException();
3988 bitField0_ |= 0x00000002;
3989 useRelocatePair_ = value.getNumber();
4010 bitField0_ = (bitField0_ & ~0x00000002);
4011 useRelocatePair_ = 0;
4016 private int useLightRelocatePair_ = 0;
4032 return useLightRelocatePair_;
4050 useLightRelocatePair_ = value;
4051 bitField0_ |= 0x00000004;
4072 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
4090 if (value ==
null) {
4091 throw new NullPointerException();
4093 bitField0_ |= 0x00000004;
4094 useLightRelocatePair_ = value.getNumber();
4113 bitField0_ = (bitField0_ & ~0x00000004);
4114 useLightRelocatePair_ = 0;
4119 private int useRelocateNeighbors_ = 0;
4150 return useRelocateNeighbors_;
4183 useRelocateNeighbors_ = value;
4184 bitField0_ |= 0x00000008;
4220 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
4253 if (value ==
null) {
4254 throw new NullPointerException();
4256 bitField0_ |= 0x00000008;
4257 useRelocateNeighbors_ = value.getNumber();
4291 bitField0_ = (bitField0_ & ~0x00000008);
4292 useRelocateNeighbors_ = 0;
4297 private int useRelocateSubtrip_ = 0;
4320 return useRelocateSubtrip_;
4345 useRelocateSubtrip_ = value;
4346 bitField0_ |= 0x00000010;
4374 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
4399 if (value ==
null) {
4400 throw new NullPointerException();
4402 bitField0_ |= 0x00000010;
4403 useRelocateSubtrip_ = value.getNumber();
4429 bitField0_ = (bitField0_ & ~0x00000010);
4430 useRelocateSubtrip_ = 0;
4435 private int useExchange_ = 0;
4451 return useExchange_;
4469 useExchange_ = value;
4470 bitField0_ |= 0x00000020;
4491 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
4509 if (value ==
null) {
4510 throw new NullPointerException();
4512 bitField0_ |= 0x00000020;
4513 useExchange_ = value.getNumber();
4532 bitField0_ = (bitField0_ & ~0x00000020);
4538 private int useExchangePair_ = 0;
4554 return useExchangePair_;
4572 useExchangePair_ = value;
4573 bitField0_ |= 0x00000040;
4594 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
4612 if (value ==
null) {
4613 throw new NullPointerException();
4615 bitField0_ |= 0x00000040;
4616 useExchangePair_ = value.getNumber();
4635 bitField0_ = (bitField0_ & ~0x00000040);
4636 useExchangePair_ = 0;
4641 private int useExchangeSubtrip_ = 0;
4652 return useExchangeSubtrip_;
4665 useExchangeSubtrip_ = value;
4666 bitField0_ |= 0x00000080;
4682 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
4695 if (value ==
null) {
4696 throw new NullPointerException();
4698 bitField0_ |= 0x00000080;
4699 useExchangeSubtrip_ = value.getNumber();
4713 bitField0_ = (bitField0_ & ~0x00000080);
4714 useExchangeSubtrip_ = 0;
4719 private int useCross_ = 0;
4758 bitField0_ |= 0x00000100;
4781 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
4801 if (value ==
null) {
4802 throw new NullPointerException();
4804 bitField0_ |= 0x00000100;
4805 useCross_ = value.getNumber();
4826 bitField0_ = (bitField0_ & ~0x00000100);
4832 private int useCrossExchange_ = 0;
4842 return useCrossExchange_;
4854 useCrossExchange_ = value;
4855 bitField0_ |= 0x00000200;
4870 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
4882 if (value ==
null) {
4883 throw new NullPointerException();
4885 bitField0_ |= 0x00000200;
4886 useCrossExchange_ = value.getNumber();
4899 bitField0_ = (bitField0_ & ~0x00000200);
4900 useCrossExchange_ = 0;
4905 private int useRelocateExpensiveChain_ = 0;
4924 return useRelocateExpensiveChain_;
4945 useRelocateExpensiveChain_ = value;
4946 bitField0_ |= 0x00000400;
4970 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
4991 if (value ==
null) {
4992 throw new NullPointerException();
4994 bitField0_ |= 0x00000400;
4995 useRelocateExpensiveChain_ = value.getNumber();
5017 bitField0_ = (bitField0_ & ~0x00000400);
5018 useRelocateExpensiveChain_ = 0;
5023 private int useTwoOpt_ = 0;
5064 bitField0_ |= 0x00000800;
5088 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
5109 if (value ==
null) {
5110 throw new NullPointerException();
5112 bitField0_ |= 0x00000800;
5113 useTwoOpt_ = value.getNumber();
5135 bitField0_ = (bitField0_ & ~0x00000800);
5141 private int useOrOpt_ = 0;
5184 bitField0_ |= 0x00001000;
5209 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
5231 if (value ==
null) {
5232 throw new NullPointerException();
5234 bitField0_ |= 0x00001000;
5235 useOrOpt_ = value.getNumber();
5258 bitField0_ = (bitField0_ & ~0x00001000);
5264 private int useLinKernighan_ = 0;
5277 return useLinKernighan_;
5292 useLinKernighan_ = value;
5293 bitField0_ |= 0x00002000;
5311 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
5326 if (value ==
null) {
5327 throw new NullPointerException();
5329 bitField0_ |= 0x00002000;
5330 useLinKernighan_ = value.getNumber();
5346 bitField0_ = (bitField0_ & ~0x00002000);
5347 useLinKernighan_ = 0;
5352 private int useTspOpt_ = 0;
5385 bitField0_ |= 0x00004000;
5405 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
5422 if (value ==
null) {
5423 throw new NullPointerException();
5425 bitField0_ |= 0x00004000;
5426 useTspOpt_ = value.getNumber();
5444 bitField0_ = (bitField0_ & ~0x00004000);
5450 private int useMakeActive_ = 0;
5466 return useMakeActive_;
5484 useMakeActive_ = value;
5485 bitField0_ |= 0x00008000;
5506 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
5524 if (value ==
null) {
5525 throw new NullPointerException();
5527 bitField0_ |= 0x00008000;
5528 useMakeActive_ = value.getNumber();
5547 bitField0_ = (bitField0_ & ~0x00008000);
5553 private int useRelocateAndMakeActive_ = 0;
5572 return useRelocateAndMakeActive_;
5593 useRelocateAndMakeActive_ = value;
5594 bitField0_ |= 0x00010000;
5618 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
5639 if (value ==
null) {
5640 throw new NullPointerException();
5642 bitField0_ |= 0x00010000;
5643 useRelocateAndMakeActive_ = value.getNumber();
5665 bitField0_ = (bitField0_ & ~0x00010000);
5666 useRelocateAndMakeActive_ = 0;
5671 private int useMakeInactive_ = 0;
5685 return useMakeInactive_;
5701 useMakeInactive_ = value;
5702 bitField0_ |= 0x00020000;
5721 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
5737 if (value ==
null) {
5738 throw new NullPointerException();
5740 bitField0_ |= 0x00020000;
5741 useMakeInactive_ = value.getNumber();
5758 bitField0_ = (bitField0_ & ~0x00020000);
5759 useMakeInactive_ = 0;
5764 private int useMakeChainInactive_ = 0;
5779 return useMakeChainInactive_;
5796 useMakeChainInactive_ = value;
5797 bitField0_ |= 0x00040000;
5817 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
5834 if (value ==
null) {
5835 throw new NullPointerException();
5837 bitField0_ |= 0x00040000;
5838 useMakeChainInactive_ = value.getNumber();
5856 bitField0_ = (bitField0_ & ~0x00040000);
5857 useMakeChainInactive_ = 0;
5862 private int useSwapActive_ = 0;
5876 return useSwapActive_;
5892 useSwapActive_ = value;
5893 bitField0_ |= 0x00080000;
5912 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
5928 if (value ==
null) {
5929 throw new NullPointerException();
5931 bitField0_ |= 0x00080000;
5932 useSwapActive_ = value.getNumber();
5949 bitField0_ = (bitField0_ & ~0x00080000);
5955 private int useExtendedSwapActive_ = 0;
5974 return useExtendedSwapActive_;
5995 useExtendedSwapActive_ = value;
5996 bitField0_ |= 0x00100000;
6020 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6041 if (value ==
null) {
6042 throw new NullPointerException();
6044 bitField0_ |= 0x00100000;
6045 useExtendedSwapActive_ = value.getNumber();
6067 bitField0_ = (bitField0_ & ~0x00100000);
6068 useExtendedSwapActive_ = 0;
6073 private int useShortestPathSwapActive_ = 0;
6088 return useShortestPathSwapActive_;
6105 useShortestPathSwapActive_ = value;
6106 bitField0_ |= 0x00200000;
6126 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6143 if (value ==
null) {
6144 throw new NullPointerException();
6146 bitField0_ |= 0x00200000;
6147 useShortestPathSwapActive_ = value.getNumber();
6165 bitField0_ = (bitField0_ & ~0x00200000);
6166 useShortestPathSwapActive_ = 0;
6171 private int useNodePairSwapActive_ = 0;
6191 return useNodePairSwapActive_;
6213 useNodePairSwapActive_ = value;
6214 bitField0_ |= 0x00400000;
6239 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6261 if (value ==
null) {
6262 throw new NullPointerException();
6264 bitField0_ |= 0x00400000;
6265 useNodePairSwapActive_ = value.getNumber();
6288 bitField0_ = (bitField0_ & ~0x00400000);
6289 useNodePairSwapActive_ = 0;
6294 private int usePathLns_ = 0;
6330 usePathLns_ = value;
6331 bitField0_ |= 0x00800000;
6353 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6372 if (value ==
null) {
6373 throw new NullPointerException();
6375 bitField0_ |= 0x00800000;
6376 usePathLns_ = value.getNumber();
6396 bitField0_ = (bitField0_ & ~0x00800000);
6402 private int useFullPathLns_ = 0;
6412 return useFullPathLns_;
6424 useFullPathLns_ = value;
6425 bitField0_ |= 0x01000000;
6440 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6452 if (value ==
null) {
6453 throw new NullPointerException();
6455 bitField0_ |= 0x01000000;
6456 useFullPathLns_ = value.getNumber();
6469 bitField0_ = (bitField0_ & ~0x01000000);
6470 useFullPathLns_ = 0;
6475 private int useTspLns_ = 0;
6508 bitField0_ |= 0x02000000;
6528 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6545 if (value ==
null) {
6546 throw new NullPointerException();
6548 bitField0_ |= 0x02000000;
6549 useTspLns_ = value.getNumber();
6567 bitField0_ = (bitField0_ & ~0x02000000);
6573 private int useInactiveLns_ = 0;
6585 return useInactiveLns_;
6599 useInactiveLns_ = value;
6600 bitField0_ |= 0x04000000;
6617 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6631 if (value ==
null) {
6632 throw new NullPointerException();
6634 bitField0_ |= 0x04000000;
6635 useInactiveLns_ = value.getNumber();
6650 bitField0_ = (bitField0_ & ~0x04000000);
6651 useInactiveLns_ = 0;
6656 private int useGlobalCheapestInsertionPathLns_ = 0;
6668 return useGlobalCheapestInsertionPathLns_;
6682 useGlobalCheapestInsertionPathLns_ = value;
6683 bitField0_ |= 0x08000000;
6700 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6714 if (value ==
null) {
6715 throw new NullPointerException();
6717 bitField0_ |= 0x08000000;
6718 useGlobalCheapestInsertionPathLns_ = value.getNumber();
6733 bitField0_ = (bitField0_ & ~0x08000000);
6734 useGlobalCheapestInsertionPathLns_ = 0;
6739 private int useLocalCheapestInsertionPathLns_ = 0;
6749 return useLocalCheapestInsertionPathLns_;
6761 useLocalCheapestInsertionPathLns_ = value;
6762 bitField0_ |= 0x10000000;
6777 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6789 if (value ==
null) {
6790 throw new NullPointerException();
6792 bitField0_ |= 0x10000000;
6793 useLocalCheapestInsertionPathLns_ = value.getNumber();
6806 bitField0_ = (bitField0_ & ~0x10000000);
6807 useLocalCheapestInsertionPathLns_ = 0;
6812 private int useRelocatePathGlobalCheapestInsertionInsertUnperformed_ = 0;
6824 return useRelocatePathGlobalCheapestInsertionInsertUnperformed_;
6838 useRelocatePathGlobalCheapestInsertionInsertUnperformed_ = value;
6839 bitField0_ |= 0x20000000;
6856 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6870 if (value ==
null) {
6871 throw new NullPointerException();
6873 bitField0_ |= 0x20000000;
6874 useRelocatePathGlobalCheapestInsertionInsertUnperformed_ = value.getNumber();
6889 bitField0_ = (bitField0_ & ~0x20000000);
6890 useRelocatePathGlobalCheapestInsertionInsertUnperformed_ = 0;
6895 private int useGlobalCheapestInsertionExpensiveChainLns_ = 0;
6908 return useGlobalCheapestInsertionExpensiveChainLns_;
6923 useGlobalCheapestInsertionExpensiveChainLns_ = value;
6924 bitField0_ |= 0x40000000;
6942 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6957 if (value ==
null) {
6958 throw new NullPointerException();
6960 bitField0_ |= 0x40000000;
6961 useGlobalCheapestInsertionExpensiveChainLns_ = value.getNumber();
6977 bitField0_ = (bitField0_ & ~0x40000000);
6978 useGlobalCheapestInsertionExpensiveChainLns_ = 0;
6983 private int useLocalCheapestInsertionExpensiveChainLns_ = 0;
6994 return useLocalCheapestInsertionExpensiveChainLns_;
7007 useLocalCheapestInsertionExpensiveChainLns_ = value;
7008 bitField0_ |= 0x80000000;
7024 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
7037 if (value ==
null) {
7038 throw new NullPointerException();
7040 bitField0_ |= 0x80000000;
7041 useLocalCheapestInsertionExpensiveChainLns_ = value.getNumber();
7055 bitField0_ = (bitField0_ & ~0x80000000);
7056 useLocalCheapestInsertionExpensiveChainLns_ = 0;
7061 private int useGlobalCheapestInsertionCloseNodesLns_ = 0;
7074 return useGlobalCheapestInsertionCloseNodesLns_;
7089 useGlobalCheapestInsertionCloseNodesLns_ = value;
7090 bitField1_ |= 0x00000001;
7108 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
7123 if (value ==
null) {
7124 throw new NullPointerException();
7126 bitField1_ |= 0x00000001;
7127 useGlobalCheapestInsertionCloseNodesLns_ = value.getNumber();
7143 bitField1_ = (bitField1_ & ~0x00000001);
7144 useGlobalCheapestInsertionCloseNodesLns_ = 0;
7149 private int useLocalCheapestInsertionCloseNodesLns_ = 0;
7160 return useLocalCheapestInsertionCloseNodesLns_;
7173 useLocalCheapestInsertionCloseNodesLns_ = value;
7174 bitField1_ |= 0x00000002;
7190 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
7203 if (value ==
null) {
7204 throw new NullPointerException();
7206 bitField1_ |= 0x00000002;
7207 useLocalCheapestInsertionCloseNodesLns_ = value.getNumber();
7221 bitField1_ = (bitField1_ & ~0x00000002);
7222 useLocalCheapestInsertionCloseNodesLns_ = 0;
7228 final com.google.protobuf.UnknownFieldSet unknownFields) {
7234 final com.google.protobuf.UnknownFieldSet unknownFields) {
7245 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators();
7249 return DEFAULT_INSTANCE;
7256 com.google.protobuf.CodedInputStream input,
7257 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7258 throws com.google.protobuf.InvalidProtocolBufferException {
7261 builder.
mergeFrom(input, extensionRegistry);
7262 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
7264 }
catch (com.google.protobuf.UninitializedMessageException e) {
7265 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
7266 }
catch (java.io.IOException e) {
7267 throw new com.google.protobuf.InvalidProtocolBufferException(e)
7285 return DEFAULT_INSTANCE;
7292 com.google.protobuf.MessageOrBuilder {
7328 com.google.protobuf.GeneratedMessageV3 implements
7331 private static final long serialVersionUID = 0L;
7340 @SuppressWarnings({
"unused"})
7342 UnusedPrivateParameter unused) {
7346 public static final com.google.protobuf.Descriptors.Descriptor
7348 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_ImprovementSearchLimitParameters_descriptor;
7352 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
7354 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_ImprovementSearchLimitParameters_fieldAccessorTable
7355 .ensureFieldAccessorsInitialized(
7356 com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.class, com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.Builder.class);
7360 private double improvementRateCoefficient_ = 0D;
7373 return improvementRateCoefficient_;
7377 private int improvementRateSolutionsDistance_ = 0;
7392 return improvementRateSolutionsDistance_;
7395 private byte memoizedIsInitialized = -1;
7402 memoizedIsInitialized = 1;
7407 public void writeTo(com.google.protobuf.CodedOutputStream output)
7408 throws java.io.IOException {
7409 if (java.lang.Double.doubleToRawLongBits(improvementRateCoefficient_) != 0) {
7410 output.writeDouble(38, improvementRateCoefficient_);
7412 if (improvementRateSolutionsDistance_ != 0) {
7413 output.writeInt32(39, improvementRateSolutionsDistance_);
7415 getUnknownFields().writeTo(output);
7420 int size = memoizedSize;
7421 if (size != -1)
return size;
7424 if (java.lang.Double.doubleToRawLongBits(improvementRateCoefficient_) != 0) {
7425 size += com.google.protobuf.CodedOutputStream
7426 .computeDoubleSize(38, improvementRateCoefficient_);
7428 if (improvementRateSolutionsDistance_ != 0) {
7429 size += com.google.protobuf.CodedOutputStream
7430 .computeInt32Size(39, improvementRateSolutionsDistance_);
7432 size += getUnknownFields().getSerializedSize();
7433 memoizedSize = size;
7438 public boolean equals(
final java.lang.Object obj) {
7442 if (!(obj instanceof com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters)) {
7443 return super.equals(obj);
7448 != java.lang.Double.doubleToLongBits(
7452 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
7458 if (memoizedHashCode != 0) {
7459 return memoizedHashCode;
7464 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
7468 hash = (29 * hash) + getUnknownFields().hashCode();
7469 memoizedHashCode = hash;
7474 java.nio.ByteBuffer data)
7475 throws com.google.protobuf.InvalidProtocolBufferException {
7479 java.nio.ByteBuffer data,
7480 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7481 throws com.google.protobuf.InvalidProtocolBufferException {
7482 return PARSER.
parseFrom(data, extensionRegistry);
7485 com.google.protobuf.ByteString data)
7486 throws com.google.protobuf.InvalidProtocolBufferException {
7490 com.google.protobuf.ByteString data,
7491 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7492 throws com.google.protobuf.InvalidProtocolBufferException {
7493 return PARSER.
parseFrom(data, extensionRegistry);
7496 throws com.google.protobuf.InvalidProtocolBufferException {
7501 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7502 throws com.google.protobuf.InvalidProtocolBufferException {
7503 return PARSER.
parseFrom(data, extensionRegistry);
7506 throws java.io.IOException {
7507 return com.google.protobuf.GeneratedMessageV3
7508 .parseWithIOException(PARSER, input);
7511 java.io.InputStream input,
7512 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7513 throws java.io.IOException {
7514 return com.google.protobuf.GeneratedMessageV3
7515 .parseWithIOException(PARSER, input, extensionRegistry);
7519 throws java.io.IOException {
7520 return com.google.protobuf.GeneratedMessageV3
7521 .parseDelimitedWithIOException(PARSER, input);
7525 java.io.InputStream input,
7526 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7527 throws java.io.IOException {
7528 return com.google.protobuf.GeneratedMessageV3
7529 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
7532 com.google.protobuf.CodedInputStream input)
7533 throws java.io.IOException {
7534 return com.google.protobuf.GeneratedMessageV3
7535 .parseWithIOException(PARSER, input);
7538 com.google.protobuf.CodedInputStream input,
7539 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7540 throws java.io.IOException {
7541 return com.google.protobuf.GeneratedMessageV3
7542 .parseWithIOException(PARSER, input, extensionRegistry);
7550 public static Builder newBuilder(com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters prototype) {
7555 return this == DEFAULT_INSTANCE
7561 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
7573 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
7576 public static final com.google.protobuf.Descriptors.Descriptor
7578 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_ImprovementSearchLimitParameters_descriptor;
7582 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
7584 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_ImprovementSearchLimitParameters_fieldAccessorTable
7585 .ensureFieldAccessorsInitialized(
7586 com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.class, com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.Builder.class);
7595 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
7603 improvementRateCoefficient_ = 0D;
7604 improvementRateSolutionsDistance_ = 0;
7609 public com.google.protobuf.Descriptors.Descriptor
7611 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_ImprovementSearchLimitParameters_descriptor;
7616 return com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.getDefaultInstance();
7623 throw newUninitializedMessageException(result);
7631 if (bitField0_ != 0) { buildPartial0(result); }
7636 private void buildPartial0(com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters result) {
7637 int from_bitField0_ = bitField0_;
7638 if (((from_bitField0_ & 0x00000001) != 0)) {
7639 result.improvementRateCoefficient_ = improvementRateCoefficient_;
7641 if (((from_bitField0_ & 0x00000002) != 0)) {
7642 result.improvementRateSolutionsDistance_ = improvementRateSolutionsDistance_;
7648 return super.
clone();
7652 com.google.protobuf.Descriptors.FieldDescriptor field,
7653 java.lang.Object value) {
7654 return super.
setField(field, value);
7658 com.google.protobuf.Descriptors.FieldDescriptor field) {
7663 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
7668 com.google.protobuf.Descriptors.FieldDescriptor field,
7669 int index, java.lang.Object value) {
7674 com.google.protobuf.Descriptors.FieldDescriptor field,
7675 java.lang.Object value) {
7680 if (other instanceof com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters) {
7681 return mergeFrom((com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters)other);
7683 super.mergeFrom(other);
7688 public Builder mergeFrom(com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters other) {
7689 if (other == com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.getDefaultInstance())
return this;
7690 if (other.getImprovementRateCoefficient() != 0D) {
7693 if (other.getImprovementRateSolutionsDistance() != 0) {
7708 com.google.protobuf.CodedInputStream input,
7709 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7710 throws java.io.IOException {
7711 if (extensionRegistry ==
null) {
7712 throw new java.lang.NullPointerException();
7715 boolean done =
false;
7717 int tag = input.readTag();
7723 improvementRateCoefficient_ = input.readDouble();
7724 bitField0_ |= 0x00000001;
7728 improvementRateSolutionsDistance_ = input.readInt32();
7729 bitField0_ |= 0x00000002;
7733 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
7740 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
7741 throw e.unwrapIOException();
7747 private int bitField0_;
7749 private double improvementRateCoefficient_ ;
7762 return improvementRateCoefficient_;
7777 improvementRateCoefficient_ = value;
7778 bitField0_ |= 0x00000001;
7793 bitField0_ = (bitField0_ & ~0x00000001);
7794 improvementRateCoefficient_ = 0D;
7799 private int improvementRateSolutionsDistance_ ;
7814 return improvementRateSolutionsDistance_;
7831 improvementRateSolutionsDistance_ = value;
7832 bitField0_ |= 0x00000002;
7849 bitField0_ = (bitField0_ & ~0x00000002);
7850 improvementRateSolutionsDistance_ = 0;
7856 final com.google.protobuf.UnknownFieldSet unknownFields) {
7862 final com.google.protobuf.UnknownFieldSet unknownFields) {
7873 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters();
7877 return DEFAULT_INSTANCE;
7884 com.google.protobuf.CodedInputStream input,
7885 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7886 throws com.google.protobuf.InvalidProtocolBufferException {
7889 builder.
mergeFrom(input, extensionRegistry);
7890 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
7892 }
catch (com.google.protobuf.UninitializedMessageException e) {
7893 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
7894 }
catch (java.io.IOException e) {
7895 throw new com.google.protobuf.InvalidProtocolBufferException(e)
7913 return DEFAULT_INSTANCE;
7918 private int bitField0_;
7920 private int firstSolutionStrategy_ = 0;
7930 return firstSolutionStrategy_;
7942 return result ==
null ? com.google.ortools.constraintsolver.FirstSolutionStrategy.Value.UNRECOGNIZED : result;
7946 private boolean useUnfilteredFirstSolutionStrategy_ =
false;
7960 return useUnfilteredFirstSolutionStrategy_;
7964 private double savingsNeighborsRatio_ = 0D;
7977 return savingsNeighborsRatio_;
7981 private double savingsMaxMemoryUsageBytes_ = 0D;
7997 return savingsMaxMemoryUsageBytes_;
8001 private boolean savingsAddReverseArcs_ =
false;
8013 return savingsAddReverseArcs_;
8017 private double savingsArcCoefficient_ = 0D;
8032 return savingsArcCoefficient_;
8036 private boolean savingsParallelRoutes_ =
false;
8047 return savingsParallelRoutes_;
8051 private double cheapestInsertionFarthestSeedsRatio_ = 0D;
8064 return cheapestInsertionFarthestSeedsRatio_;
8068 private double cheapestInsertionFirstSolutionNeighborsRatio_ = 0D;
8093 return cheapestInsertionFirstSolutionNeighborsRatio_;
8097 private int cheapestInsertionFirstSolutionMinNeighbors_ = 0;
8104 return cheapestInsertionFirstSolutionMinNeighbors_;
8108 private double cheapestInsertionLsOperatorNeighborsRatio_ = 0D;
8122 return cheapestInsertionLsOperatorNeighborsRatio_;
8126 private int cheapestInsertionLsOperatorMinNeighbors_ = 0;
8133 return cheapestInsertionLsOperatorMinNeighbors_;
8137 private boolean cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_ =
false;
8149 return cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_;
8153 private boolean cheapestInsertionAddUnperformedEntries_ =
false;
8165 return cheapestInsertionAddUnperformedEntries_;
8169 private int localCheapestInsertionPickupDeliveryStrategy_ = 0;
8180 return localCheapestInsertionPickupDeliveryStrategy_;
8193 return result ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.PairInsertionStrategy.UNRECOGNIZED : result;
8197 private int localCheapestCostInsertionPickupDeliveryStrategy_ = 0;
8208 return localCheapestCostInsertionPickupDeliveryStrategy_;
8221 return result ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.PairInsertionStrategy.UNRECOGNIZED : result;
8225 private boolean christofidesUseMinimumMatching_ =
false;
8237 return christofidesUseMinimumMatching_;
8241 private int firstSolutionOptimizationPeriod_ = 0;
8258 return firstSolutionOptimizationPeriod_;
8269 return ((bitField0_ & 0x00000001) != 0);
8277 return localSearchOperators_ ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.getDefaultInstance() : localSearchOperators_;
8284 return localSearchOperators_ ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.getDefaultInstance() : localSearchOperators_;
8288 private double lsOperatorNeighborsRatio_ = 0D;
8301 return lsOperatorNeighborsRatio_;
8305 private int lsOperatorMinNeighbors_ = 0;
8312 return lsOperatorMinNeighbors_;
8316 private boolean useMultiArmedBanditConcatenateOperators_ =
false;
8329 return useMultiArmedBanditConcatenateOperators_;
8333 private double multiArmedBanditCompoundOperatorMemoryCoefficient_ = 0D;
8347 return multiArmedBanditCompoundOperatorMemoryCoefficient_;
8351 private double multiArmedBanditCompoundOperatorExplorationCoefficient_ = 0D;
8364 return multiArmedBanditCompoundOperatorExplorationCoefficient_;
8368 private int relocateExpensiveChainNumArcsToConsider_ = 0;
8385 return relocateExpensiveChainNumArcsToConsider_;
8389 private int heuristicExpensiveChainLnsNumArcsToConsider_ = 0;
8401 return heuristicExpensiveChainLnsNumArcsToConsider_;
8405 private int heuristicCloseNodesLnsNumNodes_ = 0;
8417 return heuristicCloseNodesLnsNumNodes_;
8421 private int localSearchMetaheuristic_ = 0;
8431 return localSearchMetaheuristic_;
8443 return result ==
null ? com.google.ortools.constraintsolver.LocalSearchMetaheuristic.Value.UNRECOGNIZED : result;
8447 private double guidedLocalSearchLambdaCoefficient_ = 0D;
8461 return guidedLocalSearchLambdaCoefficient_;
8465 private boolean guidedLocalSearchResetPenaltiesOnNewBestSolution_ =
false;
8477 return guidedLocalSearchResetPenaltiesOnNewBestSolution_;
8481 private boolean useDepthFirstSearch_ =
false;
8495 return useDepthFirstSearch_;
8499 private int useCp_ = 0;
8525 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
8529 private int useCpSat_ = 0;
8557 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
8561 private int useGeneralizedCpSat_ = 0;
8574 return useGeneralizedCpSat_;
8589 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
8605 return ((bitField0_ & 0x00000002) != 0);
8618 return satParameters_ ==
null ? com.google.ortools.sat.SatParameters.getDefaultInstance() : satParameters_;
8630 return satParameters_ ==
null ? com.google.ortools.sat.SatParameters.getDefaultInstance() : satParameters_;
8634 private boolean reportIntermediateCpSatSolutions_ =
false;
8646 return reportIntermediateCpSatSolutions_;
8650 private int fallbackToCpSatSizeThreshold_ = 0;
8662 return fallbackToCpSatSizeThreshold_;
8666 private int continuousSchedulingSolver_ = 0;
8672 return continuousSchedulingSolver_;
8680 return result ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.SchedulingSolver.UNRECOGNIZED : result;
8684 private int mixedIntegerSchedulingSolver_ = 0;
8690 return mixedIntegerSchedulingSolver_;
8698 return result ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.SchedulingSolver.UNRECOGNIZED : result;
8702 private boolean disableSchedulingBewareThisMayDegradePerformance_ =
false;
8714 return ((bitField0_ & 0x00000004) != 0);
8727 return disableSchedulingBewareThisMayDegradePerformance_;
8731 private double optimizationStep_ = 0D;
8744 return optimizationStep_;
8748 private int numberOfSolutionsToCollect_ = 0;
8760 return numberOfSolutionsToCollect_;
8764 private long solutionLimit_ = 0L;
8777 return solutionLimit_;
8781 private com.google.protobuf.Duration timeLimit_;
8792 return ((bitField0_ & 0x00000008) != 0);
8804 return timeLimit_ ==
null ? com.google.protobuf.Duration.getDefaultInstance() : timeLimit_;
8815 return timeLimit_ ==
null ? com.google.protobuf.Duration.getDefaultInstance() : timeLimit_;
8819 private com.google.protobuf.Duration lnsTimeLimit_;
8831 return ((bitField0_ & 0x00000010) != 0);
8844 return lnsTimeLimit_ ==
null ? com.google.protobuf.Duration.getDefaultInstance() : lnsTimeLimit_;
8856 return lnsTimeLimit_ ==
null ? com.google.protobuf.Duration.getDefaultInstance() : lnsTimeLimit_;
8860 private double secondaryLsTimeLimitRatio_ = 0D;
8876 return secondaryLsTimeLimitRatio_;
8892 return ((bitField0_ & 0x00000020) != 0);
8905 return improvementLimitParameters_ ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.getDefaultInstance() : improvementLimitParameters_;
8917 return improvementLimitParameters_ ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.getDefaultInstance() : improvementLimitParameters_;
8921 private boolean useFullPropagation_ =
false;
8941 return useFullPropagation_;
8945 private boolean logSearch_ =
false;
8972 private double logCostScalingFactor_ = 0D;
8984 return logCostScalingFactor_;
8988 private double logCostOffset_ = 0D;
8995 return logCostOffset_;
8999 @SuppressWarnings(
"serial")
9000 private volatile java.lang.Object logTag_ = "";
9012 java.lang.Object ref = logTag_;
9013 if (ref instanceof java.lang.String) {
9014 return (java.lang.String) ref;
9016 com.google.protobuf.ByteString bs =
9017 (com.google.protobuf.ByteString) ref;
9018 java.lang.String s = bs.toStringUtf8();
9033 public com.google.protobuf.ByteString
9035 java.lang.Object ref = logTag_;
9036 if (ref instanceof java.lang.String) {
9037 com.google.protobuf.ByteString b =
9038 com.google.protobuf.ByteString.copyFromUtf8(
9039 (java.lang.String) ref);
9043 return (com.google.protobuf.ByteString) ref;
9048 private boolean useIteratedLocalSearch_ =
false;
9060 return useIteratedLocalSearch_;
9075 return ((bitField0_ & 0x00000040) != 0);
9101 private byte memoizedIsInitialized = -1;
9108 memoizedIsInitialized = 1;
9113 public void writeTo(com.google.protobuf.CodedOutputStream output)
9114 throws java.io.IOException {
9115 if (firstSolutionStrategy_ != com.google.ortools.constraintsolver.FirstSolutionStrategy.Value.UNSET.getNumber()) {
9116 output.writeEnum(1, firstSolutionStrategy_);
9118 if (useUnfilteredFirstSolutionStrategy_ !=
false) {
9119 output.writeBool(2, useUnfilteredFirstSolutionStrategy_);
9121 if (((bitField0_ & 0x00000001) != 0)) {
9124 if (localSearchMetaheuristic_ != com.google.ortools.constraintsolver.LocalSearchMetaheuristic.Value.UNSET.getNumber()) {
9125 output.writeEnum(4, localSearchMetaheuristic_);
9127 if (java.lang.Double.doubleToRawLongBits(guidedLocalSearchLambdaCoefficient_) != 0) {
9128 output.writeDouble(5, guidedLocalSearchLambdaCoefficient_);
9130 if (useDepthFirstSearch_ !=
false) {
9131 output.writeBool(6, useDepthFirstSearch_);
9133 if (java.lang.Double.doubleToRawLongBits(optimizationStep_) != 0) {
9134 output.writeDouble(7, optimizationStep_);
9136 if (solutionLimit_ != 0L) {
9137 output.writeInt64(8, solutionLimit_);
9139 if (((bitField0_ & 0x00000008) != 0)) {
9142 if (((bitField0_ & 0x00000010) != 0)) {
9145 if (useFullPropagation_ !=
false) {
9146 output.writeBool(11, useFullPropagation_);
9148 if (logSearch_ !=
false) {
9149 output.writeBool(13, logSearch_);
9151 if (java.lang.Double.doubleToRawLongBits(savingsNeighborsRatio_) != 0) {
9152 output.writeDouble(14, savingsNeighborsRatio_);
9154 if (savingsAddReverseArcs_ !=
false) {
9155 output.writeBool(15, savingsAddReverseArcs_);
9157 if (java.lang.Double.doubleToRawLongBits(cheapestInsertionFarthestSeedsRatio_) != 0) {
9158 output.writeDouble(16, cheapestInsertionFarthestSeedsRatio_);
9160 if (numberOfSolutionsToCollect_ != 0) {
9161 output.writeInt32(17, numberOfSolutionsToCollect_);
9163 if (java.lang.Double.doubleToRawLongBits(savingsArcCoefficient_) != 0) {
9164 output.writeDouble(18, savingsArcCoefficient_);
9166 if (savingsParallelRoutes_ !=
false) {
9167 output.writeBool(19, savingsParallelRoutes_);
9169 if (relocateExpensiveChainNumArcsToConsider_ != 0) {
9170 output.writeInt32(20, relocateExpensiveChainNumArcsToConsider_);
9172 if (java.lang.Double.doubleToRawLongBits(cheapestInsertionFirstSolutionNeighborsRatio_) != 0) {
9173 output.writeDouble(21, cheapestInsertionFirstSolutionNeighborsRatio_);
9175 if (java.lang.Double.doubleToRawLongBits(logCostScalingFactor_) != 0) {
9176 output.writeDouble(22, logCostScalingFactor_);
9178 if (java.lang.Double.doubleToRawLongBits(savingsMaxMemoryUsageBytes_) != 0) {
9179 output.writeDouble(23, savingsMaxMemoryUsageBytes_);
9181 if (useCpSat_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
9182 output.writeEnum(27, useCpSat_);
9184 if (useCp_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
9185 output.writeEnum(28, useCp_);
9187 if (java.lang.Double.doubleToRawLongBits(logCostOffset_) != 0) {
9188 output.writeDouble(29, logCostOffset_);
9190 if (christofidesUseMinimumMatching_ !=
false) {
9191 output.writeBool(30, christofidesUseMinimumMatching_);
9193 if (java.lang.Double.doubleToRawLongBits(cheapestInsertionLsOperatorNeighborsRatio_) != 0) {
9194 output.writeDouble(31, cheapestInsertionLsOperatorNeighborsRatio_);
9196 if (heuristicExpensiveChainLnsNumArcsToConsider_ != 0) {
9197 output.writeInt32(32, heuristicExpensiveChainLnsNumArcsToConsider_);
9199 if (continuousSchedulingSolver_ != com.google.ortools.constraintsolver.RoutingSearchParameters.SchedulingSolver.SCHEDULING_UNSET.getNumber()) {
9200 output.writeEnum(33, continuousSchedulingSolver_);
9202 if (mixedIntegerSchedulingSolver_ != com.google.ortools.constraintsolver.RoutingSearchParameters.SchedulingSolver.SCHEDULING_UNSET.getNumber()) {
9203 output.writeEnum(34, mixedIntegerSchedulingSolver_);
9205 if (heuristicCloseNodesLnsNumNodes_ != 0) {
9206 output.writeInt32(35, heuristicCloseNodesLnsNumNodes_);
9208 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logTag_)) {
9209 com.google.protobuf.GeneratedMessageV3.writeString(output, 36, logTag_);
9211 if (((bitField0_ & 0x00000020) != 0)) {
9214 if (cheapestInsertionAddUnperformedEntries_ !=
false) {
9215 output.writeBool(40, cheapestInsertionAddUnperformedEntries_);
9217 if (useMultiArmedBanditConcatenateOperators_ !=
false) {
9218 output.writeBool(41, useMultiArmedBanditConcatenateOperators_);
9220 if (java.lang.Double.doubleToRawLongBits(multiArmedBanditCompoundOperatorMemoryCoefficient_) != 0) {
9221 output.writeDouble(42, multiArmedBanditCompoundOperatorMemoryCoefficient_);
9223 if (java.lang.Double.doubleToRawLongBits(multiArmedBanditCompoundOperatorExplorationCoefficient_) != 0) {
9224 output.writeDouble(43, multiArmedBanditCompoundOperatorExplorationCoefficient_);
9226 if (cheapestInsertionFirstSolutionMinNeighbors_ != 0) {
9227 output.writeInt32(44, cheapestInsertionFirstSolutionMinNeighbors_);
9229 if (cheapestInsertionLsOperatorMinNeighbors_ != 0) {
9230 output.writeInt32(45, cheapestInsertionLsOperatorMinNeighbors_);
9232 if (cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_ !=
false) {
9233 output.writeBool(46, cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_);
9235 if (useGeneralizedCpSat_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
9236 output.writeEnum(47, useGeneralizedCpSat_);
9238 if (((bitField0_ & 0x00000002) != 0)) {
9241 if (localCheapestInsertionPickupDeliveryStrategy_ != com.google.ortools.constraintsolver.RoutingSearchParameters.PairInsertionStrategy.AUTOMATIC.getNumber()) {
9242 output.writeEnum(49, localCheapestInsertionPickupDeliveryStrategy_);
9244 if (((bitField0_ & 0x00000004) != 0)) {
9245 output.writeBool(50, disableSchedulingBewareThisMayDegradePerformance_);
9247 if (guidedLocalSearchResetPenaltiesOnNewBestSolution_ !=
false) {
9248 output.writeBool(51, guidedLocalSearchResetPenaltiesOnNewBestSolution_);
9250 if (fallbackToCpSatSizeThreshold_ != 0) {
9251 output.writeInt32(52, fallbackToCpSatSizeThreshold_);
9253 if (java.lang.Double.doubleToRawLongBits(lsOperatorNeighborsRatio_) != 0) {
9254 output.writeDouble(53, lsOperatorNeighborsRatio_);
9256 if (lsOperatorMinNeighbors_ != 0) {
9257 output.writeInt32(54, lsOperatorMinNeighbors_);
9259 if (localCheapestCostInsertionPickupDeliveryStrategy_ != com.google.ortools.constraintsolver.RoutingSearchParameters.PairInsertionStrategy.AUTOMATIC.getNumber()) {
9260 output.writeEnum(55, localCheapestCostInsertionPickupDeliveryStrategy_);
9262 if (reportIntermediateCpSatSolutions_ !=
false) {
9263 output.writeBool(56, reportIntermediateCpSatSolutions_);
9265 if (java.lang.Double.doubleToRawLongBits(secondaryLsTimeLimitRatio_) != 0) {
9266 output.writeDouble(57, secondaryLsTimeLimitRatio_);
9268 if (useIteratedLocalSearch_ !=
false) {
9269 output.writeBool(58, useIteratedLocalSearch_);
9271 if (firstSolutionOptimizationPeriod_ != 0) {
9272 output.writeInt32(59, firstSolutionOptimizationPeriod_);
9274 if (((bitField0_ & 0x00000040) != 0)) {
9277 getUnknownFields().writeTo(output);
9282 int size = memoizedSize;
9283 if (size != -1)
return size;
9286 if (firstSolutionStrategy_ != com.google.ortools.constraintsolver.FirstSolutionStrategy.Value.UNSET.getNumber()) {
9287 size += com.google.protobuf.CodedOutputStream
9288 .computeEnumSize(1, firstSolutionStrategy_);
9290 if (useUnfilteredFirstSolutionStrategy_ !=
false) {
9291 size += com.google.protobuf.CodedOutputStream
9292 .computeBoolSize(2, useUnfilteredFirstSolutionStrategy_);
9294 if (((bitField0_ & 0x00000001) != 0)) {
9295 size += com.google.protobuf.CodedOutputStream
9298 if (localSearchMetaheuristic_ != com.google.ortools.constraintsolver.LocalSearchMetaheuristic.Value.UNSET.getNumber()) {
9299 size += com.google.protobuf.CodedOutputStream
9300 .computeEnumSize(4, localSearchMetaheuristic_);
9302 if (java.lang.Double.doubleToRawLongBits(guidedLocalSearchLambdaCoefficient_) != 0) {
9303 size += com.google.protobuf.CodedOutputStream
9304 .computeDoubleSize(5, guidedLocalSearchLambdaCoefficient_);
9306 if (useDepthFirstSearch_ !=
false) {
9307 size += com.google.protobuf.CodedOutputStream
9308 .computeBoolSize(6, useDepthFirstSearch_);
9310 if (java.lang.Double.doubleToRawLongBits(optimizationStep_) != 0) {
9311 size += com.google.protobuf.CodedOutputStream
9312 .computeDoubleSize(7, optimizationStep_);
9314 if (solutionLimit_ != 0L) {
9315 size += com.google.protobuf.CodedOutputStream
9316 .computeInt64Size(8, solutionLimit_);
9318 if (((bitField0_ & 0x00000008) != 0)) {
9319 size += com.google.protobuf.CodedOutputStream
9322 if (((bitField0_ & 0x00000010) != 0)) {
9323 size += com.google.protobuf.CodedOutputStream
9326 if (useFullPropagation_ !=
false) {
9327 size += com.google.protobuf.CodedOutputStream
9328 .computeBoolSize(11, useFullPropagation_);
9330 if (logSearch_ !=
false) {
9331 size += com.google.protobuf.CodedOutputStream
9332 .computeBoolSize(13, logSearch_);
9334 if (java.lang.Double.doubleToRawLongBits(savingsNeighborsRatio_) != 0) {
9335 size += com.google.protobuf.CodedOutputStream
9336 .computeDoubleSize(14, savingsNeighborsRatio_);
9338 if (savingsAddReverseArcs_ !=
false) {
9339 size += com.google.protobuf.CodedOutputStream
9340 .computeBoolSize(15, savingsAddReverseArcs_);
9342 if (java.lang.Double.doubleToRawLongBits(cheapestInsertionFarthestSeedsRatio_) != 0) {
9343 size += com.google.protobuf.CodedOutputStream
9344 .computeDoubleSize(16, cheapestInsertionFarthestSeedsRatio_);
9346 if (numberOfSolutionsToCollect_ != 0) {
9347 size += com.google.protobuf.CodedOutputStream
9348 .computeInt32Size(17, numberOfSolutionsToCollect_);
9350 if (java.lang.Double.doubleToRawLongBits(savingsArcCoefficient_) != 0) {
9351 size += com.google.protobuf.CodedOutputStream
9352 .computeDoubleSize(18, savingsArcCoefficient_);
9354 if (savingsParallelRoutes_ !=
false) {
9355 size += com.google.protobuf.CodedOutputStream
9356 .computeBoolSize(19, savingsParallelRoutes_);
9358 if (relocateExpensiveChainNumArcsToConsider_ != 0) {
9359 size += com.google.protobuf.CodedOutputStream
9360 .computeInt32Size(20, relocateExpensiveChainNumArcsToConsider_);
9362 if (java.lang.Double.doubleToRawLongBits(cheapestInsertionFirstSolutionNeighborsRatio_) != 0) {
9363 size += com.google.protobuf.CodedOutputStream
9364 .computeDoubleSize(21, cheapestInsertionFirstSolutionNeighborsRatio_);
9366 if (java.lang.Double.doubleToRawLongBits(logCostScalingFactor_) != 0) {
9367 size += com.google.protobuf.CodedOutputStream
9368 .computeDoubleSize(22, logCostScalingFactor_);
9370 if (java.lang.Double.doubleToRawLongBits(savingsMaxMemoryUsageBytes_) != 0) {
9371 size += com.google.protobuf.CodedOutputStream
9372 .computeDoubleSize(23, savingsMaxMemoryUsageBytes_);
9374 if (useCpSat_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
9375 size += com.google.protobuf.CodedOutputStream
9376 .computeEnumSize(27, useCpSat_);
9378 if (useCp_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
9379 size += com.google.protobuf.CodedOutputStream
9380 .computeEnumSize(28, useCp_);
9382 if (java.lang.Double.doubleToRawLongBits(logCostOffset_) != 0) {
9383 size += com.google.protobuf.CodedOutputStream
9384 .computeDoubleSize(29, logCostOffset_);
9386 if (christofidesUseMinimumMatching_ !=
false) {
9387 size += com.google.protobuf.CodedOutputStream
9388 .computeBoolSize(30, christofidesUseMinimumMatching_);
9390 if (java.lang.Double.doubleToRawLongBits(cheapestInsertionLsOperatorNeighborsRatio_) != 0) {
9391 size += com.google.protobuf.CodedOutputStream
9392 .computeDoubleSize(31, cheapestInsertionLsOperatorNeighborsRatio_);
9394 if (heuristicExpensiveChainLnsNumArcsToConsider_ != 0) {
9395 size += com.google.protobuf.CodedOutputStream
9396 .computeInt32Size(32, heuristicExpensiveChainLnsNumArcsToConsider_);
9398 if (continuousSchedulingSolver_ != com.google.ortools.constraintsolver.RoutingSearchParameters.SchedulingSolver.SCHEDULING_UNSET.getNumber()) {
9399 size += com.google.protobuf.CodedOutputStream
9400 .computeEnumSize(33, continuousSchedulingSolver_);
9402 if (mixedIntegerSchedulingSolver_ != com.google.ortools.constraintsolver.RoutingSearchParameters.SchedulingSolver.SCHEDULING_UNSET.getNumber()) {
9403 size += com.google.protobuf.CodedOutputStream
9404 .computeEnumSize(34, mixedIntegerSchedulingSolver_);
9406 if (heuristicCloseNodesLnsNumNodes_ != 0) {
9407 size += com.google.protobuf.CodedOutputStream
9408 .computeInt32Size(35, heuristicCloseNodesLnsNumNodes_);
9410 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logTag_)) {
9411 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, logTag_);
9413 if (((bitField0_ & 0x00000020) != 0)) {
9414 size += com.google.protobuf.CodedOutputStream
9417 if (cheapestInsertionAddUnperformedEntries_ !=
false) {
9418 size += com.google.protobuf.CodedOutputStream
9419 .computeBoolSize(40, cheapestInsertionAddUnperformedEntries_);
9421 if (useMultiArmedBanditConcatenateOperators_ !=
false) {
9422 size += com.google.protobuf.CodedOutputStream
9423 .computeBoolSize(41, useMultiArmedBanditConcatenateOperators_);
9425 if (java.lang.Double.doubleToRawLongBits(multiArmedBanditCompoundOperatorMemoryCoefficient_) != 0) {
9426 size += com.google.protobuf.CodedOutputStream
9427 .computeDoubleSize(42, multiArmedBanditCompoundOperatorMemoryCoefficient_);
9429 if (java.lang.Double.doubleToRawLongBits(multiArmedBanditCompoundOperatorExplorationCoefficient_) != 0) {
9430 size += com.google.protobuf.CodedOutputStream
9431 .computeDoubleSize(43, multiArmedBanditCompoundOperatorExplorationCoefficient_);
9433 if (cheapestInsertionFirstSolutionMinNeighbors_ != 0) {
9434 size += com.google.protobuf.CodedOutputStream
9435 .computeInt32Size(44, cheapestInsertionFirstSolutionMinNeighbors_);
9437 if (cheapestInsertionLsOperatorMinNeighbors_ != 0) {
9438 size += com.google.protobuf.CodedOutputStream
9439 .computeInt32Size(45, cheapestInsertionLsOperatorMinNeighbors_);
9441 if (cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_ !=
false) {
9442 size += com.google.protobuf.CodedOutputStream
9443 .computeBoolSize(46, cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_);
9445 if (useGeneralizedCpSat_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
9446 size += com.google.protobuf.CodedOutputStream
9447 .computeEnumSize(47, useGeneralizedCpSat_);
9449 if (((bitField0_ & 0x00000002) != 0)) {
9450 size += com.google.protobuf.CodedOutputStream
9453 if (localCheapestInsertionPickupDeliveryStrategy_ != com.google.ortools.constraintsolver.RoutingSearchParameters.PairInsertionStrategy.AUTOMATIC.getNumber()) {
9454 size += com.google.protobuf.CodedOutputStream
9455 .computeEnumSize(49, localCheapestInsertionPickupDeliveryStrategy_);
9457 if (((bitField0_ & 0x00000004) != 0)) {
9458 size += com.google.protobuf.CodedOutputStream
9459 .computeBoolSize(50, disableSchedulingBewareThisMayDegradePerformance_);
9461 if (guidedLocalSearchResetPenaltiesOnNewBestSolution_ !=
false) {
9462 size += com.google.protobuf.CodedOutputStream
9463 .computeBoolSize(51, guidedLocalSearchResetPenaltiesOnNewBestSolution_);
9465 if (fallbackToCpSatSizeThreshold_ != 0) {
9466 size += com.google.protobuf.CodedOutputStream
9467 .computeInt32Size(52, fallbackToCpSatSizeThreshold_);
9469 if (java.lang.Double.doubleToRawLongBits(lsOperatorNeighborsRatio_) != 0) {
9470 size += com.google.protobuf.CodedOutputStream
9471 .computeDoubleSize(53, lsOperatorNeighborsRatio_);
9473 if (lsOperatorMinNeighbors_ != 0) {
9474 size += com.google.protobuf.CodedOutputStream
9475 .computeInt32Size(54, lsOperatorMinNeighbors_);
9477 if (localCheapestCostInsertionPickupDeliveryStrategy_ != com.google.ortools.constraintsolver.RoutingSearchParameters.PairInsertionStrategy.AUTOMATIC.getNumber()) {
9478 size += com.google.protobuf.CodedOutputStream
9479 .computeEnumSize(55, localCheapestCostInsertionPickupDeliveryStrategy_);
9481 if (reportIntermediateCpSatSolutions_ !=
false) {
9482 size += com.google.protobuf.CodedOutputStream
9483 .computeBoolSize(56, reportIntermediateCpSatSolutions_);
9485 if (java.lang.Double.doubleToRawLongBits(secondaryLsTimeLimitRatio_) != 0) {
9486 size += com.google.protobuf.CodedOutputStream
9487 .computeDoubleSize(57, secondaryLsTimeLimitRatio_);
9489 if (useIteratedLocalSearch_ !=
false) {
9490 size += com.google.protobuf.CodedOutputStream
9491 .computeBoolSize(58, useIteratedLocalSearch_);
9493 if (firstSolutionOptimizationPeriod_ != 0) {
9494 size += com.google.protobuf.CodedOutputStream
9495 .computeInt32Size(59, firstSolutionOptimizationPeriod_);
9497 if (((bitField0_ & 0x00000040) != 0)) {
9498 size += com.google.protobuf.CodedOutputStream
9501 size += getUnknownFields().getSerializedSize();
9502 memoizedSize = size;
9507 public boolean equals(
final java.lang.Object obj) {
9511 if (!(obj instanceof com.google.ortools.constraintsolver.RoutingSearchParameters)) {
9512 return super.equals(obj);
9516 if (firstSolutionStrategy_ != other.firstSolutionStrategy_)
return false;
9520 != java.lang.Double.doubleToLongBits(
9523 != java.lang.Double.doubleToLongBits(
9528 != java.lang.Double.doubleToLongBits(
9533 != java.lang.Double.doubleToLongBits(
9536 != java.lang.Double.doubleToLongBits(
9541 != java.lang.Double.doubleToLongBits(
9549 if (localCheapestInsertionPickupDeliveryStrategy_ != other.localCheapestInsertionPickupDeliveryStrategy_)
return false;
9550 if (localCheapestCostInsertionPickupDeliveryStrategy_ != other.localCheapestCostInsertionPickupDeliveryStrategy_)
return false;
9561 != java.lang.Double.doubleToLongBits(
9568 != java.lang.Double.doubleToLongBits(
9571 != java.lang.Double.doubleToLongBits(
9579 if (localSearchMetaheuristic_ != other.localSearchMetaheuristic_)
return false;
9581 != java.lang.Double.doubleToLongBits(
9587 if (useCp_ != other.useCp_)
return false;
9588 if (useCpSat_ != other.useCpSat_)
return false;
9589 if (useGeneralizedCpSat_ != other.useGeneralizedCpSat_)
return false;
9599 if (continuousSchedulingSolver_ != other.continuousSchedulingSolver_)
return false;
9600 if (mixedIntegerSchedulingSolver_ != other.mixedIntegerSchedulingSolver_)
return false;
9607 != java.lang.Double.doubleToLongBits(
9624 != java.lang.Double.doubleToLongBits(
9636 != java.lang.Double.doubleToLongBits(
9639 != java.lang.Double.doubleToLongBits(
9642 .equals(other.
getLogTag()))
return false;
9650 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
9656 if (memoizedHashCode != 0) {
9657 return memoizedHashCode;
9662 hash = (53 * hash) + firstSolutionStrategy_;
9664 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9667 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9670 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9673 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9676 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9679 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9682 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9685 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9690 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9695 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9698 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9701 hash = (53 * hash) + localCheapestInsertionPickupDeliveryStrategy_;
9703 hash = (53 * hash) + localCheapestCostInsertionPickupDeliveryStrategy_;
9705 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9714 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9719 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9722 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9725 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9734 hash = (53 * hash) + localSearchMetaheuristic_;
9736 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9739 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9742 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9745 hash = (53 * hash) + useCp_;
9747 hash = (53 * hash) + useCpSat_;
9749 hash = (53 * hash) + useGeneralizedCpSat_;
9755 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9760 hash = (53 * hash) + continuousSchedulingSolver_;
9762 hash = (53 * hash) + mixedIntegerSchedulingSolver_;
9765 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9769 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9774 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9785 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9792 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9795 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9798 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9801 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9804 hash = (53 * hash) +
getLogTag().hashCode();
9806 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9812 hash = (29 * hash) + getUnknownFields().hashCode();
9813 memoizedHashCode = hash;
9818 java.nio.ByteBuffer data)
9819 throws com.google.protobuf.InvalidProtocolBufferException {
9823 java.nio.ByteBuffer data,
9824 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9825 throws com.google.protobuf.InvalidProtocolBufferException {
9826 return PARSER.
parseFrom(data, extensionRegistry);
9829 com.google.protobuf.ByteString data)
9830 throws com.google.protobuf.InvalidProtocolBufferException {
9834 com.google.protobuf.ByteString data,
9835 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9836 throws com.google.protobuf.InvalidProtocolBufferException {
9837 return PARSER.
parseFrom(data, extensionRegistry);
9840 throws com.google.protobuf.InvalidProtocolBufferException {
9845 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9846 throws com.google.protobuf.InvalidProtocolBufferException {
9847 return PARSER.
parseFrom(data, extensionRegistry);
9850 throws java.io.IOException {
9851 return com.google.protobuf.GeneratedMessageV3
9852 .parseWithIOException(PARSER, input);
9855 java.io.InputStream input,
9856 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9857 throws java.io.IOException {
9858 return com.google.protobuf.GeneratedMessageV3
9859 .parseWithIOException(PARSER, input, extensionRegistry);
9863 throws java.io.IOException {
9864 return com.google.protobuf.GeneratedMessageV3
9865 .parseDelimitedWithIOException(PARSER, input);
9869 java.io.InputStream input,
9870 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9871 throws java.io.IOException {
9872 return com.google.protobuf.GeneratedMessageV3
9873 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
9876 com.google.protobuf.CodedInputStream input)
9877 throws java.io.IOException {
9878 return com.google.protobuf.GeneratedMessageV3
9879 .parseWithIOException(PARSER, input);
9882 com.google.protobuf.CodedInputStream input,
9883 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9884 throws java.io.IOException {
9885 return com.google.protobuf.GeneratedMessageV3
9886 .parseWithIOException(PARSER, input, extensionRegistry);
9894 public static Builder newBuilder(com.google.ortools.constraintsolver.RoutingSearchParameters prototype) {
9899 return this == DEFAULT_INSTANCE
9905 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
9923 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
9926 public static final com.google.protobuf.Descriptors.Descriptor
9928 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_descriptor;
9932 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
9934 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_fieldAccessorTable
9935 .ensureFieldAccessorsInitialized(
9936 com.google.ortools.constraintsolver.RoutingSearchParameters.class, com.google.ortools.constraintsolver.RoutingSearchParameters.Builder.class);
9941 maybeForceBuilderInitialization();
9945 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
9947 maybeForceBuilderInitialization();
9949 private void maybeForceBuilderInitialization() {
9950 if (com.google.protobuf.GeneratedMessageV3
9951 .alwaysUseFieldBuilders) {
9952 getLocalSearchOperatorsFieldBuilder();
9953 getSatParametersFieldBuilder();
9954 getTimeLimitFieldBuilder();
9955 getLnsTimeLimitFieldBuilder();
9956 getImprovementLimitParametersFieldBuilder();
9957 getIteratedLocalSearchParametersFieldBuilder();
9965 firstSolutionStrategy_ = 0;
9966 useUnfilteredFirstSolutionStrategy_ =
false;
9967 savingsNeighborsRatio_ = 0D;
9968 savingsMaxMemoryUsageBytes_ = 0D;
9969 savingsAddReverseArcs_ =
false;
9970 savingsArcCoefficient_ = 0D;
9971 savingsParallelRoutes_ =
false;
9972 cheapestInsertionFarthestSeedsRatio_ = 0D;
9973 cheapestInsertionFirstSolutionNeighborsRatio_ = 0D;
9974 cheapestInsertionFirstSolutionMinNeighbors_ = 0;
9975 cheapestInsertionLsOperatorNeighborsRatio_ = 0D;
9976 cheapestInsertionLsOperatorMinNeighbors_ = 0;
9977 cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_ =
false;
9978 cheapestInsertionAddUnperformedEntries_ =
false;
9979 localCheapestInsertionPickupDeliveryStrategy_ = 0;
9980 localCheapestCostInsertionPickupDeliveryStrategy_ = 0;
9981 christofidesUseMinimumMatching_ =
false;
9982 firstSolutionOptimizationPeriod_ = 0;
9983 localSearchOperators_ =
null;
9984 if (localSearchOperatorsBuilder_ !=
null) {
9985 localSearchOperatorsBuilder_.dispose();
9986 localSearchOperatorsBuilder_ =
null;
9988 lsOperatorNeighborsRatio_ = 0D;
9989 lsOperatorMinNeighbors_ = 0;
9990 useMultiArmedBanditConcatenateOperators_ =
false;
9991 multiArmedBanditCompoundOperatorMemoryCoefficient_ = 0D;
9992 multiArmedBanditCompoundOperatorExplorationCoefficient_ = 0D;
9993 relocateExpensiveChainNumArcsToConsider_ = 0;
9994 heuristicExpensiveChainLnsNumArcsToConsider_ = 0;
9995 heuristicCloseNodesLnsNumNodes_ = 0;
9996 localSearchMetaheuristic_ = 0;
9997 guidedLocalSearchLambdaCoefficient_ = 0D;
9998 guidedLocalSearchResetPenaltiesOnNewBestSolution_ =
false;
9999 useDepthFirstSearch_ =
false;
10002 useGeneralizedCpSat_ = 0;
10003 satParameters_ =
null;
10004 if (satParametersBuilder_ !=
null) {
10005 satParametersBuilder_.dispose();
10006 satParametersBuilder_ =
null;
10008 reportIntermediateCpSatSolutions_ =
false;
10009 fallbackToCpSatSizeThreshold_ = 0;
10010 continuousSchedulingSolver_ = 0;
10011 mixedIntegerSchedulingSolver_ = 0;
10012 disableSchedulingBewareThisMayDegradePerformance_ =
false;
10013 optimizationStep_ = 0D;
10014 numberOfSolutionsToCollect_ = 0;
10015 solutionLimit_ = 0L;
10017 if (timeLimitBuilder_ !=
null) {
10018 timeLimitBuilder_.dispose();
10019 timeLimitBuilder_ =
null;
10021 lnsTimeLimit_ =
null;
10022 if (lnsTimeLimitBuilder_ !=
null) {
10023 lnsTimeLimitBuilder_.dispose();
10024 lnsTimeLimitBuilder_ =
null;
10026 secondaryLsTimeLimitRatio_ = 0D;
10027 improvementLimitParameters_ =
null;
10028 if (improvementLimitParametersBuilder_ !=
null) {
10029 improvementLimitParametersBuilder_.dispose();
10030 improvementLimitParametersBuilder_ =
null;
10032 useFullPropagation_ =
false;
10033 logSearch_ =
false;
10034 logCostScalingFactor_ = 0D;
10035 logCostOffset_ = 0D;
10037 useIteratedLocalSearch_ =
false;
10038 iteratedLocalSearchParameters_ =
null;
10039 if (iteratedLocalSearchParametersBuilder_ !=
null) {
10040 iteratedLocalSearchParametersBuilder_.dispose();
10041 iteratedLocalSearchParametersBuilder_ =
null;
10046 @java.lang.Override
10047 public com.google.protobuf.Descriptors.Descriptor
10049 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_descriptor;
10052 @java.lang.Override
10054 return com.google.ortools.constraintsolver.RoutingSearchParameters.getDefaultInstance();
10057 @java.lang.Override
10061 throw newUninitializedMessageException(result);
10066 @java.lang.Override
10069 if (bitField0_ != 0) { buildPartial0(result); }
10070 if (bitField1_ != 0) { buildPartial1(result); }
10075 private void buildPartial0(com.google.ortools.constraintsolver.RoutingSearchParameters result) {
10076 int from_bitField0_ = bitField0_;
10077 if (((from_bitField0_ & 0x00000001) != 0)) {
10078 result.firstSolutionStrategy_ = firstSolutionStrategy_;
10080 if (((from_bitField0_ & 0x00000002) != 0)) {
10081 result.useUnfilteredFirstSolutionStrategy_ = useUnfilteredFirstSolutionStrategy_;
10083 if (((from_bitField0_ & 0x00000004) != 0)) {
10084 result.savingsNeighborsRatio_ = savingsNeighborsRatio_;
10086 if (((from_bitField0_ & 0x00000008) != 0)) {
10087 result.savingsMaxMemoryUsageBytes_ = savingsMaxMemoryUsageBytes_;
10089 if (((from_bitField0_ & 0x00000010) != 0)) {
10090 result.savingsAddReverseArcs_ = savingsAddReverseArcs_;
10092 if (((from_bitField0_ & 0x00000020) != 0)) {
10093 result.savingsArcCoefficient_ = savingsArcCoefficient_;
10095 if (((from_bitField0_ & 0x00000040) != 0)) {
10096 result.savingsParallelRoutes_ = savingsParallelRoutes_;
10098 if (((from_bitField0_ & 0x00000080) != 0)) {
10099 result.cheapestInsertionFarthestSeedsRatio_ = cheapestInsertionFarthestSeedsRatio_;
10101 if (((from_bitField0_ & 0x00000100) != 0)) {
10102 result.cheapestInsertionFirstSolutionNeighborsRatio_ = cheapestInsertionFirstSolutionNeighborsRatio_;
10104 if (((from_bitField0_ & 0x00000200) != 0)) {
10105 result.cheapestInsertionFirstSolutionMinNeighbors_ = cheapestInsertionFirstSolutionMinNeighbors_;
10107 if (((from_bitField0_ & 0x00000400) != 0)) {
10108 result.cheapestInsertionLsOperatorNeighborsRatio_ = cheapestInsertionLsOperatorNeighborsRatio_;
10110 if (((from_bitField0_ & 0x00000800) != 0)) {
10111 result.cheapestInsertionLsOperatorMinNeighbors_ = cheapestInsertionLsOperatorMinNeighbors_;
10113 if (((from_bitField0_ & 0x00001000) != 0)) {
10114 result.cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_ = cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_;
10116 if (((from_bitField0_ & 0x00002000) != 0)) {
10117 result.cheapestInsertionAddUnperformedEntries_ = cheapestInsertionAddUnperformedEntries_;
10119 if (((from_bitField0_ & 0x00004000) != 0)) {
10120 result.localCheapestInsertionPickupDeliveryStrategy_ = localCheapestInsertionPickupDeliveryStrategy_;
10122 if (((from_bitField0_ & 0x00008000) != 0)) {
10123 result.localCheapestCostInsertionPickupDeliveryStrategy_ = localCheapestCostInsertionPickupDeliveryStrategy_;
10125 if (((from_bitField0_ & 0x00010000) != 0)) {
10126 result.christofidesUseMinimumMatching_ = christofidesUseMinimumMatching_;
10128 if (((from_bitField0_ & 0x00020000) != 0)) {
10129 result.firstSolutionOptimizationPeriod_ = firstSolutionOptimizationPeriod_;
10131 int to_bitField0_ = 0;
10132 if (((from_bitField0_ & 0x00040000) != 0)) {
10133 result.localSearchOperators_ = localSearchOperatorsBuilder_ ==
null
10134 ? localSearchOperators_
10135 : localSearchOperatorsBuilder_.build();
10136 to_bitField0_ |= 0x00000001;
10138 if (((from_bitField0_ & 0x00080000) != 0)) {
10139 result.lsOperatorNeighborsRatio_ = lsOperatorNeighborsRatio_;
10141 if (((from_bitField0_ & 0x00100000) != 0)) {
10142 result.lsOperatorMinNeighbors_ = lsOperatorMinNeighbors_;
10144 if (((from_bitField0_ & 0x00200000) != 0)) {
10145 result.useMultiArmedBanditConcatenateOperators_ = useMultiArmedBanditConcatenateOperators_;
10147 if (((from_bitField0_ & 0x00400000) != 0)) {
10148 result.multiArmedBanditCompoundOperatorMemoryCoefficient_ = multiArmedBanditCompoundOperatorMemoryCoefficient_;
10150 if (((from_bitField0_ & 0x00800000) != 0)) {
10151 result.multiArmedBanditCompoundOperatorExplorationCoefficient_ = multiArmedBanditCompoundOperatorExplorationCoefficient_;
10153 if (((from_bitField0_ & 0x01000000) != 0)) {
10154 result.relocateExpensiveChainNumArcsToConsider_ = relocateExpensiveChainNumArcsToConsider_;
10156 if (((from_bitField0_ & 0x02000000) != 0)) {
10157 result.heuristicExpensiveChainLnsNumArcsToConsider_ = heuristicExpensiveChainLnsNumArcsToConsider_;
10159 if (((from_bitField0_ & 0x04000000) != 0)) {
10160 result.heuristicCloseNodesLnsNumNodes_ = heuristicCloseNodesLnsNumNodes_;
10162 if (((from_bitField0_ & 0x08000000) != 0)) {
10163 result.localSearchMetaheuristic_ = localSearchMetaheuristic_;
10165 if (((from_bitField0_ & 0x10000000) != 0)) {
10166 result.guidedLocalSearchLambdaCoefficient_ = guidedLocalSearchLambdaCoefficient_;
10168 if (((from_bitField0_ & 0x20000000) != 0)) {
10169 result.guidedLocalSearchResetPenaltiesOnNewBestSolution_ = guidedLocalSearchResetPenaltiesOnNewBestSolution_;
10171 if (((from_bitField0_ & 0x40000000) != 0)) {
10172 result.useDepthFirstSearch_ = useDepthFirstSearch_;
10174 if (((from_bitField0_ & 0x80000000) != 0)) {
10175 result.useCp_ = useCp_;
10177 result.bitField0_ |= to_bitField0_;
10180 private void buildPartial1(com.google.ortools.constraintsolver.RoutingSearchParameters result) {
10181 int from_bitField1_ = bitField1_;
10182 if (((from_bitField1_ & 0x00000001) != 0)) {
10183 result.useCpSat_ = useCpSat_;
10185 if (((from_bitField1_ & 0x00000002) != 0)) {
10186 result.useGeneralizedCpSat_ = useGeneralizedCpSat_;
10188 int to_bitField0_ = 0;
10189 if (((from_bitField1_ & 0x00000004) != 0)) {
10190 result.satParameters_ = satParametersBuilder_ ==
null
10192 : satParametersBuilder_.build();
10193 to_bitField0_ |= 0x00000002;
10195 if (((from_bitField1_ & 0x00000008) != 0)) {
10196 result.reportIntermediateCpSatSolutions_ = reportIntermediateCpSatSolutions_;
10198 if (((from_bitField1_ & 0x00000010) != 0)) {
10199 result.fallbackToCpSatSizeThreshold_ = fallbackToCpSatSizeThreshold_;
10201 if (((from_bitField1_ & 0x00000020) != 0)) {
10202 result.continuousSchedulingSolver_ = continuousSchedulingSolver_;
10204 if (((from_bitField1_ & 0x00000040) != 0)) {
10205 result.mixedIntegerSchedulingSolver_ = mixedIntegerSchedulingSolver_;
10207 if (((from_bitField1_ & 0x00000080) != 0)) {
10208 result.disableSchedulingBewareThisMayDegradePerformance_ = disableSchedulingBewareThisMayDegradePerformance_;
10209 to_bitField0_ |= 0x00000004;
10211 if (((from_bitField1_ & 0x00000100) != 0)) {
10212 result.optimizationStep_ = optimizationStep_;
10214 if (((from_bitField1_ & 0x00000200) != 0)) {
10215 result.numberOfSolutionsToCollect_ = numberOfSolutionsToCollect_;
10217 if (((from_bitField1_ & 0x00000400) != 0)) {
10218 result.solutionLimit_ = solutionLimit_;
10220 if (((from_bitField1_ & 0x00000800) != 0)) {
10221 result.timeLimit_ = timeLimitBuilder_ ==
null
10223 : timeLimitBuilder_.build();
10224 to_bitField0_ |= 0x00000008;
10226 if (((from_bitField1_ & 0x00001000) != 0)) {
10227 result.lnsTimeLimit_ = lnsTimeLimitBuilder_ ==
null
10229 : lnsTimeLimitBuilder_.build();
10230 to_bitField0_ |= 0x00000010;
10232 if (((from_bitField1_ & 0x00002000) != 0)) {
10233 result.secondaryLsTimeLimitRatio_ = secondaryLsTimeLimitRatio_;
10235 if (((from_bitField1_ & 0x00004000) != 0)) {
10236 result.improvementLimitParameters_ = improvementLimitParametersBuilder_ ==
null
10237 ? improvementLimitParameters_
10238 : improvementLimitParametersBuilder_.build();
10239 to_bitField0_ |= 0x00000020;
10241 if (((from_bitField1_ & 0x00008000) != 0)) {
10242 result.useFullPropagation_ = useFullPropagation_;
10244 if (((from_bitField1_ & 0x00010000) != 0)) {
10245 result.logSearch_ = logSearch_;
10247 if (((from_bitField1_ & 0x00020000) != 0)) {
10248 result.logCostScalingFactor_ = logCostScalingFactor_;
10250 if (((from_bitField1_ & 0x00040000) != 0)) {
10251 result.logCostOffset_ = logCostOffset_;
10253 if (((from_bitField1_ & 0x00080000) != 0)) {
10254 result.logTag_ = logTag_;
10256 if (((from_bitField1_ & 0x00100000) != 0)) {
10257 result.useIteratedLocalSearch_ = useIteratedLocalSearch_;
10259 if (((from_bitField1_ & 0x00200000) != 0)) {
10260 result.iteratedLocalSearchParameters_ = iteratedLocalSearchParametersBuilder_ ==
null
10261 ? iteratedLocalSearchParameters_
10262 : iteratedLocalSearchParametersBuilder_.build();
10263 to_bitField0_ |= 0x00000040;
10265 result.bitField0_ |= to_bitField0_;
10268 @java.lang.Override
10270 return super.
clone();
10272 @java.lang.Override
10274 com.google.protobuf.Descriptors.FieldDescriptor field,
10275 java.lang.Object value) {
10276 return super.
setField(field, value);
10278 @java.lang.Override
10280 com.google.protobuf.Descriptors.FieldDescriptor field) {
10283 @java.lang.Override
10285 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
10288 @java.lang.Override
10290 com.google.protobuf.Descriptors.FieldDescriptor field,
10291 int index, java.lang.Object value) {
10294 @java.lang.Override
10296 com.google.protobuf.Descriptors.FieldDescriptor field,
10297 java.lang.Object value) {
10300 @java.lang.Override
10302 if (other instanceof com.google.ortools.constraintsolver.RoutingSearchParameters) {
10303 return mergeFrom((com.google.ortools.constraintsolver.RoutingSearchParameters)other);
10305 super.mergeFrom(other);
10311 if (other == com.google.ortools.constraintsolver.RoutingSearchParameters.getDefaultInstance())
return this;
10312 if (other.firstSolutionStrategy_ != 0) {
10315 if (other.getUseUnfilteredFirstSolutionStrategy() !=
false) {
10318 if (other.getSavingsNeighborsRatio() != 0D) {
10321 if (other.getSavingsMaxMemoryUsageBytes() != 0D) {
10324 if (other.getSavingsAddReverseArcs() !=
false) {
10327 if (other.getSavingsArcCoefficient() != 0D) {
10330 if (other.getSavingsParallelRoutes() !=
false) {
10333 if (other.getCheapestInsertionFarthestSeedsRatio() != 0D) {
10336 if (other.getCheapestInsertionFirstSolutionNeighborsRatio() != 0D) {
10339 if (other.getCheapestInsertionFirstSolutionMinNeighbors() != 0) {
10342 if (other.getCheapestInsertionLsOperatorNeighborsRatio() != 0D) {
10345 if (other.getCheapestInsertionLsOperatorMinNeighbors() != 0) {
10348 if (other.getCheapestInsertionFirstSolutionUseNeighborsRatioForInitialization() !=
false) {
10351 if (other.getCheapestInsertionAddUnperformedEntries() !=
false) {
10354 if (other.localCheapestInsertionPickupDeliveryStrategy_ != 0) {
10357 if (other.localCheapestCostInsertionPickupDeliveryStrategy_ != 0) {
10360 if (other.getChristofidesUseMinimumMatching() !=
false) {
10363 if (other.getFirstSolutionOptimizationPeriod() != 0) {
10366 if (other.hasLocalSearchOperators()) {
10369 if (other.getLsOperatorNeighborsRatio() != 0D) {
10372 if (other.getLsOperatorMinNeighbors() != 0) {
10375 if (other.getUseMultiArmedBanditConcatenateOperators() !=
false) {
10378 if (other.getMultiArmedBanditCompoundOperatorMemoryCoefficient() != 0D) {
10381 if (other.getMultiArmedBanditCompoundOperatorExplorationCoefficient() != 0D) {
10384 if (other.getRelocateExpensiveChainNumArcsToConsider() != 0) {
10387 if (other.getHeuristicExpensiveChainLnsNumArcsToConsider() != 0) {
10390 if (other.getHeuristicCloseNodesLnsNumNodes() != 0) {
10393 if (other.localSearchMetaheuristic_ != 0) {
10396 if (other.getGuidedLocalSearchLambdaCoefficient() != 0D) {
10399 if (other.getGuidedLocalSearchResetPenaltiesOnNewBestSolution() !=
false) {
10402 if (other.getUseDepthFirstSearch() !=
false) {
10405 if (other.useCp_ != 0) {
10408 if (other.useCpSat_ != 0) {
10411 if (other.useGeneralizedCpSat_ != 0) {
10414 if (other.hasSatParameters()) {
10417 if (other.getReportIntermediateCpSatSolutions() !=
false) {
10420 if (other.getFallbackToCpSatSizeThreshold() != 0) {
10423 if (other.continuousSchedulingSolver_ != 0) {
10426 if (other.mixedIntegerSchedulingSolver_ != 0) {
10429 if (other.hasDisableSchedulingBewareThisMayDegradePerformance()) {
10432 if (other.getOptimizationStep() != 0D) {
10435 if (other.getNumberOfSolutionsToCollect() != 0) {
10438 if (other.getSolutionLimit() != 0L) {
10441 if (other.hasTimeLimit()) {
10444 if (other.hasLnsTimeLimit()) {
10447 if (other.getSecondaryLsTimeLimitRatio() != 0D) {
10450 if (other.hasImprovementLimitParameters()) {
10453 if (other.getUseFullPropagation() !=
false) {
10456 if (other.getLogSearch() !=
false) {
10459 if (other.getLogCostScalingFactor() != 0D) {
10462 if (other.getLogCostOffset() != 0D) {
10465 if (!other.getLogTag().isEmpty()) {
10466 logTag_ = other.logTag_;
10467 bitField1_ |= 0x00080000;
10470 if (other.getUseIteratedLocalSearch() !=
false) {
10473 if (other.hasIteratedLocalSearchParameters()) {
10481 @java.lang.Override
10486 @java.lang.Override
10488 com.google.protobuf.CodedInputStream input,
10489 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10490 throws java.io.IOException {
10491 if (extensionRegistry ==
null) {
10492 throw new java.lang.NullPointerException();
10495 boolean done =
false;
10497 int tag = input.readTag();
10503 firstSolutionStrategy_ = input.readEnum();
10504 bitField0_ |= 0x00000001;
10508 useUnfilteredFirstSolutionStrategy_ = input.readBool();
10509 bitField0_ |= 0x00000002;
10514 getLocalSearchOperatorsFieldBuilder().getBuilder(),
10515 extensionRegistry);
10516 bitField0_ |= 0x00040000;
10520 localSearchMetaheuristic_ = input.readEnum();
10521 bitField0_ |= 0x08000000;
10525 guidedLocalSearchLambdaCoefficient_ = input.readDouble();
10526 bitField0_ |= 0x10000000;
10530 useDepthFirstSearch_ = input.readBool();
10531 bitField0_ |= 0x40000000;
10535 optimizationStep_ = input.readDouble();
10536 bitField1_ |= 0x00000100;
10540 solutionLimit_ = input.readInt64();
10541 bitField1_ |= 0x00000400;
10546 getTimeLimitFieldBuilder().getBuilder(),
10547 extensionRegistry);
10548 bitField1_ |= 0x00000800;
10553 getLnsTimeLimitFieldBuilder().getBuilder(),
10554 extensionRegistry);
10555 bitField1_ |= 0x00001000;
10559 useFullPropagation_ = input.readBool();
10560 bitField1_ |= 0x00008000;
10564 logSearch_ = input.readBool();
10565 bitField1_ |= 0x00010000;
10569 savingsNeighborsRatio_ = input.readDouble();
10570 bitField0_ |= 0x00000004;
10574 savingsAddReverseArcs_ = input.readBool();
10575 bitField0_ |= 0x00000010;
10579 cheapestInsertionFarthestSeedsRatio_ = input.readDouble();
10580 bitField0_ |= 0x00000080;
10584 numberOfSolutionsToCollect_ = input.readInt32();
10585 bitField1_ |= 0x00000200;
10589 savingsArcCoefficient_ = input.readDouble();
10590 bitField0_ |= 0x00000020;
10594 savingsParallelRoutes_ = input.readBool();
10595 bitField0_ |= 0x00000040;
10599 relocateExpensiveChainNumArcsToConsider_ = input.readInt32();
10600 bitField0_ |= 0x01000000;
10604 cheapestInsertionFirstSolutionNeighborsRatio_ = input.readDouble();
10605 bitField0_ |= 0x00000100;
10609 logCostScalingFactor_ = input.readDouble();
10610 bitField1_ |= 0x00020000;
10614 savingsMaxMemoryUsageBytes_ = input.readDouble();
10615 bitField0_ |= 0x00000008;
10619 useCpSat_ = input.readEnum();
10620 bitField1_ |= 0x00000001;
10624 useCp_ = input.readEnum();
10625 bitField0_ |= 0x80000000;
10629 logCostOffset_ = input.readDouble();
10630 bitField1_ |= 0x00040000;
10634 christofidesUseMinimumMatching_ = input.readBool();
10635 bitField0_ |= 0x00010000;
10639 cheapestInsertionLsOperatorNeighborsRatio_ = input.readDouble();
10640 bitField0_ |= 0x00000400;
10644 heuristicExpensiveChainLnsNumArcsToConsider_ = input.readInt32();
10645 bitField0_ |= 0x02000000;
10649 continuousSchedulingSolver_ = input.readEnum();
10650 bitField1_ |= 0x00000020;
10654 mixedIntegerSchedulingSolver_ = input.readEnum();
10655 bitField1_ |= 0x00000040;
10659 heuristicCloseNodesLnsNumNodes_ = input.readInt32();
10660 bitField0_ |= 0x04000000;
10664 logTag_ = input.readStringRequireUtf8();
10665 bitField1_ |= 0x00080000;
10670 getImprovementLimitParametersFieldBuilder().getBuilder(),
10671 extensionRegistry);
10672 bitField1_ |= 0x00004000;
10676 cheapestInsertionAddUnperformedEntries_ = input.readBool();
10677 bitField0_ |= 0x00002000;
10681 useMultiArmedBanditConcatenateOperators_ = input.readBool();
10682 bitField0_ |= 0x00200000;
10686 multiArmedBanditCompoundOperatorMemoryCoefficient_ = input.readDouble();
10687 bitField0_ |= 0x00400000;
10691 multiArmedBanditCompoundOperatorExplorationCoefficient_ = input.readDouble();
10692 bitField0_ |= 0x00800000;
10696 cheapestInsertionFirstSolutionMinNeighbors_ = input.readInt32();
10697 bitField0_ |= 0x00000200;
10701 cheapestInsertionLsOperatorMinNeighbors_ = input.readInt32();
10702 bitField0_ |= 0x00000800;
10706 cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_ = input.readBool();
10707 bitField0_ |= 0x00001000;
10711 useGeneralizedCpSat_ = input.readEnum();
10712 bitField1_ |= 0x00000002;
10717 getSatParametersFieldBuilder().getBuilder(),
10718 extensionRegistry);
10719 bitField1_ |= 0x00000004;
10723 localCheapestInsertionPickupDeliveryStrategy_ = input.readEnum();
10724 bitField0_ |= 0x00004000;
10728 disableSchedulingBewareThisMayDegradePerformance_ = input.readBool();
10729 bitField1_ |= 0x00000080;
10733 guidedLocalSearchResetPenaltiesOnNewBestSolution_ = input.readBool();
10734 bitField0_ |= 0x20000000;
10738 fallbackToCpSatSizeThreshold_ = input.readInt32();
10739 bitField1_ |= 0x00000010;
10743 lsOperatorNeighborsRatio_ = input.readDouble();
10744 bitField0_ |= 0x00080000;
10748 lsOperatorMinNeighbors_ = input.readInt32();
10749 bitField0_ |= 0x00100000;
10753 localCheapestCostInsertionPickupDeliveryStrategy_ = input.readEnum();
10754 bitField0_ |= 0x00008000;
10758 reportIntermediateCpSatSolutions_ = input.readBool();
10759 bitField1_ |= 0x00000008;
10763 secondaryLsTimeLimitRatio_ = input.readDouble();
10764 bitField1_ |= 0x00002000;
10768 useIteratedLocalSearch_ = input.readBool();
10769 bitField1_ |= 0x00100000;
10773 firstSolutionOptimizationPeriod_ = input.readInt32();
10774 bitField0_ |= 0x00020000;
10779 getIteratedLocalSearchParametersFieldBuilder().getBuilder(),
10780 extensionRegistry);
10781 bitField1_ |= 0x00200000;
10785 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
10792 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
10793 throw e.unwrapIOException();
10799 private int bitField0_;
10800 private int bitField1_;
10802 private int firstSolutionStrategy_ = 0;
10812 return firstSolutionStrategy_;
10824 firstSolutionStrategy_ = value;
10825 bitField0_ |= 0x00000001;
10837 @java.lang.Override
10840 return result ==
null ? com.google.ortools.constraintsolver.FirstSolutionStrategy.Value.UNRECOGNIZED : result;
10852 if (value ==
null) {
10853 throw new NullPointerException();
10855 bitField0_ |= 0x00000001;
10856 firstSolutionStrategy_ = value.getNumber();
10869 bitField0_ = (bitField0_ & ~0x00000001);
10870 firstSolutionStrategy_ = 0;
10875 private boolean useUnfilteredFirstSolutionStrategy_ ;
10887 @java.lang.Override
10889 return useUnfilteredFirstSolutionStrategy_;
10905 useUnfilteredFirstSolutionStrategy_ = value;
10906 bitField0_ |= 0x00000002;
10922 bitField0_ = (bitField0_ & ~0x00000002);
10923 useUnfilteredFirstSolutionStrategy_ =
false;
10928 private double savingsNeighborsRatio_ ;
10939 @java.lang.Override
10941 return savingsNeighborsRatio_;
10956 savingsNeighborsRatio_ = value;
10957 bitField0_ |= 0x00000004;
10972 bitField0_ = (bitField0_ & ~0x00000004);
10973 savingsNeighborsRatio_ = 0D;
10978 private double savingsMaxMemoryUsageBytes_ ;
10992 @java.lang.Override
10994 return savingsMaxMemoryUsageBytes_;
11012 savingsMaxMemoryUsageBytes_ = value;
11013 bitField0_ |= 0x00000008;
11031 bitField0_ = (bitField0_ & ~0x00000008);
11032 savingsMaxMemoryUsageBytes_ = 0D;
11037 private boolean savingsAddReverseArcs_ ;
11047 @java.lang.Override
11049 return savingsAddReverseArcs_;
11063 savingsAddReverseArcs_ = value;
11064 bitField0_ |= 0x00000010;
11078 bitField0_ = (bitField0_ & ~0x00000010);
11079 savingsAddReverseArcs_ =
false;
11084 private double savingsArcCoefficient_ ;
11097 @java.lang.Override
11099 return savingsArcCoefficient_;
11116 savingsArcCoefficient_ = value;
11117 bitField0_ |= 0x00000020;
11134 bitField0_ = (bitField0_ & ~0x00000020);
11135 savingsArcCoefficient_ = 0D;
11140 private boolean savingsParallelRoutes_ ;
11149 @java.lang.Override
11151 return savingsParallelRoutes_;
11164 savingsParallelRoutes_ = value;
11165 bitField0_ |= 0x00000040;
11178 bitField0_ = (bitField0_ & ~0x00000040);
11179 savingsParallelRoutes_ =
false;
11184 private double cheapestInsertionFarthestSeedsRatio_ ;
11195 @java.lang.Override
11197 return cheapestInsertionFarthestSeedsRatio_;
11212 cheapestInsertionFarthestSeedsRatio_ = value;
11213 bitField0_ |= 0x00000080;
11228 bitField0_ = (bitField0_ & ~0x00000080);
11229 cheapestInsertionFarthestSeedsRatio_ = 0D;
11234 private double cheapestInsertionFirstSolutionNeighborsRatio_ ;
11257 @java.lang.Override
11259 return cheapestInsertionFirstSolutionNeighborsRatio_;
11286 cheapestInsertionFirstSolutionNeighborsRatio_ = value;
11287 bitField0_ |= 0x00000100;
11314 bitField0_ = (bitField0_ & ~0x00000100);
11315 cheapestInsertionFirstSolutionNeighborsRatio_ = 0D;
11320 private int cheapestInsertionFirstSolutionMinNeighbors_ ;
11325 @java.lang.Override
11327 return cheapestInsertionFirstSolutionMinNeighbors_;
11336 cheapestInsertionFirstSolutionMinNeighbors_ = value;
11337 bitField0_ |= 0x00000200;
11346 bitField0_ = (bitField0_ & ~0x00000200);
11347 cheapestInsertionFirstSolutionMinNeighbors_ = 0;
11352 private double cheapestInsertionLsOperatorNeighborsRatio_ ;
11364 @java.lang.Override
11366 return cheapestInsertionLsOperatorNeighborsRatio_;
11382 cheapestInsertionLsOperatorNeighborsRatio_ = value;
11383 bitField0_ |= 0x00000400;
11399 bitField0_ = (bitField0_ & ~0x00000400);
11400 cheapestInsertionLsOperatorNeighborsRatio_ = 0D;
11405 private int cheapestInsertionLsOperatorMinNeighbors_ ;
11410 @java.lang.Override
11412 return cheapestInsertionLsOperatorMinNeighbors_;
11421 cheapestInsertionLsOperatorMinNeighbors_ = value;
11422 bitField0_ |= 0x00000800;
11431 bitField0_ = (bitField0_ & ~0x00000800);
11432 cheapestInsertionLsOperatorMinNeighbors_ = 0;
11437 private boolean cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_ ;
11447 @java.lang.Override
11449 return cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_;
11463 cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_ = value;
11464 bitField0_ |= 0x00001000;
11478 bitField0_ = (bitField0_ & ~0x00001000);
11479 cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_ =
false;
11484 private boolean cheapestInsertionAddUnperformedEntries_ ;
11494 @java.lang.Override
11496 return cheapestInsertionAddUnperformedEntries_;
11510 cheapestInsertionAddUnperformedEntries_ = value;
11511 bitField0_ |= 0x00002000;
11525 bitField0_ = (bitField0_ & ~0x00002000);
11526 cheapestInsertionAddUnperformedEntries_ =
false;
11531 private int localCheapestInsertionPickupDeliveryStrategy_ = 0;
11542 return localCheapestInsertionPickupDeliveryStrategy_;
11555 localCheapestInsertionPickupDeliveryStrategy_ = value;
11556 bitField0_ |= 0x00004000;
11569 @java.lang.Override
11572 return result ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.PairInsertionStrategy.UNRECOGNIZED : result;
11585 if (value ==
null) {
11586 throw new NullPointerException();
11588 bitField0_ |= 0x00004000;
11589 localCheapestInsertionPickupDeliveryStrategy_ = value.getNumber();
11603 bitField0_ = (bitField0_ & ~0x00004000);
11604 localCheapestInsertionPickupDeliveryStrategy_ = 0;
11609 private int localCheapestCostInsertionPickupDeliveryStrategy_ = 0;
11620 return localCheapestCostInsertionPickupDeliveryStrategy_;
11633 localCheapestCostInsertionPickupDeliveryStrategy_ = value;
11634 bitField0_ |= 0x00008000;
11647 @java.lang.Override
11650 return result ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.PairInsertionStrategy.UNRECOGNIZED : result;
11663 if (value ==
null) {
11664 throw new NullPointerException();
11666 bitField0_ |= 0x00008000;
11667 localCheapestCostInsertionPickupDeliveryStrategy_ = value.getNumber();
11681 bitField0_ = (bitField0_ & ~0x00008000);
11682 localCheapestCostInsertionPickupDeliveryStrategy_ = 0;
11687 private boolean christofidesUseMinimumMatching_ ;
11697 @java.lang.Override
11699 return christofidesUseMinimumMatching_;
11713 christofidesUseMinimumMatching_ = value;
11714 bitField0_ |= 0x00010000;
11728 bitField0_ = (bitField0_ & ~0x00010000);
11729 christofidesUseMinimumMatching_ =
false;
11734 private int firstSolutionOptimizationPeriod_ ;
11749 @java.lang.Override
11751 return firstSolutionOptimizationPeriod_;
11770 firstSolutionOptimizationPeriod_ = value;
11771 bitField0_ |= 0x00020000;
11790 bitField0_ = (bitField0_ & ~0x00020000);
11791 firstSolutionOptimizationPeriod_ = 0;
11797 private com.google.protobuf.SingleFieldBuilderV3<
11798 com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators, com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder, com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder> localSearchOperatorsBuilder_;
11804 return ((bitField0_ & 0x00040000) != 0);
11811 if (localSearchOperatorsBuilder_ ==
null) {
11812 return localSearchOperators_ ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.getDefaultInstance() : localSearchOperators_;
11814 return localSearchOperatorsBuilder_.getMessage();
11821 if (localSearchOperatorsBuilder_ ==
null) {
11822 if (value ==
null) {
11823 throw new NullPointerException();
11825 localSearchOperators_ = value;
11827 localSearchOperatorsBuilder_.setMessage(value);
11829 bitField0_ |= 0x00040000;
11837 com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder builderForValue) {
11838 if (localSearchOperatorsBuilder_ ==
null) {
11839 localSearchOperators_ = builderForValue.build();
11841 localSearchOperatorsBuilder_.setMessage(builderForValue.build());
11843 bitField0_ |= 0x00040000;
11851 if (localSearchOperatorsBuilder_ ==
null) {
11852 if (((bitField0_ & 0x00040000) != 0) &&
11853 localSearchOperators_ !=
null &&
11854 localSearchOperators_ != com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.getDefaultInstance()) {
11857 localSearchOperators_ = value;
11860 localSearchOperatorsBuilder_.mergeFrom(value);
11862 if (localSearchOperators_ !=
null) {
11863 bitField0_ |= 0x00040000;
11872 bitField0_ = (bitField0_ & ~0x00040000);
11873 localSearchOperators_ =
null;
11874 if (localSearchOperatorsBuilder_ !=
null) {
11875 localSearchOperatorsBuilder_.dispose();
11876 localSearchOperatorsBuilder_ =
null;
11885 bitField0_ |= 0x00040000;
11887 return getLocalSearchOperatorsFieldBuilder().getBuilder();
11893 if (localSearchOperatorsBuilder_ !=
null) {
11894 return localSearchOperatorsBuilder_.getMessageOrBuilder();
11896 return localSearchOperators_ ==
null ?
11897 com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.getDefaultInstance() : localSearchOperators_;
11903 private com.google.protobuf.SingleFieldBuilderV3<
11904 com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators, com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder, com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder>
11905 getLocalSearchOperatorsFieldBuilder() {
11906 if (localSearchOperatorsBuilder_ ==
null) {
11907 localSearchOperatorsBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
11908 com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators, com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder, com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder>(
11910 getParentForChildren(),
11912 localSearchOperators_ =
null;
11914 return localSearchOperatorsBuilder_;
11917 private double lsOperatorNeighborsRatio_ ;
11928 @java.lang.Override
11930 return lsOperatorNeighborsRatio_;
11945 lsOperatorNeighborsRatio_ = value;
11946 bitField0_ |= 0x00080000;
11961 bitField0_ = (bitField0_ & ~0x00080000);
11962 lsOperatorNeighborsRatio_ = 0D;
11967 private int lsOperatorMinNeighbors_ ;
11972 @java.lang.Override
11974 return lsOperatorMinNeighbors_;
11983 lsOperatorMinNeighbors_ = value;
11984 bitField0_ |= 0x00100000;
11993 bitField0_ = (bitField0_ & ~0x00100000);
11994 lsOperatorMinNeighbors_ = 0;
11999 private boolean useMultiArmedBanditConcatenateOperators_ ;
12010 @java.lang.Override
12012 return useMultiArmedBanditConcatenateOperators_;
12027 useMultiArmedBanditConcatenateOperators_ = value;
12028 bitField0_ |= 0x00200000;
12043 bitField0_ = (bitField0_ & ~0x00200000);
12044 useMultiArmedBanditConcatenateOperators_ =
false;
12049 private double multiArmedBanditCompoundOperatorMemoryCoefficient_ ;
12061 @java.lang.Override
12063 return multiArmedBanditCompoundOperatorMemoryCoefficient_;
12079 multiArmedBanditCompoundOperatorMemoryCoefficient_ = value;
12080 bitField0_ |= 0x00400000;
12096 bitField0_ = (bitField0_ & ~0x00400000);
12097 multiArmedBanditCompoundOperatorMemoryCoefficient_ = 0D;
12102 private double multiArmedBanditCompoundOperatorExplorationCoefficient_ ;
12113 @java.lang.Override
12115 return multiArmedBanditCompoundOperatorExplorationCoefficient_;
12130 multiArmedBanditCompoundOperatorExplorationCoefficient_ = value;
12131 bitField0_ |= 0x00800000;
12146 bitField0_ = (bitField0_ & ~0x00800000);
12147 multiArmedBanditCompoundOperatorExplorationCoefficient_ = 0D;
12152 private int relocateExpensiveChainNumArcsToConsider_ ;
12167 @java.lang.Override
12169 return relocateExpensiveChainNumArcsToConsider_;
12188 relocateExpensiveChainNumArcsToConsider_ = value;
12189 bitField0_ |= 0x01000000;
12208 bitField0_ = (bitField0_ & ~0x01000000);
12209 relocateExpensiveChainNumArcsToConsider_ = 0;
12214 private int heuristicExpensiveChainLnsNumArcsToConsider_ ;
12224 @java.lang.Override
12226 return heuristicExpensiveChainLnsNumArcsToConsider_;
12240 heuristicExpensiveChainLnsNumArcsToConsider_ = value;
12241 bitField0_ |= 0x02000000;
12255 bitField0_ = (bitField0_ & ~0x02000000);
12256 heuristicExpensiveChainLnsNumArcsToConsider_ = 0;
12261 private int heuristicCloseNodesLnsNumNodes_ ;
12271 @java.lang.Override
12273 return heuristicCloseNodesLnsNumNodes_;
12287 heuristicCloseNodesLnsNumNodes_ = value;
12288 bitField0_ |= 0x04000000;
12302 bitField0_ = (bitField0_ & ~0x04000000);
12303 heuristicCloseNodesLnsNumNodes_ = 0;
12308 private int localSearchMetaheuristic_ = 0;
12318 return localSearchMetaheuristic_;
12330 localSearchMetaheuristic_ = value;
12331 bitField0_ |= 0x08000000;
12343 @java.lang.Override
12346 return result ==
null ? com.google.ortools.constraintsolver.LocalSearchMetaheuristic.Value.UNRECOGNIZED : result;
12358 if (value ==
null) {
12359 throw new NullPointerException();
12361 bitField0_ |= 0x08000000;
12362 localSearchMetaheuristic_ = value.getNumber();
12375 bitField0_ = (bitField0_ & ~0x08000000);
12376 localSearchMetaheuristic_ = 0;
12381 private double guidedLocalSearchLambdaCoefficient_ ;
12393 @java.lang.Override
12395 return guidedLocalSearchLambdaCoefficient_;
12411 guidedLocalSearchLambdaCoefficient_ = value;
12412 bitField0_ |= 0x10000000;
12428 bitField0_ = (bitField0_ & ~0x10000000);
12429 guidedLocalSearchLambdaCoefficient_ = 0D;
12434 private boolean guidedLocalSearchResetPenaltiesOnNewBestSolution_ ;
12444 @java.lang.Override
12446 return guidedLocalSearchResetPenaltiesOnNewBestSolution_;
12460 guidedLocalSearchResetPenaltiesOnNewBestSolution_ = value;
12461 bitField0_ |= 0x20000000;
12475 bitField0_ = (bitField0_ & ~0x20000000);
12476 guidedLocalSearchResetPenaltiesOnNewBestSolution_ =
false;
12481 private boolean useDepthFirstSearch_ ;
12493 @java.lang.Override
12495 return useDepthFirstSearch_;
12511 useDepthFirstSearch_ = value;
12512 bitField0_ |= 0x40000000;
12528 bitField0_ = (bitField0_ & ~0x40000000);
12529 useDepthFirstSearch_ =
false;
12534 private int useCp_ = 0;
12561 bitField0_ |= 0x80000000;
12575 @java.lang.Override
12578 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
12592 if (value ==
null) {
12593 throw new NullPointerException();
12595 bitField0_ |= 0x80000000;
12596 useCp_ = value.getNumber();
12611 bitField0_ = (bitField0_ & ~0x80000000);
12617 private int useCpSat_ = 0;
12646 bitField1_ |= 0x00000001;
12661 @java.lang.Override
12664 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
12679 if (value ==
null) {
12680 throw new NullPointerException();
12682 bitField1_ |= 0x00000001;
12683 useCpSat_ = value.getNumber();
12699 bitField1_ = (bitField1_ & ~0x00000001);
12705 private int useGeneralizedCpSat_ = 0;
12718 return useGeneralizedCpSat_;
12733 useGeneralizedCpSat_ = value;
12734 bitField1_ |= 0x00000002;
12749 @java.lang.Override
12752 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
12767 if (value ==
null) {
12768 throw new NullPointerException();
12770 bitField1_ |= 0x00000002;
12771 useGeneralizedCpSat_ = value.getNumber();
12787 bitField1_ = (bitField1_ & ~0x00000002);
12788 useGeneralizedCpSat_ = 0;
12794 private com.google.protobuf.SingleFieldBuilderV3<
12795 com.google.ortools.sat.SatParameters, com.google.ortools.sat.SatParameters.Builder, com.google.ortools.sat.SatParametersOrBuilder> satParametersBuilder_;
12806 return ((bitField1_ & 0x00000004) != 0);
12818 if (satParametersBuilder_ ==
null) {
12819 return satParameters_ ==
null ? com.google.ortools.sat.SatParameters.getDefaultInstance() : satParameters_;
12821 return satParametersBuilder_.getMessage();
12833 if (satParametersBuilder_ ==
null) {
12834 if (value ==
null) {
12835 throw new NullPointerException();
12837 satParameters_ = value;
12839 satParametersBuilder_.setMessage(value);
12841 bitField1_ |= 0x00000004;
12854 com.google.ortools.sat.SatParameters.Builder builderForValue) {
12855 if (satParametersBuilder_ ==
null) {
12856 satParameters_ = builderForValue.build();
12858 satParametersBuilder_.setMessage(builderForValue.build());
12860 bitField1_ |= 0x00000004;
12873 if (satParametersBuilder_ ==
null) {
12874 if (((bitField1_ & 0x00000004) != 0) &&
12875 satParameters_ !=
null &&
12876 satParameters_ != com.google.ortools.sat.SatParameters.getDefaultInstance()) {
12879 satParameters_ = value;
12882 satParametersBuilder_.mergeFrom(value);
12884 if (satParameters_ !=
null) {
12885 bitField1_ |= 0x00000004;
12899 bitField1_ = (bitField1_ & ~0x00000004);
12900 satParameters_ =
null;
12901 if (satParametersBuilder_ !=
null) {
12902 satParametersBuilder_.dispose();
12903 satParametersBuilder_ =
null;
12917 bitField1_ |= 0x00000004;
12919 return getSatParametersFieldBuilder().getBuilder();
12930 if (satParametersBuilder_ !=
null) {
12931 return satParametersBuilder_.getMessageOrBuilder();
12933 return satParameters_ ==
null ?
12934 com.google.ortools.sat.SatParameters.getDefaultInstance() : satParameters_;
12945 private com.google.protobuf.SingleFieldBuilderV3<
12946 com.google.ortools.sat.SatParameters, com.google.ortools.sat.SatParameters.Builder, com.google.ortools.sat.SatParametersOrBuilder>
12947 getSatParametersFieldBuilder() {
12948 if (satParametersBuilder_ ==
null) {
12949 satParametersBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
12950 com.google.ortools.sat.SatParameters, com.google.ortools.sat.SatParameters.Builder, com.google.ortools.sat.SatParametersOrBuilder>(
12952 getParentForChildren(),
12954 satParameters_ =
null;
12956 return satParametersBuilder_;
12959 private boolean reportIntermediateCpSatSolutions_ ;
12969 @java.lang.Override
12971 return reportIntermediateCpSatSolutions_;
12985 reportIntermediateCpSatSolutions_ = value;
12986 bitField1_ |= 0x00000008;
13000 bitField1_ = (bitField1_ & ~0x00000008);
13001 reportIntermediateCpSatSolutions_ =
false;
13006 private int fallbackToCpSatSizeThreshold_ ;
13016 @java.lang.Override
13018 return fallbackToCpSatSizeThreshold_;
13032 fallbackToCpSatSizeThreshold_ = value;
13033 bitField1_ |= 0x00000010;
13047 bitField1_ = (bitField1_ & ~0x00000010);
13048 fallbackToCpSatSizeThreshold_ = 0;
13053 private int continuousSchedulingSolver_ = 0;
13059 return continuousSchedulingSolver_;
13067 continuousSchedulingSolver_ = value;
13068 bitField1_ |= 0x00000020;
13076 @java.lang.Override
13079 return result ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.SchedulingSolver.UNRECOGNIZED : result;
13087 if (value ==
null) {
13088 throw new NullPointerException();
13090 bitField1_ |= 0x00000020;
13091 continuousSchedulingSolver_ = value.getNumber();
13100 bitField1_ = (bitField1_ & ~0x00000020);
13101 continuousSchedulingSolver_ = 0;
13106 private int mixedIntegerSchedulingSolver_ = 0;
13112 return mixedIntegerSchedulingSolver_;
13120 mixedIntegerSchedulingSolver_ = value;
13121 bitField1_ |= 0x00000040;
13129 @java.lang.Override
13132 return result ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.SchedulingSolver.UNRECOGNIZED : result;
13140 if (value ==
null) {
13141 throw new NullPointerException();
13143 bitField1_ |= 0x00000040;
13144 mixedIntegerSchedulingSolver_ = value.getNumber();
13153 bitField1_ = (bitField1_ & ~0x00000040);
13154 mixedIntegerSchedulingSolver_ = 0;
13159 private boolean disableSchedulingBewareThisMayDegradePerformance_ ;
13169 @java.lang.Override
13171 return ((bitField1_ & 0x00000080) != 0);
13182 @java.lang.Override
13184 return disableSchedulingBewareThisMayDegradePerformance_;
13198 disableSchedulingBewareThisMayDegradePerformance_ = value;
13199 bitField1_ |= 0x00000080;
13213 bitField1_ = (bitField1_ & ~0x00000080);
13214 disableSchedulingBewareThisMayDegradePerformance_ =
false;
13219 private double optimizationStep_ ;
13230 @java.lang.Override
13232 return optimizationStep_;
13247 optimizationStep_ = value;
13248 bitField1_ |= 0x00000100;
13263 bitField1_ = (bitField1_ & ~0x00000100);
13264 optimizationStep_ = 0D;
13269 private int numberOfSolutionsToCollect_ ;
13279 @java.lang.Override
13281 return numberOfSolutionsToCollect_;
13295 numberOfSolutionsToCollect_ = value;
13296 bitField1_ |= 0x00000200;
13310 bitField1_ = (bitField1_ & ~0x00000200);
13311 numberOfSolutionsToCollect_ = 0;
13316 private long solutionLimit_ ;
13327 @java.lang.Override
13329 return solutionLimit_;
13344 solutionLimit_ = value;
13345 bitField1_ |= 0x00000400;
13360 bitField1_ = (bitField1_ & ~0x00000400);
13361 solutionLimit_ = 0L;
13366 private com.google.protobuf.Duration timeLimit_;
13367 private com.google.protobuf.SingleFieldBuilderV3<
13368 com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeLimitBuilder_;
13378 return ((bitField1_ & 0x00000800) != 0);
13389 if (timeLimitBuilder_ ==
null) {
13390 return timeLimit_ ==
null ? com.google.protobuf.Duration.getDefaultInstance() : timeLimit_;
13392 return timeLimitBuilder_.getMessage();
13403 if (timeLimitBuilder_ ==
null) {
13404 if (value ==
null) {
13405 throw new NullPointerException();
13407 timeLimit_ = value;
13409 timeLimitBuilder_.setMessage(value);
13411 bitField1_ |= 0x00000800;
13423 com.google.protobuf.Duration.Builder builderForValue) {
13424 if (timeLimitBuilder_ ==
null) {
13425 timeLimit_ = builderForValue.
build();
13427 timeLimitBuilder_.setMessage(builderForValue.build());
13429 bitField1_ |= 0x00000800;
13441 if (timeLimitBuilder_ ==
null) {
13442 if (((bitField1_ & 0x00000800) != 0) &&
13443 timeLimit_ !=
null &&
13444 timeLimit_ != com.google.protobuf.Duration.getDefaultInstance()) {
13447 timeLimit_ = value;
13450 timeLimitBuilder_.mergeFrom(value);
13452 if (timeLimit_ !=
null) {
13453 bitField1_ |= 0x00000800;
13466 bitField1_ = (bitField1_ & ~0x00000800);
13468 if (timeLimitBuilder_ !=
null) {
13469 timeLimitBuilder_.dispose();
13470 timeLimitBuilder_ =
null;
13483 bitField1_ |= 0x00000800;
13485 return getTimeLimitFieldBuilder().getBuilder();
13495 if (timeLimitBuilder_ !=
null) {
13496 return timeLimitBuilder_.getMessageOrBuilder();
13498 return timeLimit_ ==
null ?
13499 com.google.protobuf.Duration.getDefaultInstance() : timeLimit_;
13509 private com.google.protobuf.SingleFieldBuilderV3<
13510 com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
13511 getTimeLimitFieldBuilder() {
13512 if (timeLimitBuilder_ ==
null) {
13513 timeLimitBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
13514 com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
13516 getParentForChildren(),
13520 return timeLimitBuilder_;
13523 private com.google.protobuf.Duration lnsTimeLimit_;
13524 private com.google.protobuf.SingleFieldBuilderV3<
13525 com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> lnsTimeLimitBuilder_;
13536 return ((bitField1_ & 0x00001000) != 0);
13548 if (lnsTimeLimitBuilder_ ==
null) {
13549 return lnsTimeLimit_ ==
null ? com.google.protobuf.Duration.getDefaultInstance() : lnsTimeLimit_;
13551 return lnsTimeLimitBuilder_.getMessage();
13563 if (lnsTimeLimitBuilder_ ==
null) {
13564 if (value ==
null) {
13565 throw new NullPointerException();
13567 lnsTimeLimit_ = value;
13569 lnsTimeLimitBuilder_.setMessage(value);
13571 bitField1_ |= 0x00001000;
13584 com.google.protobuf.Duration.Builder builderForValue) {
13585 if (lnsTimeLimitBuilder_ ==
null) {
13586 lnsTimeLimit_ = builderForValue.
build();
13588 lnsTimeLimitBuilder_.setMessage(builderForValue.build());
13590 bitField1_ |= 0x00001000;
13603 if (lnsTimeLimitBuilder_ ==
null) {
13604 if (((bitField1_ & 0x00001000) != 0) &&
13605 lnsTimeLimit_ !=
null &&
13606 lnsTimeLimit_ != com.google.protobuf.Duration.getDefaultInstance()) {
13609 lnsTimeLimit_ = value;
13612 lnsTimeLimitBuilder_.mergeFrom(value);
13614 if (lnsTimeLimit_ !=
null) {
13615 bitField1_ |= 0x00001000;
13629 bitField1_ = (bitField1_ & ~0x00001000);
13630 lnsTimeLimit_ =
null;
13631 if (lnsTimeLimitBuilder_ !=
null) {
13632 lnsTimeLimitBuilder_.dispose();
13633 lnsTimeLimitBuilder_ =
null;
13647 bitField1_ |= 0x00001000;
13649 return getLnsTimeLimitFieldBuilder().getBuilder();
13660 if (lnsTimeLimitBuilder_ !=
null) {
13661 return lnsTimeLimitBuilder_.getMessageOrBuilder();
13663 return lnsTimeLimit_ ==
null ?
13664 com.google.protobuf.Duration.getDefaultInstance() : lnsTimeLimit_;
13675 private com.google.protobuf.SingleFieldBuilderV3<
13676 com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
13677 getLnsTimeLimitFieldBuilder() {
13678 if (lnsTimeLimitBuilder_ ==
null) {
13679 lnsTimeLimitBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
13680 com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
13682 getParentForChildren(),
13684 lnsTimeLimit_ =
null;
13686 return lnsTimeLimitBuilder_;
13689 private double secondaryLsTimeLimitRatio_ ;
13703 @java.lang.Override
13705 return secondaryLsTimeLimitRatio_;
13723 secondaryLsTimeLimitRatio_ = value;
13724 bitField1_ |= 0x00002000;
13742 bitField1_ = (bitField1_ & ~0x00002000);
13743 secondaryLsTimeLimitRatio_ = 0D;
13749 private com.google.protobuf.SingleFieldBuilderV3<
13750 com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters, com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.Builder, com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParametersOrBuilder> improvementLimitParametersBuilder_;
13761 return ((bitField1_ & 0x00004000) != 0);
13773 if (improvementLimitParametersBuilder_ ==
null) {
13774 return improvementLimitParameters_ ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.getDefaultInstance() : improvementLimitParameters_;
13776 return improvementLimitParametersBuilder_.getMessage();
13788 if (improvementLimitParametersBuilder_ ==
null) {
13789 if (value ==
null) {
13790 throw new NullPointerException();
13792 improvementLimitParameters_ = value;
13794 improvementLimitParametersBuilder_.setMessage(value);
13796 bitField1_ |= 0x00004000;
13809 com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.Builder builderForValue) {
13810 if (improvementLimitParametersBuilder_ ==
null) {
13811 improvementLimitParameters_ = builderForValue.build();
13813 improvementLimitParametersBuilder_.setMessage(builderForValue.build());
13815 bitField1_ |= 0x00004000;
13828 if (improvementLimitParametersBuilder_ ==
null) {
13829 if (((bitField1_ & 0x00004000) != 0) &&
13830 improvementLimitParameters_ !=
null &&
13831 improvementLimitParameters_ != com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.getDefaultInstance()) {
13834 improvementLimitParameters_ = value;
13837 improvementLimitParametersBuilder_.mergeFrom(value);
13839 if (improvementLimitParameters_ !=
null) {
13840 bitField1_ |= 0x00004000;
13854 bitField1_ = (bitField1_ & ~0x00004000);
13855 improvementLimitParameters_ =
null;
13856 if (improvementLimitParametersBuilder_ !=
null) {
13857 improvementLimitParametersBuilder_.dispose();
13858 improvementLimitParametersBuilder_ =
null;
13872 bitField1_ |= 0x00004000;
13874 return getImprovementLimitParametersFieldBuilder().getBuilder();
13885 if (improvementLimitParametersBuilder_ !=
null) {
13886 return improvementLimitParametersBuilder_.getMessageOrBuilder();
13888 return improvementLimitParameters_ ==
null ?
13889 com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.getDefaultInstance() : improvementLimitParameters_;
13900 private com.google.protobuf.SingleFieldBuilderV3<
13901 com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters, com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.Builder, com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParametersOrBuilder>
13902 getImprovementLimitParametersFieldBuilder() {
13903 if (improvementLimitParametersBuilder_ ==
null) {
13904 improvementLimitParametersBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
13905 com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters, com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.Builder, com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParametersOrBuilder>(
13907 getParentForChildren(),
13909 improvementLimitParameters_ =
null;
13911 return improvementLimitParametersBuilder_;
13914 private boolean useFullPropagation_ ;
13932 @java.lang.Override
13934 return useFullPropagation_;
13956 useFullPropagation_ = value;
13957 bitField1_ |= 0x00008000;
13979 bitField1_ = (bitField1_ & ~0x00008000);
13980 useFullPropagation_ =
false;
13985 private boolean logSearch_ ;
14006 @java.lang.Override
14033 logSearch_ = value;
14034 bitField1_ |= 0x00010000;
14059 bitField1_ = (bitField1_ & ~0x00010000);
14060 logSearch_ =
false;
14065 private double logCostScalingFactor_ ;
14075 @java.lang.Override
14077 return logCostScalingFactor_;
14091 logCostScalingFactor_ = value;
14092 bitField1_ |= 0x00020000;
14106 bitField1_ = (bitField1_ & ~0x00020000);
14107 logCostScalingFactor_ = 0D;
14112 private double logCostOffset_ ;
14117 @java.lang.Override
14119 return logCostOffset_;
14128 logCostOffset_ = value;
14129 bitField1_ |= 0x00040000;
14138 bitField1_ = (bitField1_ & ~0x00040000);
14139 logCostOffset_ = 0D;
14144 private java.lang.Object logTag_ =
"";
14155 java.lang.Object ref = logTag_;
14156 if (!(ref instanceof java.lang.String)) {
14157 com.google.protobuf.ByteString bs =
14158 (com.google.protobuf.ByteString) ref;
14159 java.lang.String s = bs.toStringUtf8();
14163 return (java.lang.String) ref;
14175 public com.google.protobuf.ByteString
14177 java.lang.Object ref = logTag_;
14178 if (ref instanceof String) {
14179 com.google.protobuf.ByteString b =
14180 com.google.protobuf.ByteString.copyFromUtf8(
14181 (java.lang.String) ref);
14185 return (com.google.protobuf.ByteString) ref;
14199 java.lang.String value) {
14200 if (value ==
null) {
throw new NullPointerException(); }
14202 bitField1_ |= 0x00080000;
14217 bitField1_ = (bitField1_ & ~0x00080000);
14232 com.google.protobuf.ByteString value) {
14233 if (value ==
null) {
throw new NullPointerException(); }
14234 checkByteStringIsUtf8(value);
14236 bitField1_ |= 0x00080000;
14241 private boolean useIteratedLocalSearch_ ;
14251 @java.lang.Override
14253 return useIteratedLocalSearch_;
14267 useIteratedLocalSearch_ = value;
14268 bitField1_ |= 0x00100000;
14282 bitField1_ = (bitField1_ & ~0x00100000);
14283 useIteratedLocalSearch_ =
false;
14289 private com.google.protobuf.SingleFieldBuilderV3<
14300 return ((bitField1_ & 0x00200000) != 0);
14311 if (iteratedLocalSearchParametersBuilder_ ==
null) {
14314 return iteratedLocalSearchParametersBuilder_.getMessage();
14325 if (iteratedLocalSearchParametersBuilder_ ==
null) {
14326 if (value ==
null) {
14327 throw new NullPointerException();
14329 iteratedLocalSearchParameters_ = value;
14331 iteratedLocalSearchParametersBuilder_.setMessage(value);
14333 bitField1_ |= 0x00200000;
14346 if (iteratedLocalSearchParametersBuilder_ ==
null) {
14347 iteratedLocalSearchParameters_ = builderForValue.build();
14349 iteratedLocalSearchParametersBuilder_.setMessage(builderForValue.build());
14351 bitField1_ |= 0x00200000;
14363 if (iteratedLocalSearchParametersBuilder_ ==
null) {
14364 if (((bitField1_ & 0x00200000) != 0) &&
14365 iteratedLocalSearchParameters_ !=
null &&
14369 iteratedLocalSearchParameters_ = value;
14372 iteratedLocalSearchParametersBuilder_.mergeFrom(value);
14374 if (iteratedLocalSearchParameters_ !=
null) {
14375 bitField1_ |= 0x00200000;
14388 bitField1_ = (bitField1_ & ~0x00200000);
14389 iteratedLocalSearchParameters_ =
null;
14390 if (iteratedLocalSearchParametersBuilder_ !=
null) {
14391 iteratedLocalSearchParametersBuilder_.dispose();
14392 iteratedLocalSearchParametersBuilder_ =
null;
14405 bitField1_ |= 0x00200000;
14407 return getIteratedLocalSearchParametersFieldBuilder().getBuilder();
14417 if (iteratedLocalSearchParametersBuilder_ !=
null) {
14418 return iteratedLocalSearchParametersBuilder_.getMessageOrBuilder();
14420 return iteratedLocalSearchParameters_ ==
null ?
14431 private com.google.protobuf.SingleFieldBuilderV3<
14433 getIteratedLocalSearchParametersFieldBuilder() {
14434 if (iteratedLocalSearchParametersBuilder_ ==
null) {
14435 iteratedLocalSearchParametersBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
14438 getParentForChildren(),
14440 iteratedLocalSearchParameters_ =
null;
14442 return iteratedLocalSearchParametersBuilder_;
14444 @java.lang.Override
14446 final com.google.protobuf.UnknownFieldSet unknownFields) {
14450 @java.lang.Override
14452 final com.google.protobuf.UnknownFieldSet unknownFields) {
14463 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.RoutingSearchParameters();
14467 return DEFAULT_INSTANCE;
14472 @java.lang.Override
14474 com.google.protobuf.CodedInputStream input,
14475 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
14476 throws com.google.protobuf.InvalidProtocolBufferException {
14479 builder.mergeFrom(input, extensionRegistry);
14480 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
14481 throw e.setUnfinishedMessage(builder.buildPartial());
14482 }
catch (com.google.protobuf.UninitializedMessageException e) {
14483 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
14484 }
catch (java.io.IOException e) {
14485 throw new com.google.protobuf.InvalidProtocolBufferException(e)
14486 .setUnfinishedMessage(builder.buildPartial());
14488 return builder.buildPartial();
14496 @java.lang.Override
14501 @java.lang.Override
14503 return DEFAULT_INSTANCE;
static operations_research.RoutingIls.IteratedLocalSearchParameters getDefaultInstance()
Protobuf Java Version: 3.25.3.