5package com.google.ortools.constraintsolver;
21 com.google.protobuf.GeneratedMessage implements
24private static final long serialVersionUID = 0L;
26 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
27 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
39 firstSolutionStrategy_ = 0;
40 localCheapestInsertionPickupDeliveryStrategy_ = 0;
41 localCheapestCostInsertionPickupDeliveryStrategy_ = 0;
42 localSearchMetaheuristic_ = 0;
45 useGeneralizedCpSat_ = 0;
46 continuousSchedulingSolver_ = 0;
47 mixedIntegerSchedulingSolver_ = 0;
51 public static final com.google.protobuf.Descriptors.Descriptor
53 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_descriptor;
57 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
59 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_fieldAccessorTable
60 .ensureFieldAccessorsInitialized(
61 com.google.ortools.constraintsolver.RoutingSearchParameters.class, com.google.ortools.constraintsolver.RoutingSearchParameters.Builder.class);
74 implements com.google.protobuf.ProtocolMessageEnum {
115 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
116 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
130 public static final int AUTOMATIC_VALUE = 0;
138 public static final int BEST_PICKUP_THEN_BEST_DELIVERY_VALUE = 1;
146 public static final int BEST_PICKUP_DELIVERY_PAIR_VALUE = 2;
158 public static final int BEST_PICKUP_DELIVERY_PAIR_MULTITOUR_VALUE = 3;
162 if (
this == UNRECOGNIZED) {
163 throw new java.lang.IllegalArgumentException(
164 "Can't get the number of an unknown enum value.");
174 @java.lang.Deprecated
176 return forNumber(value);
185 case 0:
return AUTOMATIC;
186 case 1:
return BEST_PICKUP_THEN_BEST_DELIVERY;
187 case 2:
return BEST_PICKUP_DELIVERY_PAIR;
188 case 3:
return BEST_PICKUP_DELIVERY_PAIR_MULTITOUR;
189 default:
return null;
195 return internalValueMap;
197 private static final com.google.protobuf.Internal.EnumLiteMap<
205 public final com.google.protobuf.Descriptors.EnumValueDescriptor
207 if (
this == UNRECOGNIZED) {
208 throw new java.lang.IllegalStateException(
209 "Can't get the descriptor of an unrecognized enum value.");
213 public final com.google.protobuf.Descriptors.EnumDescriptor
217 public static final com.google.protobuf.Descriptors.EnumDescriptor
219 return com.google.ortools.constraintsolver.RoutingSearchParameters.getDescriptor().getEnumTypes().get(0);
225 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
227 throw new java.lang.IllegalArgumentException(
228 "EnumValueDescriptor is not for this type.");
230 if (desc.getIndex() == -1) {
233 return VALUES[desc.getIndex()];
236 private final int value;
254 implements com.google.protobuf.ProtocolMessageEnum {
271 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
272 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
282 public static final int SCHEDULING_UNSET_VALUE = 0;
286 public static final int SCHEDULING_GLOP_VALUE = 1;
290 public static final int SCHEDULING_CP_SAT_VALUE = 2;
294 if (
this == UNRECOGNIZED) {
295 throw new java.lang.IllegalArgumentException(
296 "Can't get the number of an unknown enum value.");
306 @java.lang.Deprecated
308 return forNumber(value);
317 case 0:
return SCHEDULING_UNSET;
318 case 1:
return SCHEDULING_GLOP;
319 case 2:
return SCHEDULING_CP_SAT;
320 default:
return null;
326 return internalValueMap;
328 private static final com.google.protobuf.Internal.EnumLiteMap<
336 public final com.google.protobuf.Descriptors.EnumValueDescriptor
338 if (
this == UNRECOGNIZED) {
339 throw new java.lang.IllegalStateException(
340 "Can't get the descriptor of an unrecognized enum value.");
344 public final com.google.protobuf.Descriptors.EnumDescriptor
348 public static final com.google.protobuf.Descriptors.EnumDescriptor
350 return com.google.ortools.constraintsolver.RoutingSearchParameters.getDescriptor().getEnumTypes().get(1);
356 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
358 throw new java.lang.IllegalArgumentException(
359 "EnumValueDescriptor is not for this type.");
361 if (desc.getIndex() == -1) {
364 return VALUES[desc.getIndex()];
367 private final int value;
378 com.google.protobuf.MessageOrBuilder {
1417 com.google.protobuf.GeneratedMessage implements
1420 private static final long serialVersionUID = 0L;
1422 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
1423 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
1436 useRelocatePair_ = 0;
1437 useLightRelocatePair_ = 0;
1438 useRelocateNeighbors_ = 0;
1439 useRelocateSubtrip_ = 0;
1441 useExchangePair_ = 0;
1442 useExchangeSubtrip_ = 0;
1444 useCrossExchange_ = 0;
1445 useRelocateExpensiveChain_ = 0;
1448 useLinKernighan_ = 0;
1451 useRelocateAndMakeActive_ = 0;
1452 useMakeInactive_ = 0;
1453 useMakeChainInactive_ = 0;
1455 useExtendedSwapActive_ = 0;
1456 useShortestPathSwapActive_ = 0;
1457 useNodePairSwapActive_ = 0;
1459 useFullPathLns_ = 0;
1461 useInactiveLns_ = 0;
1462 useGlobalCheapestInsertionPathLns_ = 0;
1463 useLocalCheapestInsertionPathLns_ = 0;
1464 useRelocatePathGlobalCheapestInsertionInsertUnperformed_ = 0;
1465 useGlobalCheapestInsertionExpensiveChainLns_ = 0;
1466 useLocalCheapestInsertionExpensiveChainLns_ = 0;
1467 useGlobalCheapestInsertionCloseNodesLns_ = 0;
1468 useLocalCheapestInsertionCloseNodesLns_ = 0;
1471 public static final com.google.protobuf.Descriptors.Descriptor
1473 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_LocalSearchNeighborhoodOperators_descriptor;
1477 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1479 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_LocalSearchNeighborhoodOperators_fieldAccessorTable
1480 .ensureFieldAccessorsInitialized(
1481 com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.class, com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.class);
1485 private int useRelocate_ = 0;
1503 return useRelocate_;
1523 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1527 private int useRelocatePair_ = 0;
1545 return useRelocatePair_;
1565 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1569 private int useLightRelocatePair_ = 0;
1585 return useLightRelocatePair_;
1603 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1607 private int useRelocateNeighbors_ = 0;
1638 return useRelocateNeighbors_;
1671 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1675 private int useRelocateSubtrip_ = 0;
1698 return useRelocateSubtrip_;
1723 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1727 private int useExchange_ = 0;
1743 return useExchange_;
1761 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1765 private int useExchangePair_ = 0;
1781 return useExchangePair_;
1799 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1803 private int useExchangeSubtrip_ = 0;
1814 return useExchangeSubtrip_;
1827 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1831 private int useCross_ = 0;
1869 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1873 private int useCrossExchange_ = 0;
1883 return useCrossExchange_;
1895 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1899 private int useRelocateExpensiveChain_ = 0;
1918 return useRelocateExpensiveChain_;
1939 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1943 private int useTwoOpt_ = 0;
1983 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
1987 private int useOrOpt_ = 0;
2029 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2033 private int useLinKernighan_ = 0;
2046 return useLinKernighan_;
2061 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2065 private int useTspOpt_ = 0;
2097 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2101 private int useMakeActive_ = 0;
2117 return useMakeActive_;
2135 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2139 private int useRelocateAndMakeActive_ = 0;
2158 return useRelocateAndMakeActive_;
2179 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2183 private int useMakeInactive_ = 0;
2197 return useMakeInactive_;
2213 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2217 private int useMakeChainInactive_ = 0;
2232 return useMakeChainInactive_;
2249 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2253 private int useSwapActive_ = 0;
2267 return useSwapActive_;
2283 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2287 private int useExtendedSwapActive_ = 0;
2306 return useExtendedSwapActive_;
2327 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2331 private int useShortestPathSwapActive_ = 0;
2346 return useShortestPathSwapActive_;
2363 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2367 private int useNodePairSwapActive_ = 0;
2387 return useNodePairSwapActive_;
2409 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2413 private int usePathLns_ = 0;
2449 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2453 private int useFullPathLns_ = 0;
2463 return useFullPathLns_;
2475 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2479 private int useTspLns_ = 0;
2511 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2515 private int useInactiveLns_ = 0;
2527 return useInactiveLns_;
2541 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2545 private int useGlobalCheapestInsertionPathLns_ = 0;
2557 return useGlobalCheapestInsertionPathLns_;
2571 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2575 private int useLocalCheapestInsertionPathLns_ = 0;
2585 return useLocalCheapestInsertionPathLns_;
2597 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2601 private int useRelocatePathGlobalCheapestInsertionInsertUnperformed_ = 0;
2613 return useRelocatePathGlobalCheapestInsertionInsertUnperformed_;
2627 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2631 private int useGlobalCheapestInsertionExpensiveChainLns_ = 0;
2644 return useGlobalCheapestInsertionExpensiveChainLns_;
2659 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2663 private int useLocalCheapestInsertionExpensiveChainLns_ = 0;
2674 return useLocalCheapestInsertionExpensiveChainLns_;
2687 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2691 private int useGlobalCheapestInsertionCloseNodesLns_ = 0;
2704 return useGlobalCheapestInsertionCloseNodesLns_;
2719 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2723 private int useLocalCheapestInsertionCloseNodesLns_ = 0;
2734 return useLocalCheapestInsertionCloseNodesLns_;
2747 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
2750 private byte memoizedIsInitialized = -1;
2757 memoizedIsInitialized = 1;
2762 public void writeTo(com.google.protobuf.CodedOutputStream output)
2763 throws java.io.IOException {
2764 if (useRelocate_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2765 output.writeEnum(1, useRelocate_);
2767 if (useRelocatePair_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2768 output.writeEnum(2, useRelocatePair_);
2770 if (useRelocateNeighbors_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2771 output.writeEnum(3, useRelocateNeighbors_);
2773 if (useExchange_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2774 output.writeEnum(4, useExchange_);
2776 if (useCross_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2777 output.writeEnum(5, useCross_);
2779 if (useCrossExchange_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2780 output.writeEnum(6, useCrossExchange_);
2782 if (useTwoOpt_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2783 output.writeEnum(7, useTwoOpt_);
2785 if (useOrOpt_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2786 output.writeEnum(8, useOrOpt_);
2788 if (useLinKernighan_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2789 output.writeEnum(9, useLinKernighan_);
2791 if (useTspOpt_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2792 output.writeEnum(10, useTspOpt_);
2794 if (useMakeActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2795 output.writeEnum(11, useMakeActive_);
2797 if (useMakeInactive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2798 output.writeEnum(12, useMakeInactive_);
2800 if (useMakeChainInactive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2801 output.writeEnum(13, useMakeChainInactive_);
2803 if (useSwapActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2804 output.writeEnum(14, useSwapActive_);
2806 if (useExtendedSwapActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2807 output.writeEnum(15, useExtendedSwapActive_);
2809 if (usePathLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2810 output.writeEnum(16, usePathLns_);
2812 if (useFullPathLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2813 output.writeEnum(17, useFullPathLns_);
2815 if (useTspLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2816 output.writeEnum(18, useTspLns_);
2818 if (useInactiveLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2819 output.writeEnum(19, useInactiveLns_);
2821 if (useNodePairSwapActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2822 output.writeEnum(20, useNodePairSwapActive_);
2824 if (useRelocateAndMakeActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2825 output.writeEnum(21, useRelocateAndMakeActive_);
2827 if (useExchangePair_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2828 output.writeEnum(22, useExchangePair_);
2830 if (useRelocateExpensiveChain_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2831 output.writeEnum(23, useRelocateExpensiveChain_);
2833 if (useLightRelocatePair_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2834 output.writeEnum(24, useLightRelocatePair_);
2836 if (useRelocateSubtrip_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2837 output.writeEnum(25, useRelocateSubtrip_);
2839 if (useExchangeSubtrip_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2840 output.writeEnum(26, useExchangeSubtrip_);
2842 if (useGlobalCheapestInsertionPathLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2843 output.writeEnum(27, useGlobalCheapestInsertionPathLns_);
2845 if (useLocalCheapestInsertionPathLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2846 output.writeEnum(28, useLocalCheapestInsertionPathLns_);
2848 if (useGlobalCheapestInsertionExpensiveChainLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2849 output.writeEnum(29, useGlobalCheapestInsertionExpensiveChainLns_);
2851 if (useLocalCheapestInsertionExpensiveChainLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2852 output.writeEnum(30, useLocalCheapestInsertionExpensiveChainLns_);
2854 if (useGlobalCheapestInsertionCloseNodesLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2855 output.writeEnum(31, useGlobalCheapestInsertionCloseNodesLns_);
2857 if (useLocalCheapestInsertionCloseNodesLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2858 output.writeEnum(32, useLocalCheapestInsertionCloseNodesLns_);
2860 if (useRelocatePathGlobalCheapestInsertionInsertUnperformed_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2861 output.writeEnum(33, useRelocatePathGlobalCheapestInsertionInsertUnperformed_);
2863 if (useShortestPathSwapActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2864 output.writeEnum(34, useShortestPathSwapActive_);
2866 getUnknownFields().writeTo(output);
2871 int size = memoizedSize;
2872 if (size != -1)
return size;
2875 if (useRelocate_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2876 size += com.google.protobuf.CodedOutputStream
2877 .computeEnumSize(1, useRelocate_);
2879 if (useRelocatePair_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2880 size += com.google.protobuf.CodedOutputStream
2881 .computeEnumSize(2, useRelocatePair_);
2883 if (useRelocateNeighbors_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2884 size += com.google.protobuf.CodedOutputStream
2885 .computeEnumSize(3, useRelocateNeighbors_);
2887 if (useExchange_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2888 size += com.google.protobuf.CodedOutputStream
2889 .computeEnumSize(4, useExchange_);
2891 if (useCross_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2892 size += com.google.protobuf.CodedOutputStream
2893 .computeEnumSize(5, useCross_);
2895 if (useCrossExchange_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2896 size += com.google.protobuf.CodedOutputStream
2897 .computeEnumSize(6, useCrossExchange_);
2899 if (useTwoOpt_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2900 size += com.google.protobuf.CodedOutputStream
2901 .computeEnumSize(7, useTwoOpt_);
2903 if (useOrOpt_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2904 size += com.google.protobuf.CodedOutputStream
2905 .computeEnumSize(8, useOrOpt_);
2907 if (useLinKernighan_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2908 size += com.google.protobuf.CodedOutputStream
2909 .computeEnumSize(9, useLinKernighan_);
2911 if (useTspOpt_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2912 size += com.google.protobuf.CodedOutputStream
2913 .computeEnumSize(10, useTspOpt_);
2915 if (useMakeActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2916 size += com.google.protobuf.CodedOutputStream
2917 .computeEnumSize(11, useMakeActive_);
2919 if (useMakeInactive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2920 size += com.google.protobuf.CodedOutputStream
2921 .computeEnumSize(12, useMakeInactive_);
2923 if (useMakeChainInactive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2924 size += com.google.protobuf.CodedOutputStream
2925 .computeEnumSize(13, useMakeChainInactive_);
2927 if (useSwapActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2928 size += com.google.protobuf.CodedOutputStream
2929 .computeEnumSize(14, useSwapActive_);
2931 if (useExtendedSwapActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2932 size += com.google.protobuf.CodedOutputStream
2933 .computeEnumSize(15, useExtendedSwapActive_);
2935 if (usePathLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2936 size += com.google.protobuf.CodedOutputStream
2937 .computeEnumSize(16, usePathLns_);
2939 if (useFullPathLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2940 size += com.google.protobuf.CodedOutputStream
2941 .computeEnumSize(17, useFullPathLns_);
2943 if (useTspLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2944 size += com.google.protobuf.CodedOutputStream
2945 .computeEnumSize(18, useTspLns_);
2947 if (useInactiveLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2948 size += com.google.protobuf.CodedOutputStream
2949 .computeEnumSize(19, useInactiveLns_);
2951 if (useNodePairSwapActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2952 size += com.google.protobuf.CodedOutputStream
2953 .computeEnumSize(20, useNodePairSwapActive_);
2955 if (useRelocateAndMakeActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2956 size += com.google.protobuf.CodedOutputStream
2957 .computeEnumSize(21, useRelocateAndMakeActive_);
2959 if (useExchangePair_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2960 size += com.google.protobuf.CodedOutputStream
2961 .computeEnumSize(22, useExchangePair_);
2963 if (useRelocateExpensiveChain_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2964 size += com.google.protobuf.CodedOutputStream
2965 .computeEnumSize(23, useRelocateExpensiveChain_);
2967 if (useLightRelocatePair_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2968 size += com.google.protobuf.CodedOutputStream
2969 .computeEnumSize(24, useLightRelocatePair_);
2971 if (useRelocateSubtrip_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2972 size += com.google.protobuf.CodedOutputStream
2973 .computeEnumSize(25, useRelocateSubtrip_);
2975 if (useExchangeSubtrip_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2976 size += com.google.protobuf.CodedOutputStream
2977 .computeEnumSize(26, useExchangeSubtrip_);
2979 if (useGlobalCheapestInsertionPathLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2980 size += com.google.protobuf.CodedOutputStream
2981 .computeEnumSize(27, useGlobalCheapestInsertionPathLns_);
2983 if (useLocalCheapestInsertionPathLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2984 size += com.google.protobuf.CodedOutputStream
2985 .computeEnumSize(28, useLocalCheapestInsertionPathLns_);
2987 if (useGlobalCheapestInsertionExpensiveChainLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2988 size += com.google.protobuf.CodedOutputStream
2989 .computeEnumSize(29, useGlobalCheapestInsertionExpensiveChainLns_);
2991 if (useLocalCheapestInsertionExpensiveChainLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2992 size += com.google.protobuf.CodedOutputStream
2993 .computeEnumSize(30, useLocalCheapestInsertionExpensiveChainLns_);
2995 if (useGlobalCheapestInsertionCloseNodesLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
2996 size += com.google.protobuf.CodedOutputStream
2997 .computeEnumSize(31, useGlobalCheapestInsertionCloseNodesLns_);
2999 if (useLocalCheapestInsertionCloseNodesLns_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
3000 size += com.google.protobuf.CodedOutputStream
3001 .computeEnumSize(32, useLocalCheapestInsertionCloseNodesLns_);
3003 if (useRelocatePathGlobalCheapestInsertionInsertUnperformed_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
3004 size += com.google.protobuf.CodedOutputStream
3005 .computeEnumSize(33, useRelocatePathGlobalCheapestInsertionInsertUnperformed_);
3007 if (useShortestPathSwapActive_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
3008 size += com.google.protobuf.CodedOutputStream
3009 .computeEnumSize(34, useShortestPathSwapActive_);
3011 size += getUnknownFields().getSerializedSize();
3012 memoizedSize = size;
3017 public boolean equals(
final java.lang.Object obj) {
3021 if (!(obj instanceof com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators)) {
3022 return super.equals(obj);
3026 if (useRelocate_ != other.useRelocate_)
return false;
3027 if (useRelocatePair_ != other.useRelocatePair_)
return false;
3028 if (useLightRelocatePair_ != other.useLightRelocatePair_)
return false;
3029 if (useRelocateNeighbors_ != other.useRelocateNeighbors_)
return false;
3030 if (useRelocateSubtrip_ != other.useRelocateSubtrip_)
return false;
3031 if (useExchange_ != other.useExchange_)
return false;
3032 if (useExchangePair_ != other.useExchangePair_)
return false;
3033 if (useExchangeSubtrip_ != other.useExchangeSubtrip_)
return false;
3034 if (useCross_ != other.useCross_)
return false;
3035 if (useCrossExchange_ != other.useCrossExchange_)
return false;
3036 if (useRelocateExpensiveChain_ != other.useRelocateExpensiveChain_)
return false;
3037 if (useTwoOpt_ != other.useTwoOpt_)
return false;
3038 if (useOrOpt_ != other.useOrOpt_)
return false;
3039 if (useLinKernighan_ != other.useLinKernighan_)
return false;
3040 if (useTspOpt_ != other.useTspOpt_)
return false;
3041 if (useMakeActive_ != other.useMakeActive_)
return false;
3042 if (useRelocateAndMakeActive_ != other.useRelocateAndMakeActive_)
return false;
3043 if (useMakeInactive_ != other.useMakeInactive_)
return false;
3044 if (useMakeChainInactive_ != other.useMakeChainInactive_)
return false;
3045 if (useSwapActive_ != other.useSwapActive_)
return false;
3046 if (useExtendedSwapActive_ != other.useExtendedSwapActive_)
return false;
3047 if (useShortestPathSwapActive_ != other.useShortestPathSwapActive_)
return false;
3048 if (useNodePairSwapActive_ != other.useNodePairSwapActive_)
return false;
3049 if (usePathLns_ != other.usePathLns_)
return false;
3050 if (useFullPathLns_ != other.useFullPathLns_)
return false;
3051 if (useTspLns_ != other.useTspLns_)
return false;
3052 if (useInactiveLns_ != other.useInactiveLns_)
return false;
3053 if (useGlobalCheapestInsertionPathLns_ != other.useGlobalCheapestInsertionPathLns_)
return false;
3054 if (useLocalCheapestInsertionPathLns_ != other.useLocalCheapestInsertionPathLns_)
return false;
3055 if (useRelocatePathGlobalCheapestInsertionInsertUnperformed_ != other.useRelocatePathGlobalCheapestInsertionInsertUnperformed_)
return false;
3056 if (useGlobalCheapestInsertionExpensiveChainLns_ != other.useGlobalCheapestInsertionExpensiveChainLns_)
return false;
3057 if (useLocalCheapestInsertionExpensiveChainLns_ != other.useLocalCheapestInsertionExpensiveChainLns_)
return false;
3058 if (useGlobalCheapestInsertionCloseNodesLns_ != other.useGlobalCheapestInsertionCloseNodesLns_)
return false;
3059 if (useLocalCheapestInsertionCloseNodesLns_ != other.useLocalCheapestInsertionCloseNodesLns_)
return false;
3060 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
3066 if (memoizedHashCode != 0) {
3067 return memoizedHashCode;
3072 hash = (53 * hash) + useRelocate_;
3074 hash = (53 * hash) + useRelocatePair_;
3076 hash = (53 * hash) + useLightRelocatePair_;
3078 hash = (53 * hash) + useRelocateNeighbors_;
3080 hash = (53 * hash) + useRelocateSubtrip_;
3082 hash = (53 * hash) + useExchange_;
3084 hash = (53 * hash) + useExchangePair_;
3086 hash = (53 * hash) + useExchangeSubtrip_;
3088 hash = (53 * hash) + useCross_;
3090 hash = (53 * hash) + useCrossExchange_;
3092 hash = (53 * hash) + useRelocateExpensiveChain_;
3094 hash = (53 * hash) + useTwoOpt_;
3096 hash = (53 * hash) + useOrOpt_;
3098 hash = (53 * hash) + useLinKernighan_;
3100 hash = (53 * hash) + useTspOpt_;
3102 hash = (53 * hash) + useMakeActive_;
3104 hash = (53 * hash) + useRelocateAndMakeActive_;
3106 hash = (53 * hash) + useMakeInactive_;
3108 hash = (53 * hash) + useMakeChainInactive_;
3110 hash = (53 * hash) + useSwapActive_;
3112 hash = (53 * hash) + useExtendedSwapActive_;
3114 hash = (53 * hash) + useShortestPathSwapActive_;
3116 hash = (53 * hash) + useNodePairSwapActive_;
3118 hash = (53 * hash) + usePathLns_;
3120 hash = (53 * hash) + useFullPathLns_;
3122 hash = (53 * hash) + useTspLns_;
3124 hash = (53 * hash) + useInactiveLns_;
3126 hash = (53 * hash) + useGlobalCheapestInsertionPathLns_;
3128 hash = (53 * hash) + useLocalCheapestInsertionPathLns_;
3130 hash = (53 * hash) + useRelocatePathGlobalCheapestInsertionInsertUnperformed_;
3132 hash = (53 * hash) + useGlobalCheapestInsertionExpensiveChainLns_;
3134 hash = (53 * hash) + useLocalCheapestInsertionExpensiveChainLns_;
3136 hash = (53 * hash) + useGlobalCheapestInsertionCloseNodesLns_;
3138 hash = (53 * hash) + useLocalCheapestInsertionCloseNodesLns_;
3139 hash = (29 * hash) + getUnknownFields().hashCode();
3140 memoizedHashCode = hash;
3145 java.nio.ByteBuffer data)
3146 throws com.google.protobuf.InvalidProtocolBufferException {
3147 return PARSER.parseFrom(data);
3150 java.nio.ByteBuffer data,
3151 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3152 throws com.google.protobuf.InvalidProtocolBufferException {
3153 return PARSER.parseFrom(data, extensionRegistry);
3156 com.google.protobuf.ByteString data)
3157 throws com.google.protobuf.InvalidProtocolBufferException {
3158 return PARSER.parseFrom(data);
3161 com.google.protobuf.ByteString data,
3162 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3163 throws com.google.protobuf.InvalidProtocolBufferException {
3164 return PARSER.parseFrom(data, extensionRegistry);
3167 throws com.google.protobuf.InvalidProtocolBufferException {
3168 return PARSER.parseFrom(data);
3172 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3173 throws com.google.protobuf.InvalidProtocolBufferException {
3174 return PARSER.parseFrom(data, extensionRegistry);
3177 throws java.io.IOException {
3178 return com.google.protobuf.GeneratedMessage
3179 .parseWithIOException(PARSER, input);
3182 java.io.InputStream input,
3183 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3184 throws java.io.IOException {
3185 return com.google.protobuf.GeneratedMessage
3186 .parseWithIOException(PARSER, input, extensionRegistry);
3190 throws java.io.IOException {
3191 return com.google.protobuf.GeneratedMessage
3192 .parseDelimitedWithIOException(PARSER, input);
3196 java.io.InputStream input,
3197 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3198 throws java.io.IOException {
3199 return com.google.protobuf.GeneratedMessage
3200 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
3203 com.google.protobuf.CodedInputStream input)
3204 throws java.io.IOException {
3205 return com.google.protobuf.GeneratedMessage
3206 .parseWithIOException(PARSER, input);
3209 com.google.protobuf.CodedInputStream input,
3210 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3211 throws java.io.IOException {
3212 return com.google.protobuf.GeneratedMessage
3213 .parseWithIOException(PARSER, input, extensionRegistry);
3221 public static Builder newBuilder(com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators prototype) {
3226 return this == DEFAULT_INSTANCE
3232 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3245 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
3248 public static final com.google.protobuf.Descriptors.Descriptor
3250 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_LocalSearchNeighborhoodOperators_descriptor;
3254 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3256 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_LocalSearchNeighborhoodOperators_fieldAccessorTable
3257 .ensureFieldAccessorsInitialized(
3258 com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.class, com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.class);
3267 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3277 useRelocatePair_ = 0;
3278 useLightRelocatePair_ = 0;
3279 useRelocateNeighbors_ = 0;
3280 useRelocateSubtrip_ = 0;
3282 useExchangePair_ = 0;
3283 useExchangeSubtrip_ = 0;
3285 useCrossExchange_ = 0;
3286 useRelocateExpensiveChain_ = 0;
3289 useLinKernighan_ = 0;
3292 useRelocateAndMakeActive_ = 0;
3293 useMakeInactive_ = 0;
3294 useMakeChainInactive_ = 0;
3296 useExtendedSwapActive_ = 0;
3297 useShortestPathSwapActive_ = 0;
3298 useNodePairSwapActive_ = 0;
3300 useFullPathLns_ = 0;
3302 useInactiveLns_ = 0;
3303 useGlobalCheapestInsertionPathLns_ = 0;
3304 useLocalCheapestInsertionPathLns_ = 0;
3305 useRelocatePathGlobalCheapestInsertionInsertUnperformed_ = 0;
3306 useGlobalCheapestInsertionExpensiveChainLns_ = 0;
3307 useLocalCheapestInsertionExpensiveChainLns_ = 0;
3308 useGlobalCheapestInsertionCloseNodesLns_ = 0;
3309 useLocalCheapestInsertionCloseNodesLns_ = 0;
3314 public com.google.protobuf.Descriptors.Descriptor
3316 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_LocalSearchNeighborhoodOperators_descriptor;
3321 return com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.getDefaultInstance();
3328 throw newUninitializedMessageException(result);
3336 if (bitField0_ != 0) { buildPartial0(result); }
3337 if (bitField1_ != 0) { buildPartial1(result); }
3342 private void buildPartial0(com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators result) {
3343 int from_bitField0_ = bitField0_;
3344 if (((from_bitField0_ & 0x00000001) != 0)) {
3345 result.useRelocate_ = useRelocate_;
3347 if (((from_bitField0_ & 0x00000002) != 0)) {
3348 result.useRelocatePair_ = useRelocatePair_;
3350 if (((from_bitField0_ & 0x00000004) != 0)) {
3351 result.useLightRelocatePair_ = useLightRelocatePair_;
3353 if (((from_bitField0_ & 0x00000008) != 0)) {
3354 result.useRelocateNeighbors_ = useRelocateNeighbors_;
3356 if (((from_bitField0_ & 0x00000010) != 0)) {
3357 result.useRelocateSubtrip_ = useRelocateSubtrip_;
3359 if (((from_bitField0_ & 0x00000020) != 0)) {
3360 result.useExchange_ = useExchange_;
3362 if (((from_bitField0_ & 0x00000040) != 0)) {
3363 result.useExchangePair_ = useExchangePair_;
3365 if (((from_bitField0_ & 0x00000080) != 0)) {
3366 result.useExchangeSubtrip_ = useExchangeSubtrip_;
3368 if (((from_bitField0_ & 0x00000100) != 0)) {
3369 result.useCross_ = useCross_;
3371 if (((from_bitField0_ & 0x00000200) != 0)) {
3372 result.useCrossExchange_ = useCrossExchange_;
3374 if (((from_bitField0_ & 0x00000400) != 0)) {
3375 result.useRelocateExpensiveChain_ = useRelocateExpensiveChain_;
3377 if (((from_bitField0_ & 0x00000800) != 0)) {
3378 result.useTwoOpt_ = useTwoOpt_;
3380 if (((from_bitField0_ & 0x00001000) != 0)) {
3381 result.useOrOpt_ = useOrOpt_;
3383 if (((from_bitField0_ & 0x00002000) != 0)) {
3384 result.useLinKernighan_ = useLinKernighan_;
3386 if (((from_bitField0_ & 0x00004000) != 0)) {
3387 result.useTspOpt_ = useTspOpt_;
3389 if (((from_bitField0_ & 0x00008000) != 0)) {
3390 result.useMakeActive_ = useMakeActive_;
3392 if (((from_bitField0_ & 0x00010000) != 0)) {
3393 result.useRelocateAndMakeActive_ = useRelocateAndMakeActive_;
3395 if (((from_bitField0_ & 0x00020000) != 0)) {
3396 result.useMakeInactive_ = useMakeInactive_;
3398 if (((from_bitField0_ & 0x00040000) != 0)) {
3399 result.useMakeChainInactive_ = useMakeChainInactive_;
3401 if (((from_bitField0_ & 0x00080000) != 0)) {
3402 result.useSwapActive_ = useSwapActive_;
3404 if (((from_bitField0_ & 0x00100000) != 0)) {
3405 result.useExtendedSwapActive_ = useExtendedSwapActive_;
3407 if (((from_bitField0_ & 0x00200000) != 0)) {
3408 result.useShortestPathSwapActive_ = useShortestPathSwapActive_;
3410 if (((from_bitField0_ & 0x00400000) != 0)) {
3411 result.useNodePairSwapActive_ = useNodePairSwapActive_;
3413 if (((from_bitField0_ & 0x00800000) != 0)) {
3414 result.usePathLns_ = usePathLns_;
3416 if (((from_bitField0_ & 0x01000000) != 0)) {
3417 result.useFullPathLns_ = useFullPathLns_;
3419 if (((from_bitField0_ & 0x02000000) != 0)) {
3420 result.useTspLns_ = useTspLns_;
3422 if (((from_bitField0_ & 0x04000000) != 0)) {
3423 result.useInactiveLns_ = useInactiveLns_;
3425 if (((from_bitField0_ & 0x08000000) != 0)) {
3426 result.useGlobalCheapestInsertionPathLns_ = useGlobalCheapestInsertionPathLns_;
3428 if (((from_bitField0_ & 0x10000000) != 0)) {
3429 result.useLocalCheapestInsertionPathLns_ = useLocalCheapestInsertionPathLns_;
3431 if (((from_bitField0_ & 0x20000000) != 0)) {
3432 result.useRelocatePathGlobalCheapestInsertionInsertUnperformed_ = useRelocatePathGlobalCheapestInsertionInsertUnperformed_;
3434 if (((from_bitField0_ & 0x40000000) != 0)) {
3435 result.useGlobalCheapestInsertionExpensiveChainLns_ = useGlobalCheapestInsertionExpensiveChainLns_;
3437 if (((from_bitField0_ & 0x80000000) != 0)) {
3438 result.useLocalCheapestInsertionExpensiveChainLns_ = useLocalCheapestInsertionExpensiveChainLns_;
3442 private void buildPartial1(com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators result) {
3443 int from_bitField1_ = bitField1_;
3444 if (((from_bitField1_ & 0x00000001) != 0)) {
3445 result.useGlobalCheapestInsertionCloseNodesLns_ = useGlobalCheapestInsertionCloseNodesLns_;
3447 if (((from_bitField1_ & 0x00000002) != 0)) {
3448 result.useLocalCheapestInsertionCloseNodesLns_ = useLocalCheapestInsertionCloseNodesLns_;
3454 if (other instanceof com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators) {
3455 return mergeFrom((com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators)other);
3457 super.mergeFrom(other);
3462 public Builder mergeFrom(com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators other) {
3463 if (other == com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.getDefaultInstance())
return this;
3464 if (other.useRelocate_ != 0) {
3467 if (other.useRelocatePair_ != 0) {
3470 if (other.useLightRelocatePair_ != 0) {
3473 if (other.useRelocateNeighbors_ != 0) {
3476 if (other.useRelocateSubtrip_ != 0) {
3479 if (other.useExchange_ != 0) {
3482 if (other.useExchangePair_ != 0) {
3485 if (other.useExchangeSubtrip_ != 0) {
3488 if (other.useCross_ != 0) {
3491 if (other.useCrossExchange_ != 0) {
3494 if (other.useRelocateExpensiveChain_ != 0) {
3497 if (other.useTwoOpt_ != 0) {
3500 if (other.useOrOpt_ != 0) {
3503 if (other.useLinKernighan_ != 0) {
3506 if (other.useTspOpt_ != 0) {
3509 if (other.useMakeActive_ != 0) {
3512 if (other.useRelocateAndMakeActive_ != 0) {
3515 if (other.useMakeInactive_ != 0) {
3518 if (other.useMakeChainInactive_ != 0) {
3521 if (other.useSwapActive_ != 0) {
3524 if (other.useExtendedSwapActive_ != 0) {
3527 if (other.useShortestPathSwapActive_ != 0) {
3530 if (other.useNodePairSwapActive_ != 0) {
3533 if (other.usePathLns_ != 0) {
3536 if (other.useFullPathLns_ != 0) {
3539 if (other.useTspLns_ != 0) {
3542 if (other.useInactiveLns_ != 0) {
3545 if (other.useGlobalCheapestInsertionPathLns_ != 0) {
3548 if (other.useLocalCheapestInsertionPathLns_ != 0) {
3551 if (other.useRelocatePathGlobalCheapestInsertionInsertUnperformed_ != 0) {
3554 if (other.useGlobalCheapestInsertionExpensiveChainLns_ != 0) {
3557 if (other.useLocalCheapestInsertionExpensiveChainLns_ != 0) {
3560 if (other.useGlobalCheapestInsertionCloseNodesLns_ != 0) {
3563 if (other.useLocalCheapestInsertionCloseNodesLns_ != 0) {
3566 this.mergeUnknownFields(other.getUnknownFields());
3578 com.google.protobuf.CodedInputStream input,
3579 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3580 throws java.io.IOException {
3581 if (extensionRegistry ==
null) {
3582 throw new java.lang.NullPointerException();
3585 boolean done =
false;
3587 int tag = input.readTag();
3593 useRelocate_ = input.readEnum();
3594 bitField0_ |= 0x00000001;
3598 useRelocatePair_ = input.readEnum();
3599 bitField0_ |= 0x00000002;
3603 useRelocateNeighbors_ = input.readEnum();
3604 bitField0_ |= 0x00000008;
3608 useExchange_ = input.readEnum();
3609 bitField0_ |= 0x00000020;
3613 useCross_ = input.readEnum();
3614 bitField0_ |= 0x00000100;
3618 useCrossExchange_ = input.readEnum();
3619 bitField0_ |= 0x00000200;
3623 useTwoOpt_ = input.readEnum();
3624 bitField0_ |= 0x00000800;
3628 useOrOpt_ = input.readEnum();
3629 bitField0_ |= 0x00001000;
3633 useLinKernighan_ = input.readEnum();
3634 bitField0_ |= 0x00002000;
3638 useTspOpt_ = input.readEnum();
3639 bitField0_ |= 0x00004000;
3643 useMakeActive_ = input.readEnum();
3644 bitField0_ |= 0x00008000;
3648 useMakeInactive_ = input.readEnum();
3649 bitField0_ |= 0x00020000;
3653 useMakeChainInactive_ = input.readEnum();
3654 bitField0_ |= 0x00040000;
3658 useSwapActive_ = input.readEnum();
3659 bitField0_ |= 0x00080000;
3663 useExtendedSwapActive_ = input.readEnum();
3664 bitField0_ |= 0x00100000;
3668 usePathLns_ = input.readEnum();
3669 bitField0_ |= 0x00800000;
3673 useFullPathLns_ = input.readEnum();
3674 bitField0_ |= 0x01000000;
3678 useTspLns_ = input.readEnum();
3679 bitField0_ |= 0x02000000;
3683 useInactiveLns_ = input.readEnum();
3684 bitField0_ |= 0x04000000;
3688 useNodePairSwapActive_ = input.readEnum();
3689 bitField0_ |= 0x00400000;
3693 useRelocateAndMakeActive_ = input.readEnum();
3694 bitField0_ |= 0x00010000;
3698 useExchangePair_ = input.readEnum();
3699 bitField0_ |= 0x00000040;
3703 useRelocateExpensiveChain_ = input.readEnum();
3704 bitField0_ |= 0x00000400;
3708 useLightRelocatePair_ = input.readEnum();
3709 bitField0_ |= 0x00000004;
3713 useRelocateSubtrip_ = input.readEnum();
3714 bitField0_ |= 0x00000010;
3718 useExchangeSubtrip_ = input.readEnum();
3719 bitField0_ |= 0x00000080;
3723 useGlobalCheapestInsertionPathLns_ = input.readEnum();
3724 bitField0_ |= 0x08000000;
3728 useLocalCheapestInsertionPathLns_ = input.readEnum();
3729 bitField0_ |= 0x10000000;
3733 useGlobalCheapestInsertionExpensiveChainLns_ = input.readEnum();
3734 bitField0_ |= 0x40000000;
3738 useLocalCheapestInsertionExpensiveChainLns_ = input.readEnum();
3739 bitField0_ |= 0x80000000;
3743 useGlobalCheapestInsertionCloseNodesLns_ = input.readEnum();
3744 bitField1_ |= 0x00000001;
3748 useLocalCheapestInsertionCloseNodesLns_ = input.readEnum();
3749 bitField1_ |= 0x00000002;
3753 useRelocatePathGlobalCheapestInsertionInsertUnperformed_ = input.readEnum();
3754 bitField0_ |= 0x20000000;
3758 useShortestPathSwapActive_ = input.readEnum();
3759 bitField0_ |= 0x00200000;
3763 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
3770 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
3771 throw e.unwrapIOException();
3777 private int bitField0_;
3778 private int bitField1_;
3780 private int useRelocate_ = 0;
3798 return useRelocate_;
3818 useRelocate_ = value;
3819 bitField0_ |= 0x00000001;
3842 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
3862 if (value ==
null) {
3863 throw new NullPointerException();
3865 bitField0_ |= 0x00000001;
3866 useRelocate_ = value.getNumber();
3887 bitField0_ = (bitField0_ & ~0x00000001);
3893 private int useRelocatePair_ = 0;
3911 return useRelocatePair_;
3931 useRelocatePair_ = value;
3932 bitField0_ |= 0x00000002;
3955 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
3975 if (value ==
null) {
3976 throw new NullPointerException();
3978 bitField0_ |= 0x00000002;
3979 useRelocatePair_ = value.getNumber();
4000 bitField0_ = (bitField0_ & ~0x00000002);
4001 useRelocatePair_ = 0;
4006 private int useLightRelocatePair_ = 0;
4022 return useLightRelocatePair_;
4040 useLightRelocatePair_ = value;
4041 bitField0_ |= 0x00000004;
4062 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
4080 if (value ==
null) {
4081 throw new NullPointerException();
4083 bitField0_ |= 0x00000004;
4084 useLightRelocatePair_ = value.getNumber();
4103 bitField0_ = (bitField0_ & ~0x00000004);
4104 useLightRelocatePair_ = 0;
4109 private int useRelocateNeighbors_ = 0;
4140 return useRelocateNeighbors_;
4173 useRelocateNeighbors_ = value;
4174 bitField0_ |= 0x00000008;
4210 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
4243 if (value ==
null) {
4244 throw new NullPointerException();
4246 bitField0_ |= 0x00000008;
4247 useRelocateNeighbors_ = value.getNumber();
4281 bitField0_ = (bitField0_ & ~0x00000008);
4282 useRelocateNeighbors_ = 0;
4287 private int useRelocateSubtrip_ = 0;
4310 return useRelocateSubtrip_;
4335 useRelocateSubtrip_ = value;
4336 bitField0_ |= 0x00000010;
4364 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
4389 if (value ==
null) {
4390 throw new NullPointerException();
4392 bitField0_ |= 0x00000010;
4393 useRelocateSubtrip_ = value.getNumber();
4419 bitField0_ = (bitField0_ & ~0x00000010);
4420 useRelocateSubtrip_ = 0;
4425 private int useExchange_ = 0;
4441 return useExchange_;
4459 useExchange_ = value;
4460 bitField0_ |= 0x00000020;
4481 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
4499 if (value ==
null) {
4500 throw new NullPointerException();
4502 bitField0_ |= 0x00000020;
4503 useExchange_ = value.getNumber();
4522 bitField0_ = (bitField0_ & ~0x00000020);
4528 private int useExchangePair_ = 0;
4544 return useExchangePair_;
4562 useExchangePair_ = value;
4563 bitField0_ |= 0x00000040;
4584 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
4602 if (value ==
null) {
4603 throw new NullPointerException();
4605 bitField0_ |= 0x00000040;
4606 useExchangePair_ = value.getNumber();
4625 bitField0_ = (bitField0_ & ~0x00000040);
4626 useExchangePair_ = 0;
4631 private int useExchangeSubtrip_ = 0;
4642 return useExchangeSubtrip_;
4655 useExchangeSubtrip_ = value;
4656 bitField0_ |= 0x00000080;
4672 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
4685 if (value ==
null) {
4686 throw new NullPointerException();
4688 bitField0_ |= 0x00000080;
4689 useExchangeSubtrip_ = value.getNumber();
4703 bitField0_ = (bitField0_ & ~0x00000080);
4704 useExchangeSubtrip_ = 0;
4709 private int useCross_ = 0;
4748 bitField0_ |= 0x00000100;
4771 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
4791 if (value ==
null) {
4792 throw new NullPointerException();
4794 bitField0_ |= 0x00000100;
4795 useCross_ = value.getNumber();
4816 bitField0_ = (bitField0_ & ~0x00000100);
4822 private int useCrossExchange_ = 0;
4832 return useCrossExchange_;
4844 useCrossExchange_ = value;
4845 bitField0_ |= 0x00000200;
4860 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
4872 if (value ==
null) {
4873 throw new NullPointerException();
4875 bitField0_ |= 0x00000200;
4876 useCrossExchange_ = value.getNumber();
4889 bitField0_ = (bitField0_ & ~0x00000200);
4890 useCrossExchange_ = 0;
4895 private int useRelocateExpensiveChain_ = 0;
4914 return useRelocateExpensiveChain_;
4935 useRelocateExpensiveChain_ = value;
4936 bitField0_ |= 0x00000400;
4960 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
4981 if (value ==
null) {
4982 throw new NullPointerException();
4984 bitField0_ |= 0x00000400;
4985 useRelocateExpensiveChain_ = value.getNumber();
5007 bitField0_ = (bitField0_ & ~0x00000400);
5008 useRelocateExpensiveChain_ = 0;
5013 private int useTwoOpt_ = 0;
5054 bitField0_ |= 0x00000800;
5078 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
5099 if (value ==
null) {
5100 throw new NullPointerException();
5102 bitField0_ |= 0x00000800;
5103 useTwoOpt_ = value.getNumber();
5125 bitField0_ = (bitField0_ & ~0x00000800);
5131 private int useOrOpt_ = 0;
5174 bitField0_ |= 0x00001000;
5199 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
5221 if (value ==
null) {
5222 throw new NullPointerException();
5224 bitField0_ |= 0x00001000;
5225 useOrOpt_ = value.getNumber();
5248 bitField0_ = (bitField0_ & ~0x00001000);
5254 private int useLinKernighan_ = 0;
5267 return useLinKernighan_;
5282 useLinKernighan_ = value;
5283 bitField0_ |= 0x00002000;
5301 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
5316 if (value ==
null) {
5317 throw new NullPointerException();
5319 bitField0_ |= 0x00002000;
5320 useLinKernighan_ = value.getNumber();
5336 bitField0_ = (bitField0_ & ~0x00002000);
5337 useLinKernighan_ = 0;
5342 private int useTspOpt_ = 0;
5375 bitField0_ |= 0x00004000;
5395 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
5412 if (value ==
null) {
5413 throw new NullPointerException();
5415 bitField0_ |= 0x00004000;
5416 useTspOpt_ = value.getNumber();
5434 bitField0_ = (bitField0_ & ~0x00004000);
5440 private int useMakeActive_ = 0;
5456 return useMakeActive_;
5474 useMakeActive_ = value;
5475 bitField0_ |= 0x00008000;
5496 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
5514 if (value ==
null) {
5515 throw new NullPointerException();
5517 bitField0_ |= 0x00008000;
5518 useMakeActive_ = value.getNumber();
5537 bitField0_ = (bitField0_ & ~0x00008000);
5543 private int useRelocateAndMakeActive_ = 0;
5562 return useRelocateAndMakeActive_;
5583 useRelocateAndMakeActive_ = value;
5584 bitField0_ |= 0x00010000;
5608 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
5629 if (value ==
null) {
5630 throw new NullPointerException();
5632 bitField0_ |= 0x00010000;
5633 useRelocateAndMakeActive_ = value.getNumber();
5655 bitField0_ = (bitField0_ & ~0x00010000);
5656 useRelocateAndMakeActive_ = 0;
5661 private int useMakeInactive_ = 0;
5675 return useMakeInactive_;
5691 useMakeInactive_ = value;
5692 bitField0_ |= 0x00020000;
5711 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
5727 if (value ==
null) {
5728 throw new NullPointerException();
5730 bitField0_ |= 0x00020000;
5731 useMakeInactive_ = value.getNumber();
5748 bitField0_ = (bitField0_ & ~0x00020000);
5749 useMakeInactive_ = 0;
5754 private int useMakeChainInactive_ = 0;
5769 return useMakeChainInactive_;
5786 useMakeChainInactive_ = value;
5787 bitField0_ |= 0x00040000;
5807 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
5824 if (value ==
null) {
5825 throw new NullPointerException();
5827 bitField0_ |= 0x00040000;
5828 useMakeChainInactive_ = value.getNumber();
5846 bitField0_ = (bitField0_ & ~0x00040000);
5847 useMakeChainInactive_ = 0;
5852 private int useSwapActive_ = 0;
5866 return useSwapActive_;
5882 useSwapActive_ = value;
5883 bitField0_ |= 0x00080000;
5902 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
5918 if (value ==
null) {
5919 throw new NullPointerException();
5921 bitField0_ |= 0x00080000;
5922 useSwapActive_ = value.getNumber();
5939 bitField0_ = (bitField0_ & ~0x00080000);
5945 private int useExtendedSwapActive_ = 0;
5964 return useExtendedSwapActive_;
5985 useExtendedSwapActive_ = value;
5986 bitField0_ |= 0x00100000;
6010 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6031 if (value ==
null) {
6032 throw new NullPointerException();
6034 bitField0_ |= 0x00100000;
6035 useExtendedSwapActive_ = value.getNumber();
6057 bitField0_ = (bitField0_ & ~0x00100000);
6058 useExtendedSwapActive_ = 0;
6063 private int useShortestPathSwapActive_ = 0;
6078 return useShortestPathSwapActive_;
6095 useShortestPathSwapActive_ = value;
6096 bitField0_ |= 0x00200000;
6116 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6133 if (value ==
null) {
6134 throw new NullPointerException();
6136 bitField0_ |= 0x00200000;
6137 useShortestPathSwapActive_ = value.getNumber();
6155 bitField0_ = (bitField0_ & ~0x00200000);
6156 useShortestPathSwapActive_ = 0;
6161 private int useNodePairSwapActive_ = 0;
6181 return useNodePairSwapActive_;
6203 useNodePairSwapActive_ = value;
6204 bitField0_ |= 0x00400000;
6229 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6251 if (value ==
null) {
6252 throw new NullPointerException();
6254 bitField0_ |= 0x00400000;
6255 useNodePairSwapActive_ = value.getNumber();
6278 bitField0_ = (bitField0_ & ~0x00400000);
6279 useNodePairSwapActive_ = 0;
6284 private int usePathLns_ = 0;
6320 usePathLns_ = value;
6321 bitField0_ |= 0x00800000;
6343 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6362 if (value ==
null) {
6363 throw new NullPointerException();
6365 bitField0_ |= 0x00800000;
6366 usePathLns_ = value.getNumber();
6386 bitField0_ = (bitField0_ & ~0x00800000);
6392 private int useFullPathLns_ = 0;
6402 return useFullPathLns_;
6414 useFullPathLns_ = value;
6415 bitField0_ |= 0x01000000;
6430 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6442 if (value ==
null) {
6443 throw new NullPointerException();
6445 bitField0_ |= 0x01000000;
6446 useFullPathLns_ = value.getNumber();
6459 bitField0_ = (bitField0_ & ~0x01000000);
6460 useFullPathLns_ = 0;
6465 private int useTspLns_ = 0;
6498 bitField0_ |= 0x02000000;
6518 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6535 if (value ==
null) {
6536 throw new NullPointerException();
6538 bitField0_ |= 0x02000000;
6539 useTspLns_ = value.getNumber();
6557 bitField0_ = (bitField0_ & ~0x02000000);
6563 private int useInactiveLns_ = 0;
6575 return useInactiveLns_;
6589 useInactiveLns_ = value;
6590 bitField0_ |= 0x04000000;
6607 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6621 if (value ==
null) {
6622 throw new NullPointerException();
6624 bitField0_ |= 0x04000000;
6625 useInactiveLns_ = value.getNumber();
6640 bitField0_ = (bitField0_ & ~0x04000000);
6641 useInactiveLns_ = 0;
6646 private int useGlobalCheapestInsertionPathLns_ = 0;
6658 return useGlobalCheapestInsertionPathLns_;
6672 useGlobalCheapestInsertionPathLns_ = value;
6673 bitField0_ |= 0x08000000;
6690 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6704 if (value ==
null) {
6705 throw new NullPointerException();
6707 bitField0_ |= 0x08000000;
6708 useGlobalCheapestInsertionPathLns_ = value.getNumber();
6723 bitField0_ = (bitField0_ & ~0x08000000);
6724 useGlobalCheapestInsertionPathLns_ = 0;
6729 private int useLocalCheapestInsertionPathLns_ = 0;
6739 return useLocalCheapestInsertionPathLns_;
6751 useLocalCheapestInsertionPathLns_ = value;
6752 bitField0_ |= 0x10000000;
6767 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6779 if (value ==
null) {
6780 throw new NullPointerException();
6782 bitField0_ |= 0x10000000;
6783 useLocalCheapestInsertionPathLns_ = value.getNumber();
6796 bitField0_ = (bitField0_ & ~0x10000000);
6797 useLocalCheapestInsertionPathLns_ = 0;
6802 private int useRelocatePathGlobalCheapestInsertionInsertUnperformed_ = 0;
6814 return useRelocatePathGlobalCheapestInsertionInsertUnperformed_;
6828 useRelocatePathGlobalCheapestInsertionInsertUnperformed_ = value;
6829 bitField0_ |= 0x20000000;
6846 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6860 if (value ==
null) {
6861 throw new NullPointerException();
6863 bitField0_ |= 0x20000000;
6864 useRelocatePathGlobalCheapestInsertionInsertUnperformed_ = value.getNumber();
6879 bitField0_ = (bitField0_ & ~0x20000000);
6880 useRelocatePathGlobalCheapestInsertionInsertUnperformed_ = 0;
6885 private int useGlobalCheapestInsertionExpensiveChainLns_ = 0;
6898 return useGlobalCheapestInsertionExpensiveChainLns_;
6913 useGlobalCheapestInsertionExpensiveChainLns_ = value;
6914 bitField0_ |= 0x40000000;
6932 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
6947 if (value ==
null) {
6948 throw new NullPointerException();
6950 bitField0_ |= 0x40000000;
6951 useGlobalCheapestInsertionExpensiveChainLns_ = value.getNumber();
6967 bitField0_ = (bitField0_ & ~0x40000000);
6968 useGlobalCheapestInsertionExpensiveChainLns_ = 0;
6973 private int useLocalCheapestInsertionExpensiveChainLns_ = 0;
6984 return useLocalCheapestInsertionExpensiveChainLns_;
6997 useLocalCheapestInsertionExpensiveChainLns_ = value;
6998 bitField0_ |= 0x80000000;
7014 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
7027 if (value ==
null) {
7028 throw new NullPointerException();
7030 bitField0_ |= 0x80000000;
7031 useLocalCheapestInsertionExpensiveChainLns_ = value.getNumber();
7045 bitField0_ = (bitField0_ & ~0x80000000);
7046 useLocalCheapestInsertionExpensiveChainLns_ = 0;
7051 private int useGlobalCheapestInsertionCloseNodesLns_ = 0;
7064 return useGlobalCheapestInsertionCloseNodesLns_;
7079 useGlobalCheapestInsertionCloseNodesLns_ = value;
7080 bitField1_ |= 0x00000001;
7098 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
7113 if (value ==
null) {
7114 throw new NullPointerException();
7116 bitField1_ |= 0x00000001;
7117 useGlobalCheapestInsertionCloseNodesLns_ = value.getNumber();
7133 bitField1_ = (bitField1_ & ~0x00000001);
7134 useGlobalCheapestInsertionCloseNodesLns_ = 0;
7139 private int useLocalCheapestInsertionCloseNodesLns_ = 0;
7150 return useLocalCheapestInsertionCloseNodesLns_;
7163 useLocalCheapestInsertionCloseNodesLns_ = value;
7164 bitField1_ |= 0x00000002;
7180 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
7193 if (value ==
null) {
7194 throw new NullPointerException();
7196 bitField1_ |= 0x00000002;
7197 useLocalCheapestInsertionCloseNodesLns_ = value.getNumber();
7211 bitField1_ = (bitField1_ & ~0x00000002);
7212 useLocalCheapestInsertionCloseNodesLns_ = 0;
7223 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators();
7227 return DEFAULT_INSTANCE;
7234 com.google.protobuf.CodedInputStream input,
7235 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7236 throws com.google.protobuf.InvalidProtocolBufferException {
7239 builder.
mergeFrom(input, extensionRegistry);
7240 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
7242 }
catch (com.google.protobuf.UninitializedMessageException e) {
7243 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
7244 }
catch (java.io.IOException e) {
7245 throw new com.google.protobuf.InvalidProtocolBufferException(e)
7263 return DEFAULT_INSTANCE;
7270 com.google.protobuf.MessageOrBuilder {
7306 com.google.protobuf.GeneratedMessage implements
7309 private static final long serialVersionUID = 0L;
7311 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
7312 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
7326 public static final com.google.protobuf.Descriptors.Descriptor
7328 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_ImprovementSearchLimitParameters_descriptor;
7332 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7334 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_ImprovementSearchLimitParameters_fieldAccessorTable
7335 .ensureFieldAccessorsInitialized(
7336 com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.class, com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.Builder.class);
7340 private double improvementRateCoefficient_ = 0D;
7353 return improvementRateCoefficient_;
7357 private int improvementRateSolutionsDistance_ = 0;
7372 return improvementRateSolutionsDistance_;
7375 private byte memoizedIsInitialized = -1;
7382 memoizedIsInitialized = 1;
7387 public void writeTo(com.google.protobuf.CodedOutputStream output)
7388 throws java.io.IOException {
7389 if (java.lang.Double.doubleToRawLongBits(improvementRateCoefficient_) != 0) {
7390 output.writeDouble(38, improvementRateCoefficient_);
7392 if (improvementRateSolutionsDistance_ != 0) {
7393 output.writeInt32(39, improvementRateSolutionsDistance_);
7395 getUnknownFields().writeTo(output);
7400 int size = memoizedSize;
7401 if (size != -1)
return size;
7404 if (java.lang.Double.doubleToRawLongBits(improvementRateCoefficient_) != 0) {
7405 size += com.google.protobuf.CodedOutputStream
7406 .computeDoubleSize(38, improvementRateCoefficient_);
7408 if (improvementRateSolutionsDistance_ != 0) {
7409 size += com.google.protobuf.CodedOutputStream
7410 .computeInt32Size(39, improvementRateSolutionsDistance_);
7412 size += getUnknownFields().getSerializedSize();
7413 memoizedSize = size;
7418 public boolean equals(
final java.lang.Object obj) {
7422 if (!(obj instanceof com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters)) {
7423 return super.equals(obj);
7428 != java.lang.Double.doubleToLongBits(
7432 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
7438 if (memoizedHashCode != 0) {
7439 return memoizedHashCode;
7444 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
7448 hash = (29 * hash) + getUnknownFields().hashCode();
7449 memoizedHashCode = hash;
7454 java.nio.ByteBuffer data)
7455 throws com.google.protobuf.InvalidProtocolBufferException {
7459 java.nio.ByteBuffer data,
7460 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7461 throws com.google.protobuf.InvalidProtocolBufferException {
7462 return PARSER.
parseFrom(data, extensionRegistry);
7465 com.google.protobuf.ByteString data)
7466 throws com.google.protobuf.InvalidProtocolBufferException {
7470 com.google.protobuf.ByteString data,
7471 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7472 throws com.google.protobuf.InvalidProtocolBufferException {
7473 return PARSER.
parseFrom(data, extensionRegistry);
7476 throws com.google.protobuf.InvalidProtocolBufferException {
7481 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7482 throws com.google.protobuf.InvalidProtocolBufferException {
7483 return PARSER.
parseFrom(data, extensionRegistry);
7486 throws java.io.IOException {
7487 return com.google.protobuf.GeneratedMessage
7488 .parseWithIOException(PARSER, input);
7491 java.io.InputStream input,
7492 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7493 throws java.io.IOException {
7494 return com.google.protobuf.GeneratedMessage
7495 .parseWithIOException(PARSER, input, extensionRegistry);
7499 throws java.io.IOException {
7500 return com.google.protobuf.GeneratedMessage
7501 .parseDelimitedWithIOException(PARSER, input);
7505 java.io.InputStream input,
7506 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7507 throws java.io.IOException {
7508 return com.google.protobuf.GeneratedMessage
7509 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
7512 com.google.protobuf.CodedInputStream input)
7513 throws java.io.IOException {
7514 return com.google.protobuf.GeneratedMessage
7515 .parseWithIOException(PARSER, input);
7518 com.google.protobuf.CodedInputStream input,
7519 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7520 throws java.io.IOException {
7521 return com.google.protobuf.GeneratedMessage
7522 .parseWithIOException(PARSER, input, extensionRegistry);
7530 public static Builder newBuilder(com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters prototype) {
7535 return this == DEFAULT_INSTANCE
7541 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
7553 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
7556 public static final com.google.protobuf.Descriptors.Descriptor
7558 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_ImprovementSearchLimitParameters_descriptor;
7562 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7564 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_ImprovementSearchLimitParameters_fieldAccessorTable
7565 .ensureFieldAccessorsInitialized(
7566 com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.class, com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.Builder.class);
7575 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
7583 improvementRateCoefficient_ = 0D;
7584 improvementRateSolutionsDistance_ = 0;
7589 public com.google.protobuf.Descriptors.Descriptor
7591 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_ImprovementSearchLimitParameters_descriptor;
7596 return com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.getDefaultInstance();
7603 throw newUninitializedMessageException(result);
7611 if (bitField0_ != 0) { buildPartial0(result); }
7616 private void buildPartial0(com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters result) {
7617 int from_bitField0_ = bitField0_;
7618 if (((from_bitField0_ & 0x00000001) != 0)) {
7619 result.improvementRateCoefficient_ = improvementRateCoefficient_;
7621 if (((from_bitField0_ & 0x00000002) != 0)) {
7622 result.improvementRateSolutionsDistance_ = improvementRateSolutionsDistance_;
7628 if (other instanceof com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters) {
7629 return mergeFrom((com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters)other);
7631 super.mergeFrom(other);
7636 public Builder mergeFrom(com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters other) {
7637 if (other == com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.getDefaultInstance())
return this;
7638 if (other.getImprovementRateCoefficient() != 0D) {
7641 if (other.getImprovementRateSolutionsDistance() != 0) {
7644 this.mergeUnknownFields(other.getUnknownFields());
7656 com.google.protobuf.CodedInputStream input,
7657 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7658 throws java.io.IOException {
7659 if (extensionRegistry ==
null) {
7660 throw new java.lang.NullPointerException();
7663 boolean done =
false;
7665 int tag = input.readTag();
7671 improvementRateCoefficient_ = input.readDouble();
7672 bitField0_ |= 0x00000001;
7676 improvementRateSolutionsDistance_ = input.readInt32();
7677 bitField0_ |= 0x00000002;
7681 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
7688 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
7689 throw e.unwrapIOException();
7695 private int bitField0_;
7697 private double improvementRateCoefficient_ ;
7710 return improvementRateCoefficient_;
7725 improvementRateCoefficient_ = value;
7726 bitField0_ |= 0x00000001;
7741 bitField0_ = (bitField0_ & ~0x00000001);
7742 improvementRateCoefficient_ = 0D;
7747 private int improvementRateSolutionsDistance_ ;
7762 return improvementRateSolutionsDistance_;
7779 improvementRateSolutionsDistance_ = value;
7780 bitField0_ |= 0x00000002;
7797 bitField0_ = (bitField0_ & ~0x00000002);
7798 improvementRateSolutionsDistance_ = 0;
7809 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters();
7813 return DEFAULT_INSTANCE;
7820 com.google.protobuf.CodedInputStream input,
7821 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7822 throws com.google.protobuf.InvalidProtocolBufferException {
7825 builder.
mergeFrom(input, extensionRegistry);
7826 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
7828 }
catch (com.google.protobuf.UninitializedMessageException e) {
7829 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
7830 }
catch (java.io.IOException e) {
7831 throw new com.google.protobuf.InvalidProtocolBufferException(e)
7849 return DEFAULT_INSTANCE;
7854 private int bitField0_;
7856 private int firstSolutionStrategy_ = 0;
7866 return firstSolutionStrategy_;
7878 return result ==
null ? com.google.ortools.constraintsolver.FirstSolutionStrategy.Value.UNRECOGNIZED : result;
7882 private boolean useUnfilteredFirstSolutionStrategy_ =
false;
7896 return useUnfilteredFirstSolutionStrategy_;
7900 private double savingsNeighborsRatio_ = 0D;
7913 return savingsNeighborsRatio_;
7917 private double savingsMaxMemoryUsageBytes_ = 0D;
7933 return savingsMaxMemoryUsageBytes_;
7937 private boolean savingsAddReverseArcs_ =
false;
7949 return savingsAddReverseArcs_;
7953 private double savingsArcCoefficient_ = 0D;
7968 return savingsArcCoefficient_;
7972 private boolean savingsParallelRoutes_ =
false;
7983 return savingsParallelRoutes_;
7987 private double cheapestInsertionFarthestSeedsRatio_ = 0D;
8000 return cheapestInsertionFarthestSeedsRatio_;
8004 private double cheapestInsertionFirstSolutionNeighborsRatio_ = 0D;
8029 return cheapestInsertionFirstSolutionNeighborsRatio_;
8033 private int cheapestInsertionFirstSolutionMinNeighbors_ = 0;
8040 return cheapestInsertionFirstSolutionMinNeighbors_;
8044 private double cheapestInsertionLsOperatorNeighborsRatio_ = 0D;
8058 return cheapestInsertionLsOperatorNeighborsRatio_;
8062 private int cheapestInsertionLsOperatorMinNeighbors_ = 0;
8069 return cheapestInsertionLsOperatorMinNeighbors_;
8073 private boolean cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_ =
false;
8085 return cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_;
8089 private boolean cheapestInsertionAddUnperformedEntries_ =
false;
8101 return cheapestInsertionAddUnperformedEntries_;
8105 private int localCheapestInsertionPickupDeliveryStrategy_ = 0;
8116 return localCheapestInsertionPickupDeliveryStrategy_;
8129 return result ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.PairInsertionStrategy.UNRECOGNIZED : result;
8133 private int localCheapestCostInsertionPickupDeliveryStrategy_ = 0;
8144 return localCheapestCostInsertionPickupDeliveryStrategy_;
8157 return result ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.PairInsertionStrategy.UNRECOGNIZED : result;
8161 private boolean christofidesUseMinimumMatching_ =
false;
8173 return christofidesUseMinimumMatching_;
8177 private int firstSolutionOptimizationPeriod_ = 0;
8194 return firstSolutionOptimizationPeriod_;
8205 return ((bitField0_ & 0x00000001) != 0);
8213 return localSearchOperators_ ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.getDefaultInstance() : localSearchOperators_;
8220 return localSearchOperators_ ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.getDefaultInstance() : localSearchOperators_;
8224 private double lsOperatorNeighborsRatio_ = 0D;
8237 return lsOperatorNeighborsRatio_;
8241 private int lsOperatorMinNeighbors_ = 0;
8248 return lsOperatorMinNeighbors_;
8252 private boolean useMultiArmedBanditConcatenateOperators_ =
false;
8265 return useMultiArmedBanditConcatenateOperators_;
8269 private double multiArmedBanditCompoundOperatorMemoryCoefficient_ = 0D;
8283 return multiArmedBanditCompoundOperatorMemoryCoefficient_;
8287 private double multiArmedBanditCompoundOperatorExplorationCoefficient_ = 0D;
8300 return multiArmedBanditCompoundOperatorExplorationCoefficient_;
8304 private int relocateExpensiveChainNumArcsToConsider_ = 0;
8321 return relocateExpensiveChainNumArcsToConsider_;
8325 private int heuristicExpensiveChainLnsNumArcsToConsider_ = 0;
8337 return heuristicExpensiveChainLnsNumArcsToConsider_;
8341 private int heuristicCloseNodesLnsNumNodes_ = 0;
8353 return heuristicCloseNodesLnsNumNodes_;
8357 private int localSearchMetaheuristic_ = 0;
8367 return localSearchMetaheuristic_;
8379 return result ==
null ? com.google.ortools.constraintsolver.LocalSearchMetaheuristic.Value.UNRECOGNIZED : result;
8383 private double guidedLocalSearchLambdaCoefficient_ = 0D;
8397 return guidedLocalSearchLambdaCoefficient_;
8401 private boolean guidedLocalSearchResetPenaltiesOnNewBestSolution_ =
false;
8413 return guidedLocalSearchResetPenaltiesOnNewBestSolution_;
8417 private boolean useDepthFirstSearch_ =
false;
8431 return useDepthFirstSearch_;
8435 private int useCp_ = 0;
8461 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
8465 private int useCpSat_ = 0;
8493 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
8497 private int useGeneralizedCpSat_ = 0;
8510 return useGeneralizedCpSat_;
8525 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
8541 return ((bitField0_ & 0x00000002) != 0);
8554 return satParameters_ ==
null ? com.google.ortools.sat.SatParameters.getDefaultInstance() : satParameters_;
8566 return satParameters_ ==
null ? com.google.ortools.sat.SatParameters.getDefaultInstance() : satParameters_;
8570 private boolean reportIntermediateCpSatSolutions_ =
false;
8582 return reportIntermediateCpSatSolutions_;
8586 private int fallbackToCpSatSizeThreshold_ = 0;
8598 return fallbackToCpSatSizeThreshold_;
8602 private int continuousSchedulingSolver_ = 0;
8608 return continuousSchedulingSolver_;
8616 return result ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.SchedulingSolver.UNRECOGNIZED : result;
8620 private int mixedIntegerSchedulingSolver_ = 0;
8626 return mixedIntegerSchedulingSolver_;
8634 return result ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.SchedulingSolver.UNRECOGNIZED : result;
8638 private boolean disableSchedulingBewareThisMayDegradePerformance_ =
false;
8650 return ((bitField0_ & 0x00000004) != 0);
8663 return disableSchedulingBewareThisMayDegradePerformance_;
8667 private double optimizationStep_ = 0D;
8680 return optimizationStep_;
8684 private int numberOfSolutionsToCollect_ = 0;
8696 return numberOfSolutionsToCollect_;
8700 private long solutionLimit_ = 0L;
8713 return solutionLimit_;
8717 private com.google.protobuf.Duration timeLimit_;
8728 return ((bitField0_ & 0x00000008) != 0);
8740 return timeLimit_ ==
null ? com.google.protobuf.Duration.getDefaultInstance() : timeLimit_;
8751 return timeLimit_ ==
null ? com.google.protobuf.Duration.getDefaultInstance() : timeLimit_;
8755 private com.google.protobuf.Duration lnsTimeLimit_;
8767 return ((bitField0_ & 0x00000010) != 0);
8780 return lnsTimeLimit_ ==
null ? com.google.protobuf.Duration.getDefaultInstance() : lnsTimeLimit_;
8792 return lnsTimeLimit_ ==
null ? com.google.protobuf.Duration.getDefaultInstance() : lnsTimeLimit_;
8796 private double secondaryLsTimeLimitRatio_ = 0D;
8812 return secondaryLsTimeLimitRatio_;
8828 return ((bitField0_ & 0x00000020) != 0);
8841 return improvementLimitParameters_ ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.getDefaultInstance() : improvementLimitParameters_;
8853 return improvementLimitParameters_ ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.getDefaultInstance() : improvementLimitParameters_;
8857 private boolean useFullPropagation_ =
false;
8877 return useFullPropagation_;
8881 private boolean logSearch_ =
false;
8908 private double logCostScalingFactor_ = 0D;
8920 return logCostScalingFactor_;
8924 private double logCostOffset_ = 0D;
8931 return logCostOffset_;
8935 @SuppressWarnings(
"serial")
8936 private volatile java.lang.Object logTag_ = "";
8948 java.lang.Object ref = logTag_;
8949 if (ref instanceof java.lang.String) {
8950 return (java.lang.String) ref;
8952 com.google.protobuf.ByteString bs =
8953 (com.google.protobuf.ByteString) ref;
8954 java.lang.String s = bs.toStringUtf8();
8969 public com.google.protobuf.ByteString
8971 java.lang.Object ref = logTag_;
8972 if (ref instanceof java.lang.String) {
8973 com.google.protobuf.ByteString b =
8974 com.google.protobuf.ByteString.copyFromUtf8(
8975 (java.lang.String) ref);
8979 return (com.google.protobuf.ByteString) ref;
8984 private boolean useIteratedLocalSearch_ =
false;
8996 return useIteratedLocalSearch_;
9011 return ((bitField0_ & 0x00000040) != 0);
9037 private byte memoizedIsInitialized = -1;
9044 memoizedIsInitialized = 1;
9049 public void writeTo(com.google.protobuf.CodedOutputStream output)
9050 throws java.io.IOException {
9051 if (firstSolutionStrategy_ != com.google.ortools.constraintsolver.FirstSolutionStrategy.Value.UNSET.getNumber()) {
9052 output.writeEnum(1, firstSolutionStrategy_);
9054 if (useUnfilteredFirstSolutionStrategy_ !=
false) {
9055 output.writeBool(2, useUnfilteredFirstSolutionStrategy_);
9057 if (((bitField0_ & 0x00000001) != 0)) {
9060 if (localSearchMetaheuristic_ != com.google.ortools.constraintsolver.LocalSearchMetaheuristic.Value.UNSET.getNumber()) {
9061 output.writeEnum(4, localSearchMetaheuristic_);
9063 if (java.lang.Double.doubleToRawLongBits(guidedLocalSearchLambdaCoefficient_) != 0) {
9064 output.writeDouble(5, guidedLocalSearchLambdaCoefficient_);
9066 if (useDepthFirstSearch_ !=
false) {
9067 output.writeBool(6, useDepthFirstSearch_);
9069 if (java.lang.Double.doubleToRawLongBits(optimizationStep_) != 0) {
9070 output.writeDouble(7, optimizationStep_);
9072 if (solutionLimit_ != 0L) {
9073 output.writeInt64(8, solutionLimit_);
9075 if (((bitField0_ & 0x00000008) != 0)) {
9078 if (((bitField0_ & 0x00000010) != 0)) {
9081 if (useFullPropagation_ !=
false) {
9082 output.writeBool(11, useFullPropagation_);
9084 if (logSearch_ !=
false) {
9085 output.writeBool(13, logSearch_);
9087 if (java.lang.Double.doubleToRawLongBits(savingsNeighborsRatio_) != 0) {
9088 output.writeDouble(14, savingsNeighborsRatio_);
9090 if (savingsAddReverseArcs_ !=
false) {
9091 output.writeBool(15, savingsAddReverseArcs_);
9093 if (java.lang.Double.doubleToRawLongBits(cheapestInsertionFarthestSeedsRatio_) != 0) {
9094 output.writeDouble(16, cheapestInsertionFarthestSeedsRatio_);
9096 if (numberOfSolutionsToCollect_ != 0) {
9097 output.writeInt32(17, numberOfSolutionsToCollect_);
9099 if (java.lang.Double.doubleToRawLongBits(savingsArcCoefficient_) != 0) {
9100 output.writeDouble(18, savingsArcCoefficient_);
9102 if (savingsParallelRoutes_ !=
false) {
9103 output.writeBool(19, savingsParallelRoutes_);
9105 if (relocateExpensiveChainNumArcsToConsider_ != 0) {
9106 output.writeInt32(20, relocateExpensiveChainNumArcsToConsider_);
9108 if (java.lang.Double.doubleToRawLongBits(cheapestInsertionFirstSolutionNeighborsRatio_) != 0) {
9109 output.writeDouble(21, cheapestInsertionFirstSolutionNeighborsRatio_);
9111 if (java.lang.Double.doubleToRawLongBits(logCostScalingFactor_) != 0) {
9112 output.writeDouble(22, logCostScalingFactor_);
9114 if (java.lang.Double.doubleToRawLongBits(savingsMaxMemoryUsageBytes_) != 0) {
9115 output.writeDouble(23, savingsMaxMemoryUsageBytes_);
9117 if (useCpSat_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
9118 output.writeEnum(27, useCpSat_);
9120 if (useCp_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
9121 output.writeEnum(28, useCp_);
9123 if (java.lang.Double.doubleToRawLongBits(logCostOffset_) != 0) {
9124 output.writeDouble(29, logCostOffset_);
9126 if (christofidesUseMinimumMatching_ !=
false) {
9127 output.writeBool(30, christofidesUseMinimumMatching_);
9129 if (java.lang.Double.doubleToRawLongBits(cheapestInsertionLsOperatorNeighborsRatio_) != 0) {
9130 output.writeDouble(31, cheapestInsertionLsOperatorNeighborsRatio_);
9132 if (heuristicExpensiveChainLnsNumArcsToConsider_ != 0) {
9133 output.writeInt32(32, heuristicExpensiveChainLnsNumArcsToConsider_);
9135 if (continuousSchedulingSolver_ != com.google.ortools.constraintsolver.RoutingSearchParameters.SchedulingSolver.SCHEDULING_UNSET.getNumber()) {
9136 output.writeEnum(33, continuousSchedulingSolver_);
9138 if (mixedIntegerSchedulingSolver_ != com.google.ortools.constraintsolver.RoutingSearchParameters.SchedulingSolver.SCHEDULING_UNSET.getNumber()) {
9139 output.writeEnum(34, mixedIntegerSchedulingSolver_);
9141 if (heuristicCloseNodesLnsNumNodes_ != 0) {
9142 output.writeInt32(35, heuristicCloseNodesLnsNumNodes_);
9144 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logTag_)) {
9145 com.google.protobuf.GeneratedMessage.writeString(output, 36, logTag_);
9147 if (((bitField0_ & 0x00000020) != 0)) {
9150 if (cheapestInsertionAddUnperformedEntries_ !=
false) {
9151 output.writeBool(40, cheapestInsertionAddUnperformedEntries_);
9153 if (useMultiArmedBanditConcatenateOperators_ !=
false) {
9154 output.writeBool(41, useMultiArmedBanditConcatenateOperators_);
9156 if (java.lang.Double.doubleToRawLongBits(multiArmedBanditCompoundOperatorMemoryCoefficient_) != 0) {
9157 output.writeDouble(42, multiArmedBanditCompoundOperatorMemoryCoefficient_);
9159 if (java.lang.Double.doubleToRawLongBits(multiArmedBanditCompoundOperatorExplorationCoefficient_) != 0) {
9160 output.writeDouble(43, multiArmedBanditCompoundOperatorExplorationCoefficient_);
9162 if (cheapestInsertionFirstSolutionMinNeighbors_ != 0) {
9163 output.writeInt32(44, cheapestInsertionFirstSolutionMinNeighbors_);
9165 if (cheapestInsertionLsOperatorMinNeighbors_ != 0) {
9166 output.writeInt32(45, cheapestInsertionLsOperatorMinNeighbors_);
9168 if (cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_ !=
false) {
9169 output.writeBool(46, cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_);
9171 if (useGeneralizedCpSat_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
9172 output.writeEnum(47, useGeneralizedCpSat_);
9174 if (((bitField0_ & 0x00000002) != 0)) {
9177 if (localCheapestInsertionPickupDeliveryStrategy_ != com.google.ortools.constraintsolver.RoutingSearchParameters.PairInsertionStrategy.AUTOMATIC.getNumber()) {
9178 output.writeEnum(49, localCheapestInsertionPickupDeliveryStrategy_);
9180 if (((bitField0_ & 0x00000004) != 0)) {
9181 output.writeBool(50, disableSchedulingBewareThisMayDegradePerformance_);
9183 if (guidedLocalSearchResetPenaltiesOnNewBestSolution_ !=
false) {
9184 output.writeBool(51, guidedLocalSearchResetPenaltiesOnNewBestSolution_);
9186 if (fallbackToCpSatSizeThreshold_ != 0) {
9187 output.writeInt32(52, fallbackToCpSatSizeThreshold_);
9189 if (java.lang.Double.doubleToRawLongBits(lsOperatorNeighborsRatio_) != 0) {
9190 output.writeDouble(53, lsOperatorNeighborsRatio_);
9192 if (lsOperatorMinNeighbors_ != 0) {
9193 output.writeInt32(54, lsOperatorMinNeighbors_);
9195 if (localCheapestCostInsertionPickupDeliveryStrategy_ != com.google.ortools.constraintsolver.RoutingSearchParameters.PairInsertionStrategy.AUTOMATIC.getNumber()) {
9196 output.writeEnum(55, localCheapestCostInsertionPickupDeliveryStrategy_);
9198 if (reportIntermediateCpSatSolutions_ !=
false) {
9199 output.writeBool(56, reportIntermediateCpSatSolutions_);
9201 if (java.lang.Double.doubleToRawLongBits(secondaryLsTimeLimitRatio_) != 0) {
9202 output.writeDouble(57, secondaryLsTimeLimitRatio_);
9204 if (useIteratedLocalSearch_ !=
false) {
9205 output.writeBool(58, useIteratedLocalSearch_);
9207 if (firstSolutionOptimizationPeriod_ != 0) {
9208 output.writeInt32(59, firstSolutionOptimizationPeriod_);
9210 if (((bitField0_ & 0x00000040) != 0)) {
9213 getUnknownFields().writeTo(output);
9218 int size = memoizedSize;
9219 if (size != -1)
return size;
9222 if (firstSolutionStrategy_ != com.google.ortools.constraintsolver.FirstSolutionStrategy.Value.UNSET.getNumber()) {
9223 size += com.google.protobuf.CodedOutputStream
9224 .computeEnumSize(1, firstSolutionStrategy_);
9226 if (useUnfilteredFirstSolutionStrategy_ !=
false) {
9227 size += com.google.protobuf.CodedOutputStream
9228 .computeBoolSize(2, useUnfilteredFirstSolutionStrategy_);
9230 if (((bitField0_ & 0x00000001) != 0)) {
9231 size += com.google.protobuf.CodedOutputStream
9234 if (localSearchMetaheuristic_ != com.google.ortools.constraintsolver.LocalSearchMetaheuristic.Value.UNSET.getNumber()) {
9235 size += com.google.protobuf.CodedOutputStream
9236 .computeEnumSize(4, localSearchMetaheuristic_);
9238 if (java.lang.Double.doubleToRawLongBits(guidedLocalSearchLambdaCoefficient_) != 0) {
9239 size += com.google.protobuf.CodedOutputStream
9240 .computeDoubleSize(5, guidedLocalSearchLambdaCoefficient_);
9242 if (useDepthFirstSearch_ !=
false) {
9243 size += com.google.protobuf.CodedOutputStream
9244 .computeBoolSize(6, useDepthFirstSearch_);
9246 if (java.lang.Double.doubleToRawLongBits(optimizationStep_) != 0) {
9247 size += com.google.protobuf.CodedOutputStream
9248 .computeDoubleSize(7, optimizationStep_);
9250 if (solutionLimit_ != 0L) {
9251 size += com.google.protobuf.CodedOutputStream
9252 .computeInt64Size(8, solutionLimit_);
9254 if (((bitField0_ & 0x00000008) != 0)) {
9255 size += com.google.protobuf.CodedOutputStream
9258 if (((bitField0_ & 0x00000010) != 0)) {
9259 size += com.google.protobuf.CodedOutputStream
9262 if (useFullPropagation_ !=
false) {
9263 size += com.google.protobuf.CodedOutputStream
9264 .computeBoolSize(11, useFullPropagation_);
9266 if (logSearch_ !=
false) {
9267 size += com.google.protobuf.CodedOutputStream
9268 .computeBoolSize(13, logSearch_);
9270 if (java.lang.Double.doubleToRawLongBits(savingsNeighborsRatio_) != 0) {
9271 size += com.google.protobuf.CodedOutputStream
9272 .computeDoubleSize(14, savingsNeighborsRatio_);
9274 if (savingsAddReverseArcs_ !=
false) {
9275 size += com.google.protobuf.CodedOutputStream
9276 .computeBoolSize(15, savingsAddReverseArcs_);
9278 if (java.lang.Double.doubleToRawLongBits(cheapestInsertionFarthestSeedsRatio_) != 0) {
9279 size += com.google.protobuf.CodedOutputStream
9280 .computeDoubleSize(16, cheapestInsertionFarthestSeedsRatio_);
9282 if (numberOfSolutionsToCollect_ != 0) {
9283 size += com.google.protobuf.CodedOutputStream
9284 .computeInt32Size(17, numberOfSolutionsToCollect_);
9286 if (java.lang.Double.doubleToRawLongBits(savingsArcCoefficient_) != 0) {
9287 size += com.google.protobuf.CodedOutputStream
9288 .computeDoubleSize(18, savingsArcCoefficient_);
9290 if (savingsParallelRoutes_ !=
false) {
9291 size += com.google.protobuf.CodedOutputStream
9292 .computeBoolSize(19, savingsParallelRoutes_);
9294 if (relocateExpensiveChainNumArcsToConsider_ != 0) {
9295 size += com.google.protobuf.CodedOutputStream
9296 .computeInt32Size(20, relocateExpensiveChainNumArcsToConsider_);
9298 if (java.lang.Double.doubleToRawLongBits(cheapestInsertionFirstSolutionNeighborsRatio_) != 0) {
9299 size += com.google.protobuf.CodedOutputStream
9300 .computeDoubleSize(21, cheapestInsertionFirstSolutionNeighborsRatio_);
9302 if (java.lang.Double.doubleToRawLongBits(logCostScalingFactor_) != 0) {
9303 size += com.google.protobuf.CodedOutputStream
9304 .computeDoubleSize(22, logCostScalingFactor_);
9306 if (java.lang.Double.doubleToRawLongBits(savingsMaxMemoryUsageBytes_) != 0) {
9307 size += com.google.protobuf.CodedOutputStream
9308 .computeDoubleSize(23, savingsMaxMemoryUsageBytes_);
9310 if (useCpSat_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
9311 size += com.google.protobuf.CodedOutputStream
9312 .computeEnumSize(27, useCpSat_);
9314 if (useCp_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
9315 size += com.google.protobuf.CodedOutputStream
9316 .computeEnumSize(28, useCp_);
9318 if (java.lang.Double.doubleToRawLongBits(logCostOffset_) != 0) {
9319 size += com.google.protobuf.CodedOutputStream
9320 .computeDoubleSize(29, logCostOffset_);
9322 if (christofidesUseMinimumMatching_ !=
false) {
9323 size += com.google.protobuf.CodedOutputStream
9324 .computeBoolSize(30, christofidesUseMinimumMatching_);
9326 if (java.lang.Double.doubleToRawLongBits(cheapestInsertionLsOperatorNeighborsRatio_) != 0) {
9327 size += com.google.protobuf.CodedOutputStream
9328 .computeDoubleSize(31, cheapestInsertionLsOperatorNeighborsRatio_);
9330 if (heuristicExpensiveChainLnsNumArcsToConsider_ != 0) {
9331 size += com.google.protobuf.CodedOutputStream
9332 .computeInt32Size(32, heuristicExpensiveChainLnsNumArcsToConsider_);
9334 if (continuousSchedulingSolver_ != com.google.ortools.constraintsolver.RoutingSearchParameters.SchedulingSolver.SCHEDULING_UNSET.getNumber()) {
9335 size += com.google.protobuf.CodedOutputStream
9336 .computeEnumSize(33, continuousSchedulingSolver_);
9338 if (mixedIntegerSchedulingSolver_ != com.google.ortools.constraintsolver.RoutingSearchParameters.SchedulingSolver.SCHEDULING_UNSET.getNumber()) {
9339 size += com.google.protobuf.CodedOutputStream
9340 .computeEnumSize(34, mixedIntegerSchedulingSolver_);
9342 if (heuristicCloseNodesLnsNumNodes_ != 0) {
9343 size += com.google.protobuf.CodedOutputStream
9344 .computeInt32Size(35, heuristicCloseNodesLnsNumNodes_);
9346 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logTag_)) {
9347 size += com.google.protobuf.GeneratedMessage.computeStringSize(36, logTag_);
9349 if (((bitField0_ & 0x00000020) != 0)) {
9350 size += com.google.protobuf.CodedOutputStream
9353 if (cheapestInsertionAddUnperformedEntries_ !=
false) {
9354 size += com.google.protobuf.CodedOutputStream
9355 .computeBoolSize(40, cheapestInsertionAddUnperformedEntries_);
9357 if (useMultiArmedBanditConcatenateOperators_ !=
false) {
9358 size += com.google.protobuf.CodedOutputStream
9359 .computeBoolSize(41, useMultiArmedBanditConcatenateOperators_);
9361 if (java.lang.Double.doubleToRawLongBits(multiArmedBanditCompoundOperatorMemoryCoefficient_) != 0) {
9362 size += com.google.protobuf.CodedOutputStream
9363 .computeDoubleSize(42, multiArmedBanditCompoundOperatorMemoryCoefficient_);
9365 if (java.lang.Double.doubleToRawLongBits(multiArmedBanditCompoundOperatorExplorationCoefficient_) != 0) {
9366 size += com.google.protobuf.CodedOutputStream
9367 .computeDoubleSize(43, multiArmedBanditCompoundOperatorExplorationCoefficient_);
9369 if (cheapestInsertionFirstSolutionMinNeighbors_ != 0) {
9370 size += com.google.protobuf.CodedOutputStream
9371 .computeInt32Size(44, cheapestInsertionFirstSolutionMinNeighbors_);
9373 if (cheapestInsertionLsOperatorMinNeighbors_ != 0) {
9374 size += com.google.protobuf.CodedOutputStream
9375 .computeInt32Size(45, cheapestInsertionLsOperatorMinNeighbors_);
9377 if (cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_ !=
false) {
9378 size += com.google.protobuf.CodedOutputStream
9379 .computeBoolSize(46, cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_);
9381 if (useGeneralizedCpSat_ != com.google.ortools.util.OptionalBoolean.BOOL_UNSPECIFIED.getNumber()) {
9382 size += com.google.protobuf.CodedOutputStream
9383 .computeEnumSize(47, useGeneralizedCpSat_);
9385 if (((bitField0_ & 0x00000002) != 0)) {
9386 size += com.google.protobuf.CodedOutputStream
9389 if (localCheapestInsertionPickupDeliveryStrategy_ != com.google.ortools.constraintsolver.RoutingSearchParameters.PairInsertionStrategy.AUTOMATIC.getNumber()) {
9390 size += com.google.protobuf.CodedOutputStream
9391 .computeEnumSize(49, localCheapestInsertionPickupDeliveryStrategy_);
9393 if (((bitField0_ & 0x00000004) != 0)) {
9394 size += com.google.protobuf.CodedOutputStream
9395 .computeBoolSize(50, disableSchedulingBewareThisMayDegradePerformance_);
9397 if (guidedLocalSearchResetPenaltiesOnNewBestSolution_ !=
false) {
9398 size += com.google.protobuf.CodedOutputStream
9399 .computeBoolSize(51, guidedLocalSearchResetPenaltiesOnNewBestSolution_);
9401 if (fallbackToCpSatSizeThreshold_ != 0) {
9402 size += com.google.protobuf.CodedOutputStream
9403 .computeInt32Size(52, fallbackToCpSatSizeThreshold_);
9405 if (java.lang.Double.doubleToRawLongBits(lsOperatorNeighborsRatio_) != 0) {
9406 size += com.google.protobuf.CodedOutputStream
9407 .computeDoubleSize(53, lsOperatorNeighborsRatio_);
9409 if (lsOperatorMinNeighbors_ != 0) {
9410 size += com.google.protobuf.CodedOutputStream
9411 .computeInt32Size(54, lsOperatorMinNeighbors_);
9413 if (localCheapestCostInsertionPickupDeliveryStrategy_ != com.google.ortools.constraintsolver.RoutingSearchParameters.PairInsertionStrategy.AUTOMATIC.getNumber()) {
9414 size += com.google.protobuf.CodedOutputStream
9415 .computeEnumSize(55, localCheapestCostInsertionPickupDeliveryStrategy_);
9417 if (reportIntermediateCpSatSolutions_ !=
false) {
9418 size += com.google.protobuf.CodedOutputStream
9419 .computeBoolSize(56, reportIntermediateCpSatSolutions_);
9421 if (java.lang.Double.doubleToRawLongBits(secondaryLsTimeLimitRatio_) != 0) {
9422 size += com.google.protobuf.CodedOutputStream
9423 .computeDoubleSize(57, secondaryLsTimeLimitRatio_);
9425 if (useIteratedLocalSearch_ !=
false) {
9426 size += com.google.protobuf.CodedOutputStream
9427 .computeBoolSize(58, useIteratedLocalSearch_);
9429 if (firstSolutionOptimizationPeriod_ != 0) {
9430 size += com.google.protobuf.CodedOutputStream
9431 .computeInt32Size(59, firstSolutionOptimizationPeriod_);
9433 if (((bitField0_ & 0x00000040) != 0)) {
9434 size += com.google.protobuf.CodedOutputStream
9437 size += getUnknownFields().getSerializedSize();
9438 memoizedSize = size;
9443 public boolean equals(
final java.lang.Object obj) {
9447 if (!(obj instanceof com.google.ortools.constraintsolver.RoutingSearchParameters)) {
9448 return super.equals(obj);
9452 if (firstSolutionStrategy_ != other.firstSolutionStrategy_)
return false;
9456 != java.lang.Double.doubleToLongBits(
9459 != java.lang.Double.doubleToLongBits(
9464 != java.lang.Double.doubleToLongBits(
9469 != java.lang.Double.doubleToLongBits(
9472 != java.lang.Double.doubleToLongBits(
9477 != java.lang.Double.doubleToLongBits(
9485 if (localCheapestInsertionPickupDeliveryStrategy_ != other.localCheapestInsertionPickupDeliveryStrategy_)
return false;
9486 if (localCheapestCostInsertionPickupDeliveryStrategy_ != other.localCheapestCostInsertionPickupDeliveryStrategy_)
return false;
9497 != java.lang.Double.doubleToLongBits(
9504 != java.lang.Double.doubleToLongBits(
9507 != java.lang.Double.doubleToLongBits(
9515 if (localSearchMetaheuristic_ != other.localSearchMetaheuristic_)
return false;
9517 != java.lang.Double.doubleToLongBits(
9523 if (useCp_ != other.useCp_)
return false;
9524 if (useCpSat_ != other.useCpSat_)
return false;
9525 if (useGeneralizedCpSat_ != other.useGeneralizedCpSat_)
return false;
9535 if (continuousSchedulingSolver_ != other.continuousSchedulingSolver_)
return false;
9536 if (mixedIntegerSchedulingSolver_ != other.mixedIntegerSchedulingSolver_)
return false;
9543 != java.lang.Double.doubleToLongBits(
9560 != java.lang.Double.doubleToLongBits(
9572 != java.lang.Double.doubleToLongBits(
9575 != java.lang.Double.doubleToLongBits(
9586 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
9592 if (memoizedHashCode != 0) {
9593 return memoizedHashCode;
9598 hash = (53 * hash) + firstSolutionStrategy_;
9600 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9603 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9606 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9609 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9612 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9615 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9618 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9621 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9626 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9631 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9634 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9637 hash = (53 * hash) + localCheapestInsertionPickupDeliveryStrategy_;
9639 hash = (53 * hash) + localCheapestCostInsertionPickupDeliveryStrategy_;
9641 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9650 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9655 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9658 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9661 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9670 hash = (53 * hash) + localSearchMetaheuristic_;
9672 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9675 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9678 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9681 hash = (53 * hash) + useCp_;
9683 hash = (53 * hash) + useCpSat_;
9685 hash = (53 * hash) + useGeneralizedCpSat_;
9691 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9696 hash = (53 * hash) + continuousSchedulingSolver_;
9698 hash = (53 * hash) + mixedIntegerSchedulingSolver_;
9701 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9705 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9710 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9721 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9728 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9731 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9734 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9737 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
9740 hash = (53 * hash) +
getLogTag().hashCode();
9742 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
9748 hash = (29 * hash) + getUnknownFields().hashCode();
9749 memoizedHashCode = hash;
9754 java.nio.ByteBuffer data)
9755 throws com.google.protobuf.InvalidProtocolBufferException {
9759 java.nio.ByteBuffer data,
9760 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9761 throws com.google.protobuf.InvalidProtocolBufferException {
9762 return PARSER.
parseFrom(data, extensionRegistry);
9765 com.google.protobuf.ByteString data)
9766 throws com.google.protobuf.InvalidProtocolBufferException {
9770 com.google.protobuf.ByteString data,
9771 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9772 throws com.google.protobuf.InvalidProtocolBufferException {
9773 return PARSER.
parseFrom(data, extensionRegistry);
9776 throws com.google.protobuf.InvalidProtocolBufferException {
9781 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9782 throws com.google.protobuf.InvalidProtocolBufferException {
9783 return PARSER.
parseFrom(data, extensionRegistry);
9786 throws java.io.IOException {
9787 return com.google.protobuf.GeneratedMessage
9788 .parseWithIOException(PARSER, input);
9791 java.io.InputStream input,
9792 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9793 throws java.io.IOException {
9794 return com.google.protobuf.GeneratedMessage
9795 .parseWithIOException(PARSER, input, extensionRegistry);
9799 throws java.io.IOException {
9800 return com.google.protobuf.GeneratedMessage
9801 .parseDelimitedWithIOException(PARSER, input);
9805 java.io.InputStream input,
9806 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9807 throws java.io.IOException {
9808 return com.google.protobuf.GeneratedMessage
9809 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
9812 com.google.protobuf.CodedInputStream input)
9813 throws java.io.IOException {
9814 return com.google.protobuf.GeneratedMessage
9815 .parseWithIOException(PARSER, input);
9818 com.google.protobuf.CodedInputStream input,
9819 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9820 throws java.io.IOException {
9821 return com.google.protobuf.GeneratedMessage
9822 .parseWithIOException(PARSER, input, extensionRegistry);
9830 public static Builder newBuilder(com.google.ortools.constraintsolver.RoutingSearchParameters prototype) {
9835 return this == DEFAULT_INSTANCE
9841 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
9859 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
9862 public static final com.google.protobuf.Descriptors.Descriptor
9864 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_descriptor;
9868 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
9870 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_fieldAccessorTable
9871 .ensureFieldAccessorsInitialized(
9872 com.google.ortools.constraintsolver.RoutingSearchParameters.class, com.google.ortools.constraintsolver.RoutingSearchParameters.Builder.class);
9877 maybeForceBuilderInitialization();
9881 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
9883 maybeForceBuilderInitialization();
9885 private void maybeForceBuilderInitialization() {
9886 if (com.google.protobuf.GeneratedMessage
9887 .alwaysUseFieldBuilders) {
9888 getLocalSearchOperatorsFieldBuilder();
9889 getSatParametersFieldBuilder();
9890 getTimeLimitFieldBuilder();
9891 getLnsTimeLimitFieldBuilder();
9892 getImprovementLimitParametersFieldBuilder();
9893 getIteratedLocalSearchParametersFieldBuilder();
9901 firstSolutionStrategy_ = 0;
9902 useUnfilteredFirstSolutionStrategy_ =
false;
9903 savingsNeighborsRatio_ = 0D;
9904 savingsMaxMemoryUsageBytes_ = 0D;
9905 savingsAddReverseArcs_ =
false;
9906 savingsArcCoefficient_ = 0D;
9907 savingsParallelRoutes_ =
false;
9908 cheapestInsertionFarthestSeedsRatio_ = 0D;
9909 cheapestInsertionFirstSolutionNeighborsRatio_ = 0D;
9910 cheapestInsertionFirstSolutionMinNeighbors_ = 0;
9911 cheapestInsertionLsOperatorNeighborsRatio_ = 0D;
9912 cheapestInsertionLsOperatorMinNeighbors_ = 0;
9913 cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_ =
false;
9914 cheapestInsertionAddUnperformedEntries_ =
false;
9915 localCheapestInsertionPickupDeliveryStrategy_ = 0;
9916 localCheapestCostInsertionPickupDeliveryStrategy_ = 0;
9917 christofidesUseMinimumMatching_ =
false;
9918 firstSolutionOptimizationPeriod_ = 0;
9919 localSearchOperators_ =
null;
9920 if (localSearchOperatorsBuilder_ !=
null) {
9921 localSearchOperatorsBuilder_.dispose();
9922 localSearchOperatorsBuilder_ =
null;
9924 lsOperatorNeighborsRatio_ = 0D;
9925 lsOperatorMinNeighbors_ = 0;
9926 useMultiArmedBanditConcatenateOperators_ =
false;
9927 multiArmedBanditCompoundOperatorMemoryCoefficient_ = 0D;
9928 multiArmedBanditCompoundOperatorExplorationCoefficient_ = 0D;
9929 relocateExpensiveChainNumArcsToConsider_ = 0;
9930 heuristicExpensiveChainLnsNumArcsToConsider_ = 0;
9931 heuristicCloseNodesLnsNumNodes_ = 0;
9932 localSearchMetaheuristic_ = 0;
9933 guidedLocalSearchLambdaCoefficient_ = 0D;
9934 guidedLocalSearchResetPenaltiesOnNewBestSolution_ =
false;
9935 useDepthFirstSearch_ =
false;
9938 useGeneralizedCpSat_ = 0;
9939 satParameters_ =
null;
9940 if (satParametersBuilder_ !=
null) {
9941 satParametersBuilder_.dispose();
9942 satParametersBuilder_ =
null;
9944 reportIntermediateCpSatSolutions_ =
false;
9945 fallbackToCpSatSizeThreshold_ = 0;
9946 continuousSchedulingSolver_ = 0;
9947 mixedIntegerSchedulingSolver_ = 0;
9948 disableSchedulingBewareThisMayDegradePerformance_ =
false;
9949 optimizationStep_ = 0D;
9950 numberOfSolutionsToCollect_ = 0;
9951 solutionLimit_ = 0L;
9953 if (timeLimitBuilder_ !=
null) {
9954 timeLimitBuilder_.dispose();
9955 timeLimitBuilder_ =
null;
9957 lnsTimeLimit_ =
null;
9958 if (lnsTimeLimitBuilder_ !=
null) {
9959 lnsTimeLimitBuilder_.dispose();
9960 lnsTimeLimitBuilder_ =
null;
9962 secondaryLsTimeLimitRatio_ = 0D;
9963 improvementLimitParameters_ =
null;
9964 if (improvementLimitParametersBuilder_ !=
null) {
9965 improvementLimitParametersBuilder_.dispose();
9966 improvementLimitParametersBuilder_ =
null;
9968 useFullPropagation_ =
false;
9970 logCostScalingFactor_ = 0D;
9971 logCostOffset_ = 0D;
9973 useIteratedLocalSearch_ =
false;
9974 iteratedLocalSearchParameters_ =
null;
9975 if (iteratedLocalSearchParametersBuilder_ !=
null) {
9976 iteratedLocalSearchParametersBuilder_.dispose();
9977 iteratedLocalSearchParametersBuilder_ =
null;
9983 public com.google.protobuf.Descriptors.Descriptor
9985 return com.google.ortools.constraintsolver.RoutingParameters.internal_static_operations_research_RoutingSearchParameters_descriptor;
9990 return com.google.ortools.constraintsolver.RoutingSearchParameters.getDefaultInstance();
9997 throw newUninitializedMessageException(result);
10002 @java.lang.Override
10005 if (bitField0_ != 0) { buildPartial0(result); }
10006 if (bitField1_ != 0) { buildPartial1(result); }
10011 private void buildPartial0(com.google.ortools.constraintsolver.RoutingSearchParameters result) {
10012 int from_bitField0_ = bitField0_;
10013 if (((from_bitField0_ & 0x00000001) != 0)) {
10014 result.firstSolutionStrategy_ = firstSolutionStrategy_;
10016 if (((from_bitField0_ & 0x00000002) != 0)) {
10017 result.useUnfilteredFirstSolutionStrategy_ = useUnfilteredFirstSolutionStrategy_;
10019 if (((from_bitField0_ & 0x00000004) != 0)) {
10020 result.savingsNeighborsRatio_ = savingsNeighborsRatio_;
10022 if (((from_bitField0_ & 0x00000008) != 0)) {
10023 result.savingsMaxMemoryUsageBytes_ = savingsMaxMemoryUsageBytes_;
10025 if (((from_bitField0_ & 0x00000010) != 0)) {
10026 result.savingsAddReverseArcs_ = savingsAddReverseArcs_;
10028 if (((from_bitField0_ & 0x00000020) != 0)) {
10029 result.savingsArcCoefficient_ = savingsArcCoefficient_;
10031 if (((from_bitField0_ & 0x00000040) != 0)) {
10032 result.savingsParallelRoutes_ = savingsParallelRoutes_;
10034 if (((from_bitField0_ & 0x00000080) != 0)) {
10035 result.cheapestInsertionFarthestSeedsRatio_ = cheapestInsertionFarthestSeedsRatio_;
10037 if (((from_bitField0_ & 0x00000100) != 0)) {
10038 result.cheapestInsertionFirstSolutionNeighborsRatio_ = cheapestInsertionFirstSolutionNeighborsRatio_;
10040 if (((from_bitField0_ & 0x00000200) != 0)) {
10041 result.cheapestInsertionFirstSolutionMinNeighbors_ = cheapestInsertionFirstSolutionMinNeighbors_;
10043 if (((from_bitField0_ & 0x00000400) != 0)) {
10044 result.cheapestInsertionLsOperatorNeighborsRatio_ = cheapestInsertionLsOperatorNeighborsRatio_;
10046 if (((from_bitField0_ & 0x00000800) != 0)) {
10047 result.cheapestInsertionLsOperatorMinNeighbors_ = cheapestInsertionLsOperatorMinNeighbors_;
10049 if (((from_bitField0_ & 0x00001000) != 0)) {
10050 result.cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_ = cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_;
10052 if (((from_bitField0_ & 0x00002000) != 0)) {
10053 result.cheapestInsertionAddUnperformedEntries_ = cheapestInsertionAddUnperformedEntries_;
10055 if (((from_bitField0_ & 0x00004000) != 0)) {
10056 result.localCheapestInsertionPickupDeliveryStrategy_ = localCheapestInsertionPickupDeliveryStrategy_;
10058 if (((from_bitField0_ & 0x00008000) != 0)) {
10059 result.localCheapestCostInsertionPickupDeliveryStrategy_ = localCheapestCostInsertionPickupDeliveryStrategy_;
10061 if (((from_bitField0_ & 0x00010000) != 0)) {
10062 result.christofidesUseMinimumMatching_ = christofidesUseMinimumMatching_;
10064 if (((from_bitField0_ & 0x00020000) != 0)) {
10065 result.firstSolutionOptimizationPeriod_ = firstSolutionOptimizationPeriod_;
10067 int to_bitField0_ = 0;
10068 if (((from_bitField0_ & 0x00040000) != 0)) {
10069 result.localSearchOperators_ = localSearchOperatorsBuilder_ ==
null
10070 ? localSearchOperators_
10071 : localSearchOperatorsBuilder_.build();
10072 to_bitField0_ |= 0x00000001;
10074 if (((from_bitField0_ & 0x00080000) != 0)) {
10075 result.lsOperatorNeighborsRatio_ = lsOperatorNeighborsRatio_;
10077 if (((from_bitField0_ & 0x00100000) != 0)) {
10078 result.lsOperatorMinNeighbors_ = lsOperatorMinNeighbors_;
10080 if (((from_bitField0_ & 0x00200000) != 0)) {
10081 result.useMultiArmedBanditConcatenateOperators_ = useMultiArmedBanditConcatenateOperators_;
10083 if (((from_bitField0_ & 0x00400000) != 0)) {
10084 result.multiArmedBanditCompoundOperatorMemoryCoefficient_ = multiArmedBanditCompoundOperatorMemoryCoefficient_;
10086 if (((from_bitField0_ & 0x00800000) != 0)) {
10087 result.multiArmedBanditCompoundOperatorExplorationCoefficient_ = multiArmedBanditCompoundOperatorExplorationCoefficient_;
10089 if (((from_bitField0_ & 0x01000000) != 0)) {
10090 result.relocateExpensiveChainNumArcsToConsider_ = relocateExpensiveChainNumArcsToConsider_;
10092 if (((from_bitField0_ & 0x02000000) != 0)) {
10093 result.heuristicExpensiveChainLnsNumArcsToConsider_ = heuristicExpensiveChainLnsNumArcsToConsider_;
10095 if (((from_bitField0_ & 0x04000000) != 0)) {
10096 result.heuristicCloseNodesLnsNumNodes_ = heuristicCloseNodesLnsNumNodes_;
10098 if (((from_bitField0_ & 0x08000000) != 0)) {
10099 result.localSearchMetaheuristic_ = localSearchMetaheuristic_;
10101 if (((from_bitField0_ & 0x10000000) != 0)) {
10102 result.guidedLocalSearchLambdaCoefficient_ = guidedLocalSearchLambdaCoefficient_;
10104 if (((from_bitField0_ & 0x20000000) != 0)) {
10105 result.guidedLocalSearchResetPenaltiesOnNewBestSolution_ = guidedLocalSearchResetPenaltiesOnNewBestSolution_;
10107 if (((from_bitField0_ & 0x40000000) != 0)) {
10108 result.useDepthFirstSearch_ = useDepthFirstSearch_;
10110 if (((from_bitField0_ & 0x80000000) != 0)) {
10111 result.useCp_ = useCp_;
10113 result.bitField0_ |= to_bitField0_;
10116 private void buildPartial1(com.google.ortools.constraintsolver.RoutingSearchParameters result) {
10117 int from_bitField1_ = bitField1_;
10118 if (((from_bitField1_ & 0x00000001) != 0)) {
10119 result.useCpSat_ = useCpSat_;
10121 if (((from_bitField1_ & 0x00000002) != 0)) {
10122 result.useGeneralizedCpSat_ = useGeneralizedCpSat_;
10124 int to_bitField0_ = 0;
10125 if (((from_bitField1_ & 0x00000004) != 0)) {
10126 result.satParameters_ = satParametersBuilder_ ==
null
10128 : satParametersBuilder_.build();
10129 to_bitField0_ |= 0x00000002;
10131 if (((from_bitField1_ & 0x00000008) != 0)) {
10132 result.reportIntermediateCpSatSolutions_ = reportIntermediateCpSatSolutions_;
10134 if (((from_bitField1_ & 0x00000010) != 0)) {
10135 result.fallbackToCpSatSizeThreshold_ = fallbackToCpSatSizeThreshold_;
10137 if (((from_bitField1_ & 0x00000020) != 0)) {
10138 result.continuousSchedulingSolver_ = continuousSchedulingSolver_;
10140 if (((from_bitField1_ & 0x00000040) != 0)) {
10141 result.mixedIntegerSchedulingSolver_ = mixedIntegerSchedulingSolver_;
10143 if (((from_bitField1_ & 0x00000080) != 0)) {
10144 result.disableSchedulingBewareThisMayDegradePerformance_ = disableSchedulingBewareThisMayDegradePerformance_;
10145 to_bitField0_ |= 0x00000004;
10147 if (((from_bitField1_ & 0x00000100) != 0)) {
10148 result.optimizationStep_ = optimizationStep_;
10150 if (((from_bitField1_ & 0x00000200) != 0)) {
10151 result.numberOfSolutionsToCollect_ = numberOfSolutionsToCollect_;
10153 if (((from_bitField1_ & 0x00000400) != 0)) {
10154 result.solutionLimit_ = solutionLimit_;
10156 if (((from_bitField1_ & 0x00000800) != 0)) {
10157 result.timeLimit_ = timeLimitBuilder_ ==
null
10159 : timeLimitBuilder_.build();
10160 to_bitField0_ |= 0x00000008;
10162 if (((from_bitField1_ & 0x00001000) != 0)) {
10163 result.lnsTimeLimit_ = lnsTimeLimitBuilder_ ==
null
10165 : lnsTimeLimitBuilder_.build();
10166 to_bitField0_ |= 0x00000010;
10168 if (((from_bitField1_ & 0x00002000) != 0)) {
10169 result.secondaryLsTimeLimitRatio_ = secondaryLsTimeLimitRatio_;
10171 if (((from_bitField1_ & 0x00004000) != 0)) {
10172 result.improvementLimitParameters_ = improvementLimitParametersBuilder_ ==
null
10173 ? improvementLimitParameters_
10174 : improvementLimitParametersBuilder_.build();
10175 to_bitField0_ |= 0x00000020;
10177 if (((from_bitField1_ & 0x00008000) != 0)) {
10178 result.useFullPropagation_ = useFullPropagation_;
10180 if (((from_bitField1_ & 0x00010000) != 0)) {
10181 result.logSearch_ = logSearch_;
10183 if (((from_bitField1_ & 0x00020000) != 0)) {
10184 result.logCostScalingFactor_ = logCostScalingFactor_;
10186 if (((from_bitField1_ & 0x00040000) != 0)) {
10187 result.logCostOffset_ = logCostOffset_;
10189 if (((from_bitField1_ & 0x00080000) != 0)) {
10190 result.logTag_ = logTag_;
10192 if (((from_bitField1_ & 0x00100000) != 0)) {
10193 result.useIteratedLocalSearch_ = useIteratedLocalSearch_;
10195 if (((from_bitField1_ & 0x00200000) != 0)) {
10196 result.iteratedLocalSearchParameters_ = iteratedLocalSearchParametersBuilder_ ==
null
10197 ? iteratedLocalSearchParameters_
10198 : iteratedLocalSearchParametersBuilder_.build();
10199 to_bitField0_ |= 0x00000040;
10201 result.bitField0_ |= to_bitField0_;
10204 @java.lang.Override
10206 if (other instanceof com.google.ortools.constraintsolver.RoutingSearchParameters) {
10207 return mergeFrom((com.google.ortools.constraintsolver.RoutingSearchParameters)other);
10209 super.mergeFrom(other);
10215 if (other == com.google.ortools.constraintsolver.RoutingSearchParameters.getDefaultInstance())
return this;
10216 if (other.firstSolutionStrategy_ != 0) {
10219 if (other.getUseUnfilteredFirstSolutionStrategy() !=
false) {
10222 if (other.getSavingsNeighborsRatio() != 0D) {
10225 if (other.getSavingsMaxMemoryUsageBytes() != 0D) {
10228 if (other.getSavingsAddReverseArcs() !=
false) {
10231 if (other.getSavingsArcCoefficient() != 0D) {
10234 if (other.getSavingsParallelRoutes() !=
false) {
10237 if (other.getCheapestInsertionFarthestSeedsRatio() != 0D) {
10240 if (other.getCheapestInsertionFirstSolutionNeighborsRatio() != 0D) {
10243 if (other.getCheapestInsertionFirstSolutionMinNeighbors() != 0) {
10246 if (other.getCheapestInsertionLsOperatorNeighborsRatio() != 0D) {
10249 if (other.getCheapestInsertionLsOperatorMinNeighbors() != 0) {
10252 if (other.getCheapestInsertionFirstSolutionUseNeighborsRatioForInitialization() !=
false) {
10255 if (other.getCheapestInsertionAddUnperformedEntries() !=
false) {
10258 if (other.localCheapestInsertionPickupDeliveryStrategy_ != 0) {
10261 if (other.localCheapestCostInsertionPickupDeliveryStrategy_ != 0) {
10264 if (other.getChristofidesUseMinimumMatching() !=
false) {
10267 if (other.getFirstSolutionOptimizationPeriod() != 0) {
10270 if (other.hasLocalSearchOperators()) {
10273 if (other.getLsOperatorNeighborsRatio() != 0D) {
10276 if (other.getLsOperatorMinNeighbors() != 0) {
10279 if (other.getUseMultiArmedBanditConcatenateOperators() !=
false) {
10282 if (other.getMultiArmedBanditCompoundOperatorMemoryCoefficient() != 0D) {
10285 if (other.getMultiArmedBanditCompoundOperatorExplorationCoefficient() != 0D) {
10288 if (other.getRelocateExpensiveChainNumArcsToConsider() != 0) {
10291 if (other.getHeuristicExpensiveChainLnsNumArcsToConsider() != 0) {
10294 if (other.getHeuristicCloseNodesLnsNumNodes() != 0) {
10297 if (other.localSearchMetaheuristic_ != 0) {
10300 if (other.getGuidedLocalSearchLambdaCoefficient() != 0D) {
10303 if (other.getGuidedLocalSearchResetPenaltiesOnNewBestSolution() !=
false) {
10306 if (other.getUseDepthFirstSearch() !=
false) {
10309 if (other.useCp_ != 0) {
10312 if (other.useCpSat_ != 0) {
10315 if (other.useGeneralizedCpSat_ != 0) {
10318 if (other.hasSatParameters()) {
10321 if (other.getReportIntermediateCpSatSolutions() !=
false) {
10324 if (other.getFallbackToCpSatSizeThreshold() != 0) {
10327 if (other.continuousSchedulingSolver_ != 0) {
10330 if (other.mixedIntegerSchedulingSolver_ != 0) {
10333 if (other.hasDisableSchedulingBewareThisMayDegradePerformance()) {
10336 if (other.getOptimizationStep() != 0D) {
10339 if (other.getNumberOfSolutionsToCollect() != 0) {
10342 if (other.getSolutionLimit() != 0L) {
10345 if (other.hasTimeLimit()) {
10348 if (other.hasLnsTimeLimit()) {
10351 if (other.getSecondaryLsTimeLimitRatio() != 0D) {
10354 if (other.hasImprovementLimitParameters()) {
10357 if (other.getUseFullPropagation() !=
false) {
10360 if (other.getLogSearch() !=
false) {
10363 if (other.getLogCostScalingFactor() != 0D) {
10366 if (other.getLogCostOffset() != 0D) {
10369 if (!other.getLogTag().isEmpty()) {
10370 logTag_ = other.logTag_;
10371 bitField1_ |= 0x00080000;
10374 if (other.getUseIteratedLocalSearch() !=
false) {
10377 if (other.hasIteratedLocalSearchParameters()) {
10380 this.mergeUnknownFields(other.getUnknownFields());
10385 @java.lang.Override
10390 @java.lang.Override
10392 com.google.protobuf.CodedInputStream input,
10393 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10394 throws java.io.IOException {
10395 if (extensionRegistry ==
null) {
10396 throw new java.lang.NullPointerException();
10399 boolean done =
false;
10401 int tag = input.readTag();
10407 firstSolutionStrategy_ = input.readEnum();
10408 bitField0_ |= 0x00000001;
10412 useUnfilteredFirstSolutionStrategy_ = input.readBool();
10413 bitField0_ |= 0x00000002;
10418 getLocalSearchOperatorsFieldBuilder().getBuilder(),
10419 extensionRegistry);
10420 bitField0_ |= 0x00040000;
10424 localSearchMetaheuristic_ = input.readEnum();
10425 bitField0_ |= 0x08000000;
10429 guidedLocalSearchLambdaCoefficient_ = input.readDouble();
10430 bitField0_ |= 0x10000000;
10434 useDepthFirstSearch_ = input.readBool();
10435 bitField0_ |= 0x40000000;
10439 optimizationStep_ = input.readDouble();
10440 bitField1_ |= 0x00000100;
10444 solutionLimit_ = input.readInt64();
10445 bitField1_ |= 0x00000400;
10450 getTimeLimitFieldBuilder().getBuilder(),
10451 extensionRegistry);
10452 bitField1_ |= 0x00000800;
10457 getLnsTimeLimitFieldBuilder().getBuilder(),
10458 extensionRegistry);
10459 bitField1_ |= 0x00001000;
10463 useFullPropagation_ = input.readBool();
10464 bitField1_ |= 0x00008000;
10468 logSearch_ = input.readBool();
10469 bitField1_ |= 0x00010000;
10473 savingsNeighborsRatio_ = input.readDouble();
10474 bitField0_ |= 0x00000004;
10478 savingsAddReverseArcs_ = input.readBool();
10479 bitField0_ |= 0x00000010;
10483 cheapestInsertionFarthestSeedsRatio_ = input.readDouble();
10484 bitField0_ |= 0x00000080;
10488 numberOfSolutionsToCollect_ = input.readInt32();
10489 bitField1_ |= 0x00000200;
10493 savingsArcCoefficient_ = input.readDouble();
10494 bitField0_ |= 0x00000020;
10498 savingsParallelRoutes_ = input.readBool();
10499 bitField0_ |= 0x00000040;
10503 relocateExpensiveChainNumArcsToConsider_ = input.readInt32();
10504 bitField0_ |= 0x01000000;
10508 cheapestInsertionFirstSolutionNeighborsRatio_ = input.readDouble();
10509 bitField0_ |= 0x00000100;
10513 logCostScalingFactor_ = input.readDouble();
10514 bitField1_ |= 0x00020000;
10518 savingsMaxMemoryUsageBytes_ = input.readDouble();
10519 bitField0_ |= 0x00000008;
10523 useCpSat_ = input.readEnum();
10524 bitField1_ |= 0x00000001;
10528 useCp_ = input.readEnum();
10529 bitField0_ |= 0x80000000;
10533 logCostOffset_ = input.readDouble();
10534 bitField1_ |= 0x00040000;
10538 christofidesUseMinimumMatching_ = input.readBool();
10539 bitField0_ |= 0x00010000;
10543 cheapestInsertionLsOperatorNeighborsRatio_ = input.readDouble();
10544 bitField0_ |= 0x00000400;
10548 heuristicExpensiveChainLnsNumArcsToConsider_ = input.readInt32();
10549 bitField0_ |= 0x02000000;
10553 continuousSchedulingSolver_ = input.readEnum();
10554 bitField1_ |= 0x00000020;
10558 mixedIntegerSchedulingSolver_ = input.readEnum();
10559 bitField1_ |= 0x00000040;
10563 heuristicCloseNodesLnsNumNodes_ = input.readInt32();
10564 bitField0_ |= 0x04000000;
10568 logTag_ = input.readStringRequireUtf8();
10569 bitField1_ |= 0x00080000;
10574 getImprovementLimitParametersFieldBuilder().getBuilder(),
10575 extensionRegistry);
10576 bitField1_ |= 0x00004000;
10580 cheapestInsertionAddUnperformedEntries_ = input.readBool();
10581 bitField0_ |= 0x00002000;
10585 useMultiArmedBanditConcatenateOperators_ = input.readBool();
10586 bitField0_ |= 0x00200000;
10590 multiArmedBanditCompoundOperatorMemoryCoefficient_ = input.readDouble();
10591 bitField0_ |= 0x00400000;
10595 multiArmedBanditCompoundOperatorExplorationCoefficient_ = input.readDouble();
10596 bitField0_ |= 0x00800000;
10600 cheapestInsertionFirstSolutionMinNeighbors_ = input.readInt32();
10601 bitField0_ |= 0x00000200;
10605 cheapestInsertionLsOperatorMinNeighbors_ = input.readInt32();
10606 bitField0_ |= 0x00000800;
10610 cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_ = input.readBool();
10611 bitField0_ |= 0x00001000;
10615 useGeneralizedCpSat_ = input.readEnum();
10616 bitField1_ |= 0x00000002;
10621 getSatParametersFieldBuilder().getBuilder(),
10622 extensionRegistry);
10623 bitField1_ |= 0x00000004;
10627 localCheapestInsertionPickupDeliveryStrategy_ = input.readEnum();
10628 bitField0_ |= 0x00004000;
10632 disableSchedulingBewareThisMayDegradePerformance_ = input.readBool();
10633 bitField1_ |= 0x00000080;
10637 guidedLocalSearchResetPenaltiesOnNewBestSolution_ = input.readBool();
10638 bitField0_ |= 0x20000000;
10642 fallbackToCpSatSizeThreshold_ = input.readInt32();
10643 bitField1_ |= 0x00000010;
10647 lsOperatorNeighborsRatio_ = input.readDouble();
10648 bitField0_ |= 0x00080000;
10652 lsOperatorMinNeighbors_ = input.readInt32();
10653 bitField0_ |= 0x00100000;
10657 localCheapestCostInsertionPickupDeliveryStrategy_ = input.readEnum();
10658 bitField0_ |= 0x00008000;
10662 reportIntermediateCpSatSolutions_ = input.readBool();
10663 bitField1_ |= 0x00000008;
10667 secondaryLsTimeLimitRatio_ = input.readDouble();
10668 bitField1_ |= 0x00002000;
10672 useIteratedLocalSearch_ = input.readBool();
10673 bitField1_ |= 0x00100000;
10677 firstSolutionOptimizationPeriod_ = input.readInt32();
10678 bitField0_ |= 0x00020000;
10683 getIteratedLocalSearchParametersFieldBuilder().getBuilder(),
10684 extensionRegistry);
10685 bitField1_ |= 0x00200000;
10689 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
10696 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
10697 throw e.unwrapIOException();
10703 private int bitField0_;
10704 private int bitField1_;
10706 private int firstSolutionStrategy_ = 0;
10716 return firstSolutionStrategy_;
10728 firstSolutionStrategy_ = value;
10729 bitField0_ |= 0x00000001;
10741 @java.lang.Override
10744 return result ==
null ? com.google.ortools.constraintsolver.FirstSolutionStrategy.Value.UNRECOGNIZED : result;
10756 if (value ==
null) {
10757 throw new NullPointerException();
10759 bitField0_ |= 0x00000001;
10760 firstSolutionStrategy_ = value.getNumber();
10773 bitField0_ = (bitField0_ & ~0x00000001);
10774 firstSolutionStrategy_ = 0;
10779 private boolean useUnfilteredFirstSolutionStrategy_ ;
10791 @java.lang.Override
10793 return useUnfilteredFirstSolutionStrategy_;
10809 useUnfilteredFirstSolutionStrategy_ = value;
10810 bitField0_ |= 0x00000002;
10826 bitField0_ = (bitField0_ & ~0x00000002);
10827 useUnfilteredFirstSolutionStrategy_ =
false;
10832 private double savingsNeighborsRatio_ ;
10843 @java.lang.Override
10845 return savingsNeighborsRatio_;
10860 savingsNeighborsRatio_ = value;
10861 bitField0_ |= 0x00000004;
10876 bitField0_ = (bitField0_ & ~0x00000004);
10877 savingsNeighborsRatio_ = 0D;
10882 private double savingsMaxMemoryUsageBytes_ ;
10896 @java.lang.Override
10898 return savingsMaxMemoryUsageBytes_;
10916 savingsMaxMemoryUsageBytes_ = value;
10917 bitField0_ |= 0x00000008;
10935 bitField0_ = (bitField0_ & ~0x00000008);
10936 savingsMaxMemoryUsageBytes_ = 0D;
10941 private boolean savingsAddReverseArcs_ ;
10951 @java.lang.Override
10953 return savingsAddReverseArcs_;
10967 savingsAddReverseArcs_ = value;
10968 bitField0_ |= 0x00000010;
10982 bitField0_ = (bitField0_ & ~0x00000010);
10983 savingsAddReverseArcs_ =
false;
10988 private double savingsArcCoefficient_ ;
11001 @java.lang.Override
11003 return savingsArcCoefficient_;
11020 savingsArcCoefficient_ = value;
11021 bitField0_ |= 0x00000020;
11038 bitField0_ = (bitField0_ & ~0x00000020);
11039 savingsArcCoefficient_ = 0D;
11044 private boolean savingsParallelRoutes_ ;
11053 @java.lang.Override
11055 return savingsParallelRoutes_;
11068 savingsParallelRoutes_ = value;
11069 bitField0_ |= 0x00000040;
11082 bitField0_ = (bitField0_ & ~0x00000040);
11083 savingsParallelRoutes_ =
false;
11088 private double cheapestInsertionFarthestSeedsRatio_ ;
11099 @java.lang.Override
11101 return cheapestInsertionFarthestSeedsRatio_;
11116 cheapestInsertionFarthestSeedsRatio_ = value;
11117 bitField0_ |= 0x00000080;
11132 bitField0_ = (bitField0_ & ~0x00000080);
11133 cheapestInsertionFarthestSeedsRatio_ = 0D;
11138 private double cheapestInsertionFirstSolutionNeighborsRatio_ ;
11161 @java.lang.Override
11163 return cheapestInsertionFirstSolutionNeighborsRatio_;
11190 cheapestInsertionFirstSolutionNeighborsRatio_ = value;
11191 bitField0_ |= 0x00000100;
11218 bitField0_ = (bitField0_ & ~0x00000100);
11219 cheapestInsertionFirstSolutionNeighborsRatio_ = 0D;
11224 private int cheapestInsertionFirstSolutionMinNeighbors_ ;
11229 @java.lang.Override
11231 return cheapestInsertionFirstSolutionMinNeighbors_;
11240 cheapestInsertionFirstSolutionMinNeighbors_ = value;
11241 bitField0_ |= 0x00000200;
11250 bitField0_ = (bitField0_ & ~0x00000200);
11251 cheapestInsertionFirstSolutionMinNeighbors_ = 0;
11256 private double cheapestInsertionLsOperatorNeighborsRatio_ ;
11268 @java.lang.Override
11270 return cheapestInsertionLsOperatorNeighborsRatio_;
11286 cheapestInsertionLsOperatorNeighborsRatio_ = value;
11287 bitField0_ |= 0x00000400;
11303 bitField0_ = (bitField0_ & ~0x00000400);
11304 cheapestInsertionLsOperatorNeighborsRatio_ = 0D;
11309 private int cheapestInsertionLsOperatorMinNeighbors_ ;
11314 @java.lang.Override
11316 return cheapestInsertionLsOperatorMinNeighbors_;
11325 cheapestInsertionLsOperatorMinNeighbors_ = value;
11326 bitField0_ |= 0x00000800;
11335 bitField0_ = (bitField0_ & ~0x00000800);
11336 cheapestInsertionLsOperatorMinNeighbors_ = 0;
11341 private boolean cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_ ;
11351 @java.lang.Override
11353 return cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_;
11367 cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_ = value;
11368 bitField0_ |= 0x00001000;
11382 bitField0_ = (bitField0_ & ~0x00001000);
11383 cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization_ =
false;
11388 private boolean cheapestInsertionAddUnperformedEntries_ ;
11398 @java.lang.Override
11400 return cheapestInsertionAddUnperformedEntries_;
11414 cheapestInsertionAddUnperformedEntries_ = value;
11415 bitField0_ |= 0x00002000;
11429 bitField0_ = (bitField0_ & ~0x00002000);
11430 cheapestInsertionAddUnperformedEntries_ =
false;
11435 private int localCheapestInsertionPickupDeliveryStrategy_ = 0;
11446 return localCheapestInsertionPickupDeliveryStrategy_;
11459 localCheapestInsertionPickupDeliveryStrategy_ = value;
11460 bitField0_ |= 0x00004000;
11473 @java.lang.Override
11476 return result ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.PairInsertionStrategy.UNRECOGNIZED : result;
11489 if (value ==
null) {
11490 throw new NullPointerException();
11492 bitField0_ |= 0x00004000;
11493 localCheapestInsertionPickupDeliveryStrategy_ = value.getNumber();
11507 bitField0_ = (bitField0_ & ~0x00004000);
11508 localCheapestInsertionPickupDeliveryStrategy_ = 0;
11513 private int localCheapestCostInsertionPickupDeliveryStrategy_ = 0;
11524 return localCheapestCostInsertionPickupDeliveryStrategy_;
11537 localCheapestCostInsertionPickupDeliveryStrategy_ = value;
11538 bitField0_ |= 0x00008000;
11551 @java.lang.Override
11554 return result ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.PairInsertionStrategy.UNRECOGNIZED : result;
11567 if (value ==
null) {
11568 throw new NullPointerException();
11570 bitField0_ |= 0x00008000;
11571 localCheapestCostInsertionPickupDeliveryStrategy_ = value.getNumber();
11585 bitField0_ = (bitField0_ & ~0x00008000);
11586 localCheapestCostInsertionPickupDeliveryStrategy_ = 0;
11591 private boolean christofidesUseMinimumMatching_ ;
11601 @java.lang.Override
11603 return christofidesUseMinimumMatching_;
11617 christofidesUseMinimumMatching_ = value;
11618 bitField0_ |= 0x00010000;
11632 bitField0_ = (bitField0_ & ~0x00010000);
11633 christofidesUseMinimumMatching_ =
false;
11638 private int firstSolutionOptimizationPeriod_ ;
11653 @java.lang.Override
11655 return firstSolutionOptimizationPeriod_;
11674 firstSolutionOptimizationPeriod_ = value;
11675 bitField0_ |= 0x00020000;
11694 bitField0_ = (bitField0_ & ~0x00020000);
11695 firstSolutionOptimizationPeriod_ = 0;
11701 private com.google.protobuf.SingleFieldBuilder<
11702 com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators, com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder, com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder> localSearchOperatorsBuilder_;
11708 return ((bitField0_ & 0x00040000) != 0);
11715 if (localSearchOperatorsBuilder_ ==
null) {
11716 return localSearchOperators_ ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.getDefaultInstance() : localSearchOperators_;
11718 return localSearchOperatorsBuilder_.getMessage();
11725 if (localSearchOperatorsBuilder_ ==
null) {
11726 if (value ==
null) {
11727 throw new NullPointerException();
11729 localSearchOperators_ = value;
11731 localSearchOperatorsBuilder_.setMessage(value);
11733 bitField0_ |= 0x00040000;
11741 com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder builderForValue) {
11742 if (localSearchOperatorsBuilder_ ==
null) {
11743 localSearchOperators_ = builderForValue.build();
11745 localSearchOperatorsBuilder_.setMessage(builderForValue.build());
11747 bitField0_ |= 0x00040000;
11755 if (localSearchOperatorsBuilder_ ==
null) {
11756 if (((bitField0_ & 0x00040000) != 0) &&
11757 localSearchOperators_ !=
null &&
11758 localSearchOperators_ != com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.getDefaultInstance()) {
11761 localSearchOperators_ = value;
11764 localSearchOperatorsBuilder_.mergeFrom(value);
11766 if (localSearchOperators_ !=
null) {
11767 bitField0_ |= 0x00040000;
11776 bitField0_ = (bitField0_ & ~0x00040000);
11777 localSearchOperators_ =
null;
11778 if (localSearchOperatorsBuilder_ !=
null) {
11779 localSearchOperatorsBuilder_.dispose();
11780 localSearchOperatorsBuilder_ =
null;
11789 bitField0_ |= 0x00040000;
11791 return getLocalSearchOperatorsFieldBuilder().getBuilder();
11797 if (localSearchOperatorsBuilder_ !=
null) {
11798 return localSearchOperatorsBuilder_.getMessageOrBuilder();
11800 return localSearchOperators_ ==
null ?
11801 com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.getDefaultInstance() : localSearchOperators_;
11807 private com.google.protobuf.SingleFieldBuilder<
11808 com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators, com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder, com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder>
11809 getLocalSearchOperatorsFieldBuilder() {
11810 if (localSearchOperatorsBuilder_ ==
null) {
11811 localSearchOperatorsBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
11812 com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators, com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder, com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder>(
11814 getParentForChildren(),
11816 localSearchOperators_ =
null;
11818 return localSearchOperatorsBuilder_;
11821 private double lsOperatorNeighborsRatio_ ;
11832 @java.lang.Override
11834 return lsOperatorNeighborsRatio_;
11849 lsOperatorNeighborsRatio_ = value;
11850 bitField0_ |= 0x00080000;
11865 bitField0_ = (bitField0_ & ~0x00080000);
11866 lsOperatorNeighborsRatio_ = 0D;
11871 private int lsOperatorMinNeighbors_ ;
11876 @java.lang.Override
11878 return lsOperatorMinNeighbors_;
11887 lsOperatorMinNeighbors_ = value;
11888 bitField0_ |= 0x00100000;
11897 bitField0_ = (bitField0_ & ~0x00100000);
11898 lsOperatorMinNeighbors_ = 0;
11903 private boolean useMultiArmedBanditConcatenateOperators_ ;
11914 @java.lang.Override
11916 return useMultiArmedBanditConcatenateOperators_;
11931 useMultiArmedBanditConcatenateOperators_ = value;
11932 bitField0_ |= 0x00200000;
11947 bitField0_ = (bitField0_ & ~0x00200000);
11948 useMultiArmedBanditConcatenateOperators_ =
false;
11953 private double multiArmedBanditCompoundOperatorMemoryCoefficient_ ;
11965 @java.lang.Override
11967 return multiArmedBanditCompoundOperatorMemoryCoefficient_;
11983 multiArmedBanditCompoundOperatorMemoryCoefficient_ = value;
11984 bitField0_ |= 0x00400000;
12000 bitField0_ = (bitField0_ & ~0x00400000);
12001 multiArmedBanditCompoundOperatorMemoryCoefficient_ = 0D;
12006 private double multiArmedBanditCompoundOperatorExplorationCoefficient_ ;
12017 @java.lang.Override
12019 return multiArmedBanditCompoundOperatorExplorationCoefficient_;
12034 multiArmedBanditCompoundOperatorExplorationCoefficient_ = value;
12035 bitField0_ |= 0x00800000;
12050 bitField0_ = (bitField0_ & ~0x00800000);
12051 multiArmedBanditCompoundOperatorExplorationCoefficient_ = 0D;
12056 private int relocateExpensiveChainNumArcsToConsider_ ;
12071 @java.lang.Override
12073 return relocateExpensiveChainNumArcsToConsider_;
12092 relocateExpensiveChainNumArcsToConsider_ = value;
12093 bitField0_ |= 0x01000000;
12112 bitField0_ = (bitField0_ & ~0x01000000);
12113 relocateExpensiveChainNumArcsToConsider_ = 0;
12118 private int heuristicExpensiveChainLnsNumArcsToConsider_ ;
12128 @java.lang.Override
12130 return heuristicExpensiveChainLnsNumArcsToConsider_;
12144 heuristicExpensiveChainLnsNumArcsToConsider_ = value;
12145 bitField0_ |= 0x02000000;
12159 bitField0_ = (bitField0_ & ~0x02000000);
12160 heuristicExpensiveChainLnsNumArcsToConsider_ = 0;
12165 private int heuristicCloseNodesLnsNumNodes_ ;
12175 @java.lang.Override
12177 return heuristicCloseNodesLnsNumNodes_;
12191 heuristicCloseNodesLnsNumNodes_ = value;
12192 bitField0_ |= 0x04000000;
12206 bitField0_ = (bitField0_ & ~0x04000000);
12207 heuristicCloseNodesLnsNumNodes_ = 0;
12212 private int localSearchMetaheuristic_ = 0;
12222 return localSearchMetaheuristic_;
12234 localSearchMetaheuristic_ = value;
12235 bitField0_ |= 0x08000000;
12247 @java.lang.Override
12250 return result ==
null ? com.google.ortools.constraintsolver.LocalSearchMetaheuristic.Value.UNRECOGNIZED : result;
12262 if (value ==
null) {
12263 throw new NullPointerException();
12265 bitField0_ |= 0x08000000;
12266 localSearchMetaheuristic_ = value.getNumber();
12279 bitField0_ = (bitField0_ & ~0x08000000);
12280 localSearchMetaheuristic_ = 0;
12285 private double guidedLocalSearchLambdaCoefficient_ ;
12297 @java.lang.Override
12299 return guidedLocalSearchLambdaCoefficient_;
12315 guidedLocalSearchLambdaCoefficient_ = value;
12316 bitField0_ |= 0x10000000;
12332 bitField0_ = (bitField0_ & ~0x10000000);
12333 guidedLocalSearchLambdaCoefficient_ = 0D;
12338 private boolean guidedLocalSearchResetPenaltiesOnNewBestSolution_ ;
12348 @java.lang.Override
12350 return guidedLocalSearchResetPenaltiesOnNewBestSolution_;
12364 guidedLocalSearchResetPenaltiesOnNewBestSolution_ = value;
12365 bitField0_ |= 0x20000000;
12379 bitField0_ = (bitField0_ & ~0x20000000);
12380 guidedLocalSearchResetPenaltiesOnNewBestSolution_ =
false;
12385 private boolean useDepthFirstSearch_ ;
12397 @java.lang.Override
12399 return useDepthFirstSearch_;
12415 useDepthFirstSearch_ = value;
12416 bitField0_ |= 0x40000000;
12432 bitField0_ = (bitField0_ & ~0x40000000);
12433 useDepthFirstSearch_ =
false;
12438 private int useCp_ = 0;
12465 bitField0_ |= 0x80000000;
12479 @java.lang.Override
12482 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
12496 if (value ==
null) {
12497 throw new NullPointerException();
12499 bitField0_ |= 0x80000000;
12500 useCp_ = value.getNumber();
12515 bitField0_ = (bitField0_ & ~0x80000000);
12521 private int useCpSat_ = 0;
12550 bitField1_ |= 0x00000001;
12565 @java.lang.Override
12568 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
12583 if (value ==
null) {
12584 throw new NullPointerException();
12586 bitField1_ |= 0x00000001;
12587 useCpSat_ = value.getNumber();
12603 bitField1_ = (bitField1_ & ~0x00000001);
12609 private int useGeneralizedCpSat_ = 0;
12622 return useGeneralizedCpSat_;
12637 useGeneralizedCpSat_ = value;
12638 bitField1_ |= 0x00000002;
12653 @java.lang.Override
12656 return result ==
null ? com.google.ortools.util.OptionalBoolean.UNRECOGNIZED : result;
12671 if (value ==
null) {
12672 throw new NullPointerException();
12674 bitField1_ |= 0x00000002;
12675 useGeneralizedCpSat_ = value.getNumber();
12691 bitField1_ = (bitField1_ & ~0x00000002);
12692 useGeneralizedCpSat_ = 0;
12698 private com.google.protobuf.SingleFieldBuilder<
12699 com.google.ortools.sat.SatParameters, com.google.ortools.sat.SatParameters.Builder, com.google.ortools.sat.SatParametersOrBuilder> satParametersBuilder_;
12710 return ((bitField1_ & 0x00000004) != 0);
12722 if (satParametersBuilder_ ==
null) {
12723 return satParameters_ ==
null ? com.google.ortools.sat.SatParameters.getDefaultInstance() : satParameters_;
12725 return satParametersBuilder_.getMessage();
12737 if (satParametersBuilder_ ==
null) {
12738 if (value ==
null) {
12739 throw new NullPointerException();
12741 satParameters_ = value;
12743 satParametersBuilder_.setMessage(value);
12745 bitField1_ |= 0x00000004;
12758 com.google.ortools.sat.SatParameters.Builder builderForValue) {
12759 if (satParametersBuilder_ ==
null) {
12760 satParameters_ = builderForValue.build();
12762 satParametersBuilder_.setMessage(builderForValue.build());
12764 bitField1_ |= 0x00000004;
12777 if (satParametersBuilder_ ==
null) {
12778 if (((bitField1_ & 0x00000004) != 0) &&
12779 satParameters_ !=
null &&
12780 satParameters_ != com.google.ortools.sat.SatParameters.getDefaultInstance()) {
12783 satParameters_ = value;
12786 satParametersBuilder_.mergeFrom(value);
12788 if (satParameters_ !=
null) {
12789 bitField1_ |= 0x00000004;
12803 bitField1_ = (bitField1_ & ~0x00000004);
12804 satParameters_ =
null;
12805 if (satParametersBuilder_ !=
null) {
12806 satParametersBuilder_.dispose();
12807 satParametersBuilder_ =
null;
12821 bitField1_ |= 0x00000004;
12823 return getSatParametersFieldBuilder().getBuilder();
12834 if (satParametersBuilder_ !=
null) {
12835 return satParametersBuilder_.getMessageOrBuilder();
12837 return satParameters_ ==
null ?
12838 com.google.ortools.sat.SatParameters.getDefaultInstance() : satParameters_;
12849 private com.google.protobuf.SingleFieldBuilder<
12850 com.google.ortools.sat.SatParameters, com.google.ortools.sat.SatParameters.Builder, com.google.ortools.sat.SatParametersOrBuilder>
12851 getSatParametersFieldBuilder() {
12852 if (satParametersBuilder_ ==
null) {
12853 satParametersBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
12854 com.google.ortools.sat.SatParameters, com.google.ortools.sat.SatParameters.Builder, com.google.ortools.sat.SatParametersOrBuilder>(
12856 getParentForChildren(),
12858 satParameters_ =
null;
12860 return satParametersBuilder_;
12863 private boolean reportIntermediateCpSatSolutions_ ;
12873 @java.lang.Override
12875 return reportIntermediateCpSatSolutions_;
12889 reportIntermediateCpSatSolutions_ = value;
12890 bitField1_ |= 0x00000008;
12904 bitField1_ = (bitField1_ & ~0x00000008);
12905 reportIntermediateCpSatSolutions_ =
false;
12910 private int fallbackToCpSatSizeThreshold_ ;
12920 @java.lang.Override
12922 return fallbackToCpSatSizeThreshold_;
12936 fallbackToCpSatSizeThreshold_ = value;
12937 bitField1_ |= 0x00000010;
12951 bitField1_ = (bitField1_ & ~0x00000010);
12952 fallbackToCpSatSizeThreshold_ = 0;
12957 private int continuousSchedulingSolver_ = 0;
12963 return continuousSchedulingSolver_;
12971 continuousSchedulingSolver_ = value;
12972 bitField1_ |= 0x00000020;
12980 @java.lang.Override
12983 return result ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.SchedulingSolver.UNRECOGNIZED : result;
12991 if (value ==
null) {
12992 throw new NullPointerException();
12994 bitField1_ |= 0x00000020;
12995 continuousSchedulingSolver_ = value.getNumber();
13004 bitField1_ = (bitField1_ & ~0x00000020);
13005 continuousSchedulingSolver_ = 0;
13010 private int mixedIntegerSchedulingSolver_ = 0;
13016 return mixedIntegerSchedulingSolver_;
13024 mixedIntegerSchedulingSolver_ = value;
13025 bitField1_ |= 0x00000040;
13033 @java.lang.Override
13036 return result ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.SchedulingSolver.UNRECOGNIZED : result;
13044 if (value ==
null) {
13045 throw new NullPointerException();
13047 bitField1_ |= 0x00000040;
13048 mixedIntegerSchedulingSolver_ = value.getNumber();
13057 bitField1_ = (bitField1_ & ~0x00000040);
13058 mixedIntegerSchedulingSolver_ = 0;
13063 private boolean disableSchedulingBewareThisMayDegradePerformance_ ;
13073 @java.lang.Override
13075 return ((bitField1_ & 0x00000080) != 0);
13086 @java.lang.Override
13088 return disableSchedulingBewareThisMayDegradePerformance_;
13102 disableSchedulingBewareThisMayDegradePerformance_ = value;
13103 bitField1_ |= 0x00000080;
13117 bitField1_ = (bitField1_ & ~0x00000080);
13118 disableSchedulingBewareThisMayDegradePerformance_ =
false;
13123 private double optimizationStep_ ;
13134 @java.lang.Override
13136 return optimizationStep_;
13151 optimizationStep_ = value;
13152 bitField1_ |= 0x00000100;
13167 bitField1_ = (bitField1_ & ~0x00000100);
13168 optimizationStep_ = 0D;
13173 private int numberOfSolutionsToCollect_ ;
13183 @java.lang.Override
13185 return numberOfSolutionsToCollect_;
13199 numberOfSolutionsToCollect_ = value;
13200 bitField1_ |= 0x00000200;
13214 bitField1_ = (bitField1_ & ~0x00000200);
13215 numberOfSolutionsToCollect_ = 0;
13220 private long solutionLimit_ ;
13231 @java.lang.Override
13233 return solutionLimit_;
13248 solutionLimit_ = value;
13249 bitField1_ |= 0x00000400;
13264 bitField1_ = (bitField1_ & ~0x00000400);
13265 solutionLimit_ = 0L;
13270 private com.google.protobuf.Duration timeLimit_;
13271 private com.google.protobuf.SingleFieldBuilder<
13272 com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeLimitBuilder_;
13282 return ((bitField1_ & 0x00000800) != 0);
13293 if (timeLimitBuilder_ ==
null) {
13294 return timeLimit_ ==
null ? com.google.protobuf.Duration.getDefaultInstance() : timeLimit_;
13296 return timeLimitBuilder_.getMessage();
13307 if (timeLimitBuilder_ ==
null) {
13308 if (value ==
null) {
13309 throw new NullPointerException();
13311 timeLimit_ = value;
13313 timeLimitBuilder_.setMessage(value);
13315 bitField1_ |= 0x00000800;
13327 com.google.protobuf.Duration.Builder builderForValue) {
13328 if (timeLimitBuilder_ ==
null) {
13329 timeLimit_ = builderForValue.build();
13331 timeLimitBuilder_.setMessage(builderForValue.build());
13333 bitField1_ |= 0x00000800;
13345 if (timeLimitBuilder_ ==
null) {
13346 if (((bitField1_ & 0x00000800) != 0) &&
13347 timeLimit_ !=
null &&
13348 timeLimit_ != com.google.protobuf.Duration.getDefaultInstance()) {
13351 timeLimit_ = value;
13354 timeLimitBuilder_.mergeFrom(value);
13356 if (timeLimit_ !=
null) {
13357 bitField1_ |= 0x00000800;
13370 bitField1_ = (bitField1_ & ~0x00000800);
13372 if (timeLimitBuilder_ !=
null) {
13373 timeLimitBuilder_.dispose();
13374 timeLimitBuilder_ =
null;
13387 bitField1_ |= 0x00000800;
13389 return getTimeLimitFieldBuilder().getBuilder();
13399 if (timeLimitBuilder_ !=
null) {
13400 return timeLimitBuilder_.getMessageOrBuilder();
13402 return timeLimit_ ==
null ?
13403 com.google.protobuf.Duration.getDefaultInstance() : timeLimit_;
13413 private com.google.protobuf.SingleFieldBuilder<
13414 com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
13415 getTimeLimitFieldBuilder() {
13416 if (timeLimitBuilder_ ==
null) {
13417 timeLimitBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
13418 com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
13420 getParentForChildren(),
13424 return timeLimitBuilder_;
13427 private com.google.protobuf.Duration lnsTimeLimit_;
13428 private com.google.protobuf.SingleFieldBuilder<
13429 com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> lnsTimeLimitBuilder_;
13440 return ((bitField1_ & 0x00001000) != 0);
13452 if (lnsTimeLimitBuilder_ ==
null) {
13453 return lnsTimeLimit_ ==
null ? com.google.protobuf.Duration.getDefaultInstance() : lnsTimeLimit_;
13455 return lnsTimeLimitBuilder_.getMessage();
13467 if (lnsTimeLimitBuilder_ ==
null) {
13468 if (value ==
null) {
13469 throw new NullPointerException();
13471 lnsTimeLimit_ = value;
13473 lnsTimeLimitBuilder_.setMessage(value);
13475 bitField1_ |= 0x00001000;
13488 com.google.protobuf.Duration.Builder builderForValue) {
13489 if (lnsTimeLimitBuilder_ ==
null) {
13490 lnsTimeLimit_ = builderForValue.build();
13492 lnsTimeLimitBuilder_.setMessage(builderForValue.build());
13494 bitField1_ |= 0x00001000;
13507 if (lnsTimeLimitBuilder_ ==
null) {
13508 if (((bitField1_ & 0x00001000) != 0) &&
13509 lnsTimeLimit_ !=
null &&
13510 lnsTimeLimit_ != com.google.protobuf.Duration.getDefaultInstance()) {
13513 lnsTimeLimit_ = value;
13516 lnsTimeLimitBuilder_.mergeFrom(value);
13518 if (lnsTimeLimit_ !=
null) {
13519 bitField1_ |= 0x00001000;
13533 bitField1_ = (bitField1_ & ~0x00001000);
13534 lnsTimeLimit_ =
null;
13535 if (lnsTimeLimitBuilder_ !=
null) {
13536 lnsTimeLimitBuilder_.dispose();
13537 lnsTimeLimitBuilder_ =
null;
13551 bitField1_ |= 0x00001000;
13553 return getLnsTimeLimitFieldBuilder().getBuilder();
13564 if (lnsTimeLimitBuilder_ !=
null) {
13565 return lnsTimeLimitBuilder_.getMessageOrBuilder();
13567 return lnsTimeLimit_ ==
null ?
13568 com.google.protobuf.Duration.getDefaultInstance() : lnsTimeLimit_;
13579 private com.google.protobuf.SingleFieldBuilder<
13580 com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
13581 getLnsTimeLimitFieldBuilder() {
13582 if (lnsTimeLimitBuilder_ ==
null) {
13583 lnsTimeLimitBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
13584 com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
13586 getParentForChildren(),
13588 lnsTimeLimit_ =
null;
13590 return lnsTimeLimitBuilder_;
13593 private double secondaryLsTimeLimitRatio_ ;
13607 @java.lang.Override
13609 return secondaryLsTimeLimitRatio_;
13627 secondaryLsTimeLimitRatio_ = value;
13628 bitField1_ |= 0x00002000;
13646 bitField1_ = (bitField1_ & ~0x00002000);
13647 secondaryLsTimeLimitRatio_ = 0D;
13653 private com.google.protobuf.SingleFieldBuilder<
13654 com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters, com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.Builder, com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParametersOrBuilder> improvementLimitParametersBuilder_;
13665 return ((bitField1_ & 0x00004000) != 0);
13677 if (improvementLimitParametersBuilder_ ==
null) {
13678 return improvementLimitParameters_ ==
null ? com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.getDefaultInstance() : improvementLimitParameters_;
13680 return improvementLimitParametersBuilder_.getMessage();
13692 if (improvementLimitParametersBuilder_ ==
null) {
13693 if (value ==
null) {
13694 throw new NullPointerException();
13696 improvementLimitParameters_ = value;
13698 improvementLimitParametersBuilder_.setMessage(value);
13700 bitField1_ |= 0x00004000;
13713 com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.Builder builderForValue) {
13714 if (improvementLimitParametersBuilder_ ==
null) {
13715 improvementLimitParameters_ = builderForValue.build();
13717 improvementLimitParametersBuilder_.setMessage(builderForValue.build());
13719 bitField1_ |= 0x00004000;
13732 if (improvementLimitParametersBuilder_ ==
null) {
13733 if (((bitField1_ & 0x00004000) != 0) &&
13734 improvementLimitParameters_ !=
null &&
13735 improvementLimitParameters_ != com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.getDefaultInstance()) {
13738 improvementLimitParameters_ = value;
13741 improvementLimitParametersBuilder_.mergeFrom(value);
13743 if (improvementLimitParameters_ !=
null) {
13744 bitField1_ |= 0x00004000;
13758 bitField1_ = (bitField1_ & ~0x00004000);
13759 improvementLimitParameters_ =
null;
13760 if (improvementLimitParametersBuilder_ !=
null) {
13761 improvementLimitParametersBuilder_.dispose();
13762 improvementLimitParametersBuilder_ =
null;
13776 bitField1_ |= 0x00004000;
13778 return getImprovementLimitParametersFieldBuilder().getBuilder();
13789 if (improvementLimitParametersBuilder_ !=
null) {
13790 return improvementLimitParametersBuilder_.getMessageOrBuilder();
13792 return improvementLimitParameters_ ==
null ?
13793 com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.getDefaultInstance() : improvementLimitParameters_;
13804 private com.google.protobuf.SingleFieldBuilder<
13805 com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters, com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.Builder, com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParametersOrBuilder>
13806 getImprovementLimitParametersFieldBuilder() {
13807 if (improvementLimitParametersBuilder_ ==
null) {
13808 improvementLimitParametersBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
13809 com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters, com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters.Builder, com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParametersOrBuilder>(
13811 getParentForChildren(),
13813 improvementLimitParameters_ =
null;
13815 return improvementLimitParametersBuilder_;
13818 private boolean useFullPropagation_ ;
13836 @java.lang.Override
13838 return useFullPropagation_;
13860 useFullPropagation_ = value;
13861 bitField1_ |= 0x00008000;
13883 bitField1_ = (bitField1_ & ~0x00008000);
13884 useFullPropagation_ =
false;
13889 private boolean logSearch_ ;
13910 @java.lang.Override
13937 logSearch_ = value;
13938 bitField1_ |= 0x00010000;
13963 bitField1_ = (bitField1_ & ~0x00010000);
13964 logSearch_ =
false;
13969 private double logCostScalingFactor_ ;
13979 @java.lang.Override
13981 return logCostScalingFactor_;
13995 logCostScalingFactor_ = value;
13996 bitField1_ |= 0x00020000;
14010 bitField1_ = (bitField1_ & ~0x00020000);
14011 logCostScalingFactor_ = 0D;
14016 private double logCostOffset_ ;
14021 @java.lang.Override
14023 return logCostOffset_;
14032 logCostOffset_ = value;
14033 bitField1_ |= 0x00040000;
14042 bitField1_ = (bitField1_ & ~0x00040000);
14043 logCostOffset_ = 0D;
14048 private java.lang.Object logTag_ =
"";
14059 java.lang.Object ref = logTag_;
14060 if (!(ref instanceof java.lang.String)) {
14061 com.google.protobuf.ByteString bs =
14062 (com.google.protobuf.ByteString) ref;
14063 java.lang.String s = bs.toStringUtf8();
14067 return (java.lang.String) ref;
14079 public com.google.protobuf.ByteString
14081 java.lang.Object ref = logTag_;
14082 if (ref instanceof String) {
14083 com.google.protobuf.ByteString b =
14084 com.google.protobuf.ByteString.copyFromUtf8(
14085 (java.lang.String) ref);
14089 return (com.google.protobuf.ByteString) ref;
14103 java.lang.String value) {
14104 if (value ==
null) {
throw new NullPointerException(); }
14106 bitField1_ |= 0x00080000;
14121 bitField1_ = (bitField1_ & ~0x00080000);
14136 com.google.protobuf.ByteString value) {
14137 if (value ==
null) {
throw new NullPointerException(); }
14138 checkByteStringIsUtf8(value);
14140 bitField1_ |= 0x00080000;
14145 private boolean useIteratedLocalSearch_ ;
14155 @java.lang.Override
14157 return useIteratedLocalSearch_;
14171 useIteratedLocalSearch_ = value;
14172 bitField1_ |= 0x00100000;
14186 bitField1_ = (bitField1_ & ~0x00100000);
14187 useIteratedLocalSearch_ =
false;
14193 private com.google.protobuf.SingleFieldBuilder<
14204 return ((bitField1_ & 0x00200000) != 0);
14215 if (iteratedLocalSearchParametersBuilder_ ==
null) {
14218 return iteratedLocalSearchParametersBuilder_.getMessage();
14229 if (iteratedLocalSearchParametersBuilder_ ==
null) {
14230 if (value ==
null) {
14231 throw new NullPointerException();
14233 iteratedLocalSearchParameters_ = value;
14235 iteratedLocalSearchParametersBuilder_.setMessage(value);
14237 bitField1_ |= 0x00200000;
14250 if (iteratedLocalSearchParametersBuilder_ ==
null) {
14251 iteratedLocalSearchParameters_ = builderForValue.build();
14253 iteratedLocalSearchParametersBuilder_.setMessage(builderForValue.build());
14255 bitField1_ |= 0x00200000;
14267 if (iteratedLocalSearchParametersBuilder_ ==
null) {
14268 if (((bitField1_ & 0x00200000) != 0) &&
14269 iteratedLocalSearchParameters_ !=
null &&
14273 iteratedLocalSearchParameters_ = value;
14276 iteratedLocalSearchParametersBuilder_.mergeFrom(value);
14278 if (iteratedLocalSearchParameters_ !=
null) {
14279 bitField1_ |= 0x00200000;
14292 bitField1_ = (bitField1_ & ~0x00200000);
14293 iteratedLocalSearchParameters_ =
null;
14294 if (iteratedLocalSearchParametersBuilder_ !=
null) {
14295 iteratedLocalSearchParametersBuilder_.dispose();
14296 iteratedLocalSearchParametersBuilder_ =
null;
14309 bitField1_ |= 0x00200000;
14311 return getIteratedLocalSearchParametersFieldBuilder().getBuilder();
14321 if (iteratedLocalSearchParametersBuilder_ !=
null) {
14322 return iteratedLocalSearchParametersBuilder_.getMessageOrBuilder();
14324 return iteratedLocalSearchParameters_ ==
null ?
14335 private com.google.protobuf.SingleFieldBuilder<
14337 getIteratedLocalSearchParametersFieldBuilder() {
14338 if (iteratedLocalSearchParametersBuilder_ ==
null) {
14339 iteratedLocalSearchParametersBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
14342 getParentForChildren(),
14344 iteratedLocalSearchParameters_ =
null;
14346 return iteratedLocalSearchParametersBuilder_;
14355 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.RoutingSearchParameters();
14359 return DEFAULT_INSTANCE;
14364 @java.lang.Override
14366 com.google.protobuf.CodedInputStream input,
14367 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
14368 throws com.google.protobuf.InvalidProtocolBufferException {
14371 builder.mergeFrom(input, extensionRegistry);
14372 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
14373 throw e.setUnfinishedMessage(builder.buildPartial());
14374 }
catch (com.google.protobuf.UninitializedMessageException e) {
14375 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
14376 }
catch (java.io.IOException e) {
14377 throw new com.google.protobuf.InvalidProtocolBufferException(e)
14378 .setUnfinishedMessage(builder.buildPartial());
14380 return builder.buildPartial();
14388 @java.lang.Override
14393 @java.lang.Override
14395 return DEFAULT_INSTANCE;
static operations_research.RoutingIls.IteratedLocalSearchParameters getDefaultInstance()