4 #ifndef PROTOBUF_INCLUDED_ortools_2fconstraint_5fsolver_2frouting_5fparameters_2eproto 5 #define PROTOBUF_INCLUDED_ortools_2fconstraint_5fsolver_2frouting_5fparameters_2eproto 10 #include <google/protobuf/port_def.inc> 11 #if PROTOBUF_VERSION < 3007000 12 #error This file was generated by a newer version of protoc which is 13 #error incompatible with your Protocol Buffer headers. Please update 16 #if 3007001 < PROTOBUF_MIN_PROTOC_VERSION 17 #error This file was generated by an older version of protoc which is 18 #error incompatible with your Protocol Buffer headers. Please 19 #error regenerate this file with a newer version of protoc. 22 #include <google/protobuf/port_undef.inc> 23 #include <google/protobuf/io/coded_stream.h> 24 #include <google/protobuf/arena.h> 25 #include <google/protobuf/arenastring.h> 26 #include <google/protobuf/generated_message_table_driven.h> 27 #include <google/protobuf/generated_message_util.h> 28 #include <google/protobuf/inlined_string_field.h> 29 #include <google/protobuf/metadata.h> 30 #include <google/protobuf/message.h> 31 #include <google/protobuf/repeated_field.h> 32 #include <google/protobuf/extension_set.h> 33 #include <google/protobuf/unknown_field_set.h> 34 #include <google/protobuf/duration.pb.h> 36 #include "ortools/constraint_solver/solver_parameters.pb.h" 37 #include "ortools/util/optional_boolean.pb.h" 39 #include <google/protobuf/port_def.inc> 40 #define PROTOBUF_INTERNAL_EXPORT_ortools_2fconstraint_5fsolver_2frouting_5fparameters_2eproto 44 static const ::google::protobuf::internal::ParseTableField entries[]
46 static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
48 static const ::google::protobuf::internal::ParseTable schema[3]
52 static const ::google::protobuf::uint32
offsets[];
56 class RoutingModelParameters;
57 class RoutingModelParametersDefaultTypeInternal;
59 class RoutingSearchParameters;
60 class RoutingSearchParametersDefaultTypeInternal;
62 class RoutingSearchParameters_LocalSearchNeighborhoodOperators;
63 class RoutingSearchParameters_LocalSearchNeighborhoodOperatorsDefaultTypeInternal;
77 class RoutingSearchParameters_LocalSearchNeighborhoodOperators :
78 public ::google::protobuf::Message {
92 *
this = ::std::move(from);
96 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
97 if (
this != &from) InternalSwap(&from);
104 static const ::google::protobuf::Descriptor*
descriptor() {
111 return reinterpret_cast<const RoutingSearchParameters_LocalSearchNeighborhoodOperators*>(
125 return CreateMaybeMessage<RoutingSearchParameters_LocalSearchNeighborhoodOperators>(
nullptr);
129 return CreateMaybeMessage<RoutingSearchParameters_LocalSearchNeighborhoodOperators>(arena);
131 void CopyFrom(const ::google::protobuf::Message& from)
final;
132 void MergeFrom(const ::google::protobuf::Message& from)
final;
135 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
139 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 140 static const char* _InternalParse(
const char* begin,
const char* end,
void*
object, ::google::protobuf::internal::ParseContext* ctx);
141 ::google::protobuf::internal::ParseFunc _ParseFunc() const final {
return _InternalParse; }
144 ::google::protobuf::io::CodedInputStream* input)
final;
145 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 147 ::google::protobuf::io::CodedOutputStream* output)
const final;
149 ::google::protobuf::uint8* target)
const final;
150 int GetCachedSize() const final {
return _cached_size_.Get(); }
155 void SetCachedSize(
int size)
const final;
158 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
161 inline void* MaybeArenaPtr()
const {
166 ::google::protobuf::Metadata
GetMetadata() const final;
332 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
334 int use_relocate_pair_;
335 int use_relocate_neighbors_;
338 int use_cross_exchange_;
341 int use_lin_kernighan_;
343 int use_make_active_;
344 int use_make_inactive_;
345 int use_make_chain_inactive_;
346 int use_swap_active_;
347 int use_extended_swap_active_;
349 int use_full_path_lns_;
351 int use_inactive_lns_;
352 int use_node_pair_swap_active_;
353 int use_relocate_and_make_active_;
354 int use_exchange_pair_;
355 int use_relocate_expensive_chain_;
356 int use_light_relocate_pair_;
357 int use_relocate_subtrip_;
358 int use_exchange_subtrip_;
359 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
365 public ::
google::protobuf::Message {
379 *
this = ::std::move(from);
382 inline RoutingSearchParameters&
operator=(RoutingSearchParameters&& from) noexcept {
383 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
384 if (
this != &from) InternalSwap(&from);
391 static const ::google::protobuf::Descriptor*
descriptor() {
398 return reinterpret_cast<const RoutingSearchParameters*>(
412 return CreateMaybeMessage<RoutingSearchParameters>(
nullptr);
416 return CreateMaybeMessage<RoutingSearchParameters>(arena);
418 void CopyFrom(const ::google::protobuf::Message& from)
final;
419 void MergeFrom(const ::google::protobuf::Message& from)
final;
422 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
426 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 427 static const char* _InternalParse(
const char* begin,
const char* end,
void*
object, ::google::protobuf::internal::ParseContext* ctx);
428 ::google::protobuf::internal::ParseFunc _ParseFunc() const final {
return _InternalParse; }
431 ::google::protobuf::io::CodedInputStream* input)
final;
432 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 434 ::google::protobuf::io::CodedOutputStream* output)
const final;
436 ::google::protobuf::uint8* target)
const final;
437 int GetCachedSize() const final {
return _cached_size_.Get(); }
442 void SetCachedSize(
int size)
const final;
445 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
448 inline void* MaybeArenaPtr()
const {
453 ::google::protobuf::Metadata
GetMetadata() const final;
462 bool has_local_search_operators() const;
463 void clear_local_search_operators();
464 static const
int kLocalSearchOperatorsFieldNumber = 3;
471 bool has_time_limit() const;
472 void clear_time_limit();
473 static const
int kTimeLimitFieldNumber = 9;
474 const ::
google::protobuf::Duration& time_limit() const;
475 ::
google::protobuf::Duration* release_time_limit();
476 ::
google::protobuf::Duration* mutable_time_limit();
477 void set_allocated_time_limit(::
google::protobuf::Duration* time_limit);
480 bool has_lns_time_limit() const;
481 void clear_lns_time_limit();
482 static const
int kLnsTimeLimitFieldNumber = 10;
483 const ::
google::protobuf::Duration& lns_time_limit() const;
484 ::
google::protobuf::Duration* release_lns_time_limit();
485 ::
google::protobuf::Duration* mutable_lns_time_limit();
486 void set_allocated_lns_time_limit(::
google::protobuf::Duration* lns_time_limit);
489 void clear_first_solution_strategy();
490 static const
int kFirstSolutionStrategyFieldNumber = 1;
495 void clear_local_search_metaheuristic();
496 static const
int kLocalSearchMetaheuristicFieldNumber = 4;
501 void clear_guided_local_search_lambda_coefficient();
502 static const
int kGuidedLocalSearchLambdaCoefficientFieldNumber = 5;
503 double guided_local_search_lambda_coefficient() const;
504 void set_guided_local_search_lambda_coefficient(
double value);
507 void clear_optimization_step();
508 static const
int kOptimizationStepFieldNumber = 7;
509 double optimization_step() const;
510 void set_optimization_step(
double value);
513 void clear_solution_limit();
514 static const
int kSolutionLimitFieldNumber = 8;
515 ::
google::protobuf::int64 solution_limit() const;
516 void set_solution_limit(::
google::protobuf::int64 value);
519 void clear_use_unfiltered_first_solution_strategy();
520 static const
int kUseUnfilteredFirstSolutionStrategyFieldNumber = 2;
521 bool use_unfiltered_first_solution_strategy() const;
522 void set_use_unfiltered_first_solution_strategy(
bool value);
525 void clear_savings_add_reverse_arcs();
526 static const
int kSavingsAddReverseArcsFieldNumber = 15;
527 bool savings_add_reverse_arcs() const;
528 void set_savings_add_reverse_arcs(
bool value);
531 void clear_savings_parallel_routes();
532 static const
int kSavingsParallelRoutesFieldNumber = 19;
533 bool savings_parallel_routes() const;
534 void set_savings_parallel_routes(
bool value);
537 void clear_use_depth_first_search();
538 static const
int kUseDepthFirstSearchFieldNumber = 6;
539 bool use_depth_first_search() const;
540 void set_use_depth_first_search(
bool value);
543 void clear_use_full_propagation();
544 static const
int kUseFullPropagationFieldNumber = 11;
545 bool use_full_propagation() const;
546 void set_use_full_propagation(
bool value);
549 void clear_log_search();
550 static const
int kLogSearchFieldNumber = 13;
551 bool log_search() const;
552 void set_log_search(
bool value);
555 void clear_savings_neighbors_ratio();
556 static const
int kSavingsNeighborsRatioFieldNumber = 14;
557 double savings_neighbors_ratio() const;
558 void set_savings_neighbors_ratio(
double value);
561 void clear_cheapest_insertion_farthest_seeds_ratio();
562 static const
int kCheapestInsertionFarthestSeedsRatioFieldNumber = 16;
563 double cheapest_insertion_farthest_seeds_ratio() const;
564 void set_cheapest_insertion_farthest_seeds_ratio(
double value);
567 void clear_savings_arc_coefficient();
568 static const
int kSavingsArcCoefficientFieldNumber = 18;
569 double savings_arc_coefficient() const;
570 void set_savings_arc_coefficient(
double value);
573 void clear_number_of_solutions_to_collect();
574 static const
int kNumberOfSolutionsToCollectFieldNumber = 17;
575 ::
google::protobuf::int32 number_of_solutions_to_collect() const;
576 void set_number_of_solutions_to_collect(::
google::protobuf::int32 value);
579 void clear_relocate_expensive_chain_num_arcs_to_consider();
580 static const
int kRelocateExpensiveChainNumArcsToConsiderFieldNumber = 20;
581 ::
google::protobuf::int32 relocate_expensive_chain_num_arcs_to_consider() const;
582 void set_relocate_expensive_chain_num_arcs_to_consider(::
google::protobuf::int32 value);
585 void clear_cheapest_insertion_neighbors_ratio();
586 static const
int kCheapestInsertionNeighborsRatioFieldNumber = 21;
587 double cheapest_insertion_neighbors_ratio() const;
588 void set_cheapest_insertion_neighbors_ratio(
double value);
591 void clear_log_cost_scaling_factor();
592 static const
int kLogCostScalingFactorFieldNumber = 22;
593 double log_cost_scaling_factor() const;
594 void set_log_cost_scaling_factor(
double value);
597 void clear_savings_max_memory_usage_bytes();
598 static const
int kSavingsMaxMemoryUsageBytesFieldNumber = 23;
599 double savings_max_memory_usage_bytes() const;
600 void set_savings_max_memory_usage_bytes(
double value);
603 void clear_use_cp_sat();
604 static const
int kUseCpSatFieldNumber = 27;
610 static const
int kUseCpFieldNumber = 28;
618 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
620 ::
google::protobuf::Duration* time_limit_;
621 ::
google::protobuf::Duration* lns_time_limit_;
622 int first_solution_strategy_;
623 int local_search_metaheuristic_;
624 double guided_local_search_lambda_coefficient_;
625 double optimization_step_;
626 ::
google::protobuf::int64 solution_limit_;
627 bool use_unfiltered_first_solution_strategy_;
628 bool savings_add_reverse_arcs_;
629 bool savings_parallel_routes_;
630 bool use_depth_first_search_;
631 bool use_full_propagation_;
633 double savings_neighbors_ratio_;
634 double cheapest_insertion_farthest_seeds_ratio_;
635 double savings_arc_coefficient_;
636 ::
google::protobuf::int32 number_of_solutions_to_collect_;
637 ::
google::protobuf::int32 relocate_expensive_chain_num_arcs_to_consider_;
638 double cheapest_insertion_neighbors_ratio_;
639 double log_cost_scaling_factor_;
640 double savings_max_memory_usage_bytes_;
643 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
649 public ::
google::protobuf::Message {
663 *
this = ::std::move(from);
666 inline RoutingModelParameters&
operator=(RoutingModelParameters&& from) noexcept {
667 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
668 if (
this != &from) InternalSwap(&from);
675 static const ::google::protobuf::Descriptor*
descriptor() {
682 return reinterpret_cast<const RoutingModelParameters*>(
696 return CreateMaybeMessage<RoutingModelParameters>(
nullptr);
700 return CreateMaybeMessage<RoutingModelParameters>(arena);
702 void CopyFrom(const ::google::protobuf::Message& from)
final;
703 void MergeFrom(const ::google::protobuf::Message& from)
final;
706 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
710 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 711 static const char* _InternalParse(
const char* begin,
const char* end,
void*
object, ::google::protobuf::internal::ParseContext* ctx);
712 ::google::protobuf::internal::ParseFunc _ParseFunc() const final {
return _InternalParse; }
715 ::google::protobuf::io::CodedInputStream* input)
final;
716 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 718 ::google::protobuf::io::CodedOutputStream* output)
const final;
720 ::google::protobuf::uint8* target)
const final;
721 int GetCachedSize() const final {
return _cached_size_.Get(); }
726 void SetCachedSize(
int size)
const final;
729 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
732 inline void* MaybeArenaPtr()
const {
737 ::google::protobuf::Metadata
GetMetadata() const final;
744 bool has_solver_parameters() const;
745 void clear_solver_parameters();
746 static const
int kSolverParametersFieldNumber = 1;
750 void set_allocated_solver_parameters(::
operations_research::ConstraintSolverParameters* solver_parameters);
753 void clear_reduce_vehicle_cost_model();
754 static const
int kReduceVehicleCostModelFieldNumber = 2;
755 bool reduce_vehicle_cost_model() const;
756 void set_reduce_vehicle_cost_model(
bool value);
759 void clear_max_callback_cache_size();
760 static const
int kMaxCallbackCacheSizeFieldNumber = 3;
761 ::
google::protobuf::int32 max_callback_cache_size() const;
762 void set_max_callback_cache_size(::
google::protobuf::int32 value);
768 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
770 bool reduce_vehicle_cost_model_;
771 ::
google::protobuf::int32 max_callback_cache_size_;
772 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
781 #pragma GCC diagnostic push 782 #pragma GCC diagnostic ignored "-Wstrict-aliasing" 792 return static_cast< ::operations_research::OptionalBoolean >(use_relocate_);
796 use_relocate_ = value;
802 use_relocate_pair_ = 0;
806 return static_cast< ::operations_research::OptionalBoolean >(use_relocate_pair_);
810 use_relocate_pair_ = value;
816 use_light_relocate_pair_ = 0;
820 return static_cast< ::operations_research::OptionalBoolean >(use_light_relocate_pair_);
824 use_light_relocate_pair_ = value;
830 use_relocate_neighbors_ = 0;
834 return static_cast< ::operations_research::OptionalBoolean >(use_relocate_neighbors_);
838 use_relocate_neighbors_ = value;
844 use_relocate_subtrip_ = 0;
848 return static_cast< ::operations_research::OptionalBoolean >(use_relocate_subtrip_);
852 use_relocate_subtrip_ = value;
862 return static_cast< ::operations_research::OptionalBoolean >(use_exchange_);
866 use_exchange_ = value;
872 use_exchange_pair_ = 0;
876 return static_cast< ::operations_research::OptionalBoolean >(use_exchange_pair_);
880 use_exchange_pair_ = value;
886 use_exchange_subtrip_ = 0;
890 return static_cast< ::operations_research::OptionalBoolean >(use_exchange_subtrip_);
894 use_exchange_subtrip_ = value;
904 return static_cast< ::operations_research::OptionalBoolean >(use_cross_);
914 use_cross_exchange_ = 0;
918 return static_cast< ::operations_research::OptionalBoolean >(use_cross_exchange_);
922 use_cross_exchange_ = value;
928 use_relocate_expensive_chain_ = 0;
932 return static_cast< ::operations_research::OptionalBoolean >(use_relocate_expensive_chain_);
936 use_relocate_expensive_chain_ = value;
946 return static_cast< ::operations_research::OptionalBoolean >(use_two_opt_);
950 use_two_opt_ = value;
960 return static_cast< ::operations_research::OptionalBoolean >(use_or_opt_);
970 use_lin_kernighan_ = 0;
974 return static_cast< ::operations_research::OptionalBoolean >(use_lin_kernighan_);
978 use_lin_kernighan_ = value;
988 return static_cast< ::operations_research::OptionalBoolean >(use_tsp_opt_);
992 use_tsp_opt_ = value;
998 use_make_active_ = 0;
1002 return static_cast< ::operations_research::OptionalBoolean >(use_make_active_);
1006 use_make_active_ = value;
1012 use_relocate_and_make_active_ = 0;
1016 return static_cast< ::operations_research::OptionalBoolean >(use_relocate_and_make_active_);
1020 use_relocate_and_make_active_ = value;
1026 use_make_inactive_ = 0;
1030 return static_cast< ::operations_research::OptionalBoolean >(use_make_inactive_);
1034 use_make_inactive_ = value;
1040 use_make_chain_inactive_ = 0;
1044 return static_cast< ::operations_research::OptionalBoolean >(use_make_chain_inactive_);
1048 use_make_chain_inactive_ = value;
1054 use_swap_active_ = 0;
1058 return static_cast< ::operations_research::OptionalBoolean >(use_swap_active_);
1062 use_swap_active_ = value;
1068 use_extended_swap_active_ = 0;
1072 return static_cast< ::operations_research::OptionalBoolean >(use_extended_swap_active_);
1076 use_extended_swap_active_ = value;
1082 use_node_pair_swap_active_ = 0;
1086 return static_cast< ::operations_research::OptionalBoolean >(use_node_pair_swap_active_);
1090 use_node_pair_swap_active_ = value;
1100 return static_cast< ::operations_research::OptionalBoolean >(use_path_lns_);
1104 use_path_lns_ = value;
1110 use_full_path_lns_ = 0;
1114 return static_cast< ::operations_research::OptionalBoolean >(use_full_path_lns_);
1118 use_full_path_lns_ = value;
1128 return static_cast< ::operations_research::OptionalBoolean >(use_tsp_lns_);
1132 use_tsp_lns_ = value;
1138 use_inactive_lns_ = 0;
1142 return static_cast< ::operations_research::OptionalBoolean >(use_inactive_lns_);
1146 use_inactive_lns_ = value;
1156 first_solution_strategy_ = 0;
1160 return static_cast< ::operations_research::FirstSolutionStrategy_Value >(first_solution_strategy_);
1164 first_solution_strategy_ = value;
1170 use_unfiltered_first_solution_strategy_ =
false;
1174 return use_unfiltered_first_solution_strategy_;
1178 use_unfiltered_first_solution_strategy_ = value;
1184 savings_neighbors_ratio_ = 0;
1188 return savings_neighbors_ratio_;
1192 savings_neighbors_ratio_ = value;
1198 savings_max_memory_usage_bytes_ = 0;
1202 return savings_max_memory_usage_bytes_;
1206 savings_max_memory_usage_bytes_ = value;
1212 savings_add_reverse_arcs_ =
false;
1216 return savings_add_reverse_arcs_;
1220 savings_add_reverse_arcs_ = value;
1226 savings_arc_coefficient_ = 0;
1230 return savings_arc_coefficient_;
1234 savings_arc_coefficient_ = value;
1240 savings_parallel_routes_ =
false;
1244 return savings_parallel_routes_;
1248 savings_parallel_routes_ = value;
1254 cheapest_insertion_farthest_seeds_ratio_ = 0;
1258 return cheapest_insertion_farthest_seeds_ratio_;
1262 cheapest_insertion_farthest_seeds_ratio_ = value;
1268 cheapest_insertion_neighbors_ratio_ = 0;
1272 return cheapest_insertion_neighbors_ratio_;
1276 cheapest_insertion_neighbors_ratio_ = value;
1285 if (GetArenaNoVirtual() ==
nullptr && local_search_operators_ !=
nullptr) {
1286 delete local_search_operators_;
1288 local_search_operators_ =
nullptr;
1291 const ::operations_research::RoutingSearchParameters_LocalSearchNeighborhoodOperators* p = local_search_operators_;
1293 return p !=
nullptr ? *p : *reinterpret_cast<const ::operations_research::RoutingSearchParameters_LocalSearchNeighborhoodOperators*>(
1300 local_search_operators_ =
nullptr;
1305 if (local_search_operators_ ==
nullptr) {
1306 auto* p = CreateMaybeMessage<::operations_research::RoutingSearchParameters_LocalSearchNeighborhoodOperators>(GetArenaNoVirtual());
1307 local_search_operators_ = p;
1310 return local_search_operators_;
1313 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1314 if (message_arena ==
nullptr) {
1315 delete local_search_operators_;
1317 if (local_search_operators) {
1318 ::google::protobuf::Arena* submessage_arena =
nullptr;
1319 if (message_arena != submessage_arena) {
1320 local_search_operators = ::google::protobuf::internal::GetOwnedMessage(
1321 message_arena, local_search_operators, submessage_arena);
1327 local_search_operators_ = local_search_operators;
1333 relocate_expensive_chain_num_arcs_to_consider_ = 0;
1337 return relocate_expensive_chain_num_arcs_to_consider_;
1341 relocate_expensive_chain_num_arcs_to_consider_ = value;
1347 local_search_metaheuristic_ = 0;
1351 return static_cast< ::operations_research::LocalSearchMetaheuristic_Value >(local_search_metaheuristic_);
1355 local_search_metaheuristic_ = value;
1361 guided_local_search_lambda_coefficient_ = 0;
1365 return guided_local_search_lambda_coefficient_;
1369 guided_local_search_lambda_coefficient_ = value;
1375 use_depth_first_search_ =
false;
1379 return use_depth_first_search_;
1383 use_depth_first_search_ = value;
1393 return static_cast< ::operations_research::OptionalBoolean >(use_cp_);
1407 return static_cast< ::operations_research::OptionalBoolean >(use_cp_sat_);
1411 use_cp_sat_ = value;
1417 optimization_step_ = 0;
1421 return optimization_step_;
1425 optimization_step_ = value;
1431 number_of_solutions_to_collect_ = 0;
1435 return number_of_solutions_to_collect_;
1439 number_of_solutions_to_collect_ = value;
1445 solution_limit_ = PROTOBUF_LONGLONG(0);
1449 return solution_limit_;
1453 solution_limit_ = value;
1462 const ::google::protobuf::Duration* p = time_limit_;
1464 return p !=
nullptr ? *p : *reinterpret_cast<const ::google::protobuf::Duration*>(
1465 &::google::protobuf::_Duration_default_instance_);
1470 ::google::protobuf::Duration* temp = time_limit_;
1471 time_limit_ =
nullptr;
1476 if (time_limit_ ==
nullptr) {
1477 auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual());
1484 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1485 if (message_arena ==
nullptr) {
1486 delete reinterpret_cast< ::google::protobuf::MessageLite*>(time_limit_);
1489 ::google::protobuf::Arena* submessage_arena =
1490 reinterpret_cast<::google::protobuf::MessageLite*>(time_limit)->GetArena();
1491 if (message_arena != submessage_arena) {
1492 time_limit = ::google::protobuf::internal::GetOwnedMessage(
1493 message_arena, time_limit, submessage_arena);
1499 time_limit_ = time_limit;
1508 const ::google::protobuf::Duration* p = lns_time_limit_;
1510 return p !=
nullptr ? *p : *reinterpret_cast<const ::google::protobuf::Duration*>(
1511 &::google::protobuf::_Duration_default_instance_);
1516 ::google::protobuf::Duration* temp = lns_time_limit_;
1517 lns_time_limit_ =
nullptr;
1522 if (lns_time_limit_ ==
nullptr) {
1523 auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual());
1524 lns_time_limit_ = p;
1527 return lns_time_limit_;
1530 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1531 if (message_arena ==
nullptr) {
1532 delete reinterpret_cast< ::google::protobuf::MessageLite*>(lns_time_limit_);
1534 if (lns_time_limit) {
1535 ::google::protobuf::Arena* submessage_arena =
1536 reinterpret_cast<::google::protobuf::MessageLite*>(lns_time_limit)->GetArena();
1537 if (message_arena != submessage_arena) {
1538 lns_time_limit = ::google::protobuf::internal::GetOwnedMessage(
1539 message_arena, lns_time_limit, submessage_arena);
1545 lns_time_limit_ = lns_time_limit;
1551 use_full_propagation_ =
false;
1555 return use_full_propagation_;
1559 use_full_propagation_ = value;
1565 log_search_ =
false;
1573 log_search_ = value;
1579 log_cost_scaling_factor_ = 0;
1583 return log_cost_scaling_factor_;
1587 log_cost_scaling_factor_ = value;
1600 const ::operations_research::ConstraintSolverParameters* p = solver_parameters_;
1602 return p !=
nullptr ? *p : *reinterpret_cast<const ::operations_research::ConstraintSolverParameters*>(
1603 &::operations_research::_ConstraintSolverParameters_default_instance_);
1608 ::operations_research::ConstraintSolverParameters* temp = solver_parameters_;
1609 solver_parameters_ =
nullptr;
1614 if (solver_parameters_ ==
nullptr) {
1615 auto* p = CreateMaybeMessage<::operations_research::ConstraintSolverParameters>(GetArenaNoVirtual());
1616 solver_parameters_ = p;
1619 return solver_parameters_;
1622 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1623 if (message_arena ==
nullptr) {
1624 delete reinterpret_cast< ::google::protobuf::MessageLite*>(solver_parameters_);
1626 if (solver_parameters) {
1627 ::google::protobuf::Arena* submessage_arena =
nullptr;
1628 if (message_arena != submessage_arena) {
1629 solver_parameters = ::google::protobuf::internal::GetOwnedMessage(
1630 message_arena, solver_parameters, submessage_arena);
1636 solver_parameters_ = solver_parameters;
1642 reduce_vehicle_cost_model_ =
false;
1646 return reduce_vehicle_cost_model_;
1650 reduce_vehicle_cost_model_ = value;
1656 max_callback_cache_size_ = 0;
1660 return max_callback_cache_size_;
1664 max_callback_cache_size_ = value;
1669 #pragma GCC diagnostic pop 1682 #include <google/protobuf/port_undef.inc> 1683 #endif // PROTOBUF_INCLUDED_ortools_2fconstraint_5fsolver_2frouting_5fparameters_2eproto FirstSolutionStrategy_Value
::operations_research::OptionalBoolean use_relocate_and_make_active() const
static const int kUseCrossFieldNumber
bool IsInitialized() const final
void clear_local_search_operators()
::operations_research::OptionalBoolean use_relocate_pair() const
void clear_use_make_active()
.operations_research.OptionalBoolean use_make_active = 11;
::google::protobuf::int32 relocate_expensive_chain_num_arcs_to_consider() const
::google::protobuf::Duration * release_lns_time_limit()
static constexpr int kIndexInFileMessages
void set_use_node_pair_swap_active(::operations_research::OptionalBoolean value)
void set_allocated_time_limit(::google::protobuf::Duration *time_limit)
double cheapest_insertion_neighbors_ratio() const
void clear_savings_arc_coefficient()
double savings_arc_coefficient = 18;
::operations_research::OptionalBoolean use_relocate_expensive_chain() const
void set_use_lin_kernighan(::operations_research::OptionalBoolean value)
static const int kUseExchangeSubtripFieldNumber
bool has_local_search_operators() const
accessors ----------------------------------------------------—
void Swap(RoutingModelParameters *other)
void set_use_full_propagation(bool value)
void set_use_swap_active(::operations_research::OptionalBoolean value)
::operations_research::RoutingSearchParameters_LocalSearchNeighborhoodOperators * mutable_local_search_operators()
void clear_cheapest_insertion_neighbors_ratio()
double cheapest_insertion_neighbors_ratio = 21;
::google::protobuf::Metadata GetMetadata() const final
void set_use_cross(::operations_research::OptionalBoolean value)
static const int kUsePathLnsFieldNumber
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(::google::protobuf::uint8 *target) const final
void set_use_exchange(::operations_research::OptionalBoolean value)
void set_savings_add_reverse_arcs(bool value)
void clear_solution_limit()
int64 solution_limit = 8;
void Swap(RoutingSearchParameters_LocalSearchNeighborhoodOperators *other)
::operations_research::OptionalBoolean use_relocate_neighbors() const
void clear_use_relocate_pair()
.operations_research.OptionalBoolean use_relocate_pair = 2;
void CopyFrom(const ::google::protobuf::Message &from) final
void clear_use_full_path_lns()
.operations_research.OptionalBoolean use_full_path_lns = 17;
void clear_use_light_relocate_pair()
.operations_research.OptionalBoolean use_light_relocate_pair = 24;
bool has_solver_parameters() const
nested types -------------------------------------------------—
void set_use_relocate_subtrip(::operations_research::OptionalBoolean value)
bool has_lns_time_limit() const
.google.protobuf.Duration lns_time_limit = 10;
::operations_research::FirstSolutionStrategy_Value first_solution_strategy() const
::operations_research::OptionalBoolean use_swap_active() const
void clear_local_search_metaheuristic()
.operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristic = 4;
void set_use_make_active(::operations_research::OptionalBoolean value)
void set_local_search_metaheuristic(::operations_research::LocalSearchMetaheuristic_Value value)
void clear_use_lin_kernighan()
.operations_research.OptionalBoolean use_lin_kernighan = 9;
void clear_use_full_propagation()
bool use_full_propagation = 11;
void clear_use_or_opt()
.operations_research.OptionalBoolean use_or_opt = 8;
::google::protobuf::Duration * mutable_lns_time_limit()
void clear_guided_local_search_lambda_coefficient()
double guided_local_search_lambda_coefficient = 5;
::google::protobuf::int64 solution_limit() const
void clear_use_path_lns()
.operations_research.OptionalBoolean use_path_lns = 16;
static const int kUseExtendedSwapActiveFieldNumber
::operations_research::OptionalBoolean use_cross() const
::operations_research::OptionalBoolean use_relocate_subtrip() const
::operations_research::OptionalBoolean use_exchange_pair() const
void set_savings_arc_coefficient(double value)
void clear_optimization_step()
double optimization_step = 7;
RoutingSearchParameters_LocalSearchNeighborhoodOperators & operator=(const RoutingSearchParameters_LocalSearchNeighborhoodOperators &from)
void set_use_path_lns(::operations_research::OptionalBoolean value)
bool use_unfiltered_first_solution_strategy() const
void clear_use_tsp_lns()
.operations_research.OptionalBoolean use_tsp_lns = 18;
double savings_neighbors_ratio() const
void clear_savings_add_reverse_arcs()
bool savings_add_reverse_arcs = 15;
void set_max_callback_cache_size(::google::protobuf::int32 value)
::operations_research::OptionalBoolean use_cross_exchange() const
void set_use_cp_sat(::operations_research::OptionalBoolean value)
::operations_research::OptionalBoolean use_tsp_lns() const
void Swap(RoutingSearchParameters *other)
void clear_use_node_pair_swap_active()
.operations_research.OptionalBoolean use_node_pair_swap_active = 20;
void set_log_search(bool value)
::operations_research::OptionalBoolean use_exchange_subtrip() const
static const int kUseRelocateAndMakeActiveFieldNumber
void set_use_relocate_neighbors(::operations_research::OptionalBoolean value)
static const int kUseRelocateFieldNumber
void clear_use_make_inactive()
.operations_research.OptionalBoolean use_make_inactive = 12;
void clear_first_solution_strategy()
.operations_research.FirstSolutionStrategy.Value first_solution_strategy = 1;
bool savings_add_reverse_arcs() const
double savings_arc_coefficient() const
::operations_research::LocalSearchMetaheuristic_Value local_search_metaheuristic() const
void set_use_make_inactive(::operations_research::OptionalBoolean value)
void set_use_inactive_lns(::operations_research::OptionalBoolean value)
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const final
static const int kUseRelocateSubtripFieldNumber
void clear_use_unfiltered_first_solution_strategy()
bool use_unfiltered_first_solution_strategy = 2;
static const int kUseTspLnsFieldNumber
void set_allocated_lns_time_limit(::google::protobuf::Duration *lns_time_limit)
void set_use_extended_swap_active(::operations_research::OptionalBoolean value)
void set_use_full_path_lns(::operations_research::OptionalBoolean value)
static const int kUseCrossExchangeFieldNumber
static const int kUseLightRelocatePairFieldNumber
::operations_research::OptionalBoolean use_two_opt() const
::operations_research::OptionalBoolean use_or_opt() const
double guided_local_search_lambda_coefficient() const
void set_use_exchange_pair(::operations_research::OptionalBoolean value)
double cheapest_insertion_farthest_seeds_ratio() const
static const int kUseFullPathLnsFieldNumber
void clear_savings_parallel_routes()
bool savings_parallel_routes = 19;
static const int kUseLinKernighanFieldNumber
void clear_use_swap_active()
.operations_research.OptionalBoolean use_swap_active = 14;
void set_relocate_expensive_chain_num_arcs_to_consider(::google::protobuf::int32 value)
static const RoutingSearchParameters_LocalSearchNeighborhoodOperators & default_instance()
void set_cheapest_insertion_farthest_seeds_ratio(double value)
bool savings_parallel_routes() const
void set_reduce_vehicle_cost_model(bool value)
static const int kUseNodePairSwapActiveFieldNumber
const ::operations_research::RoutingSearchParameters_LocalSearchNeighborhoodOperators & local_search_operators() const
void clear_reduce_vehicle_cost_model()
bool reduce_vehicle_cost_model = 2;
bool use_full_propagation() const
void clear_use_tsp_opt()
.operations_research.OptionalBoolean use_tsp_opt = 10;
RoutingSearchParameters_LocalSearchNeighborhoodOperators * New() const final
implements Message -------------------------------------------—
void clear_use_relocate_neighbors()
.operations_research.OptionalBoolean use_relocate_neighbors = 3;
void clear_use_exchange()
.operations_research.OptionalBoolean use_exchange = 4;
void set_allocated_solver_parameters(::operations_research::ConstraintSolverParameters *solver_parameters)
void clear_max_callback_cache_size()
int32 max_callback_cache_size = 3;
void set_first_solution_strategy(::operations_research::FirstSolutionStrategy_Value value)
void set_savings_max_memory_usage_bytes(double value)
void set_use_make_chain_inactive(::operations_research::OptionalBoolean value)
::operations_research::ConstraintSolverParameters * release_solver_parameters()
::operations_research::OptionalBoolean use_tsp_opt() const
void clear_use_cp()
.operations_research.OptionalBoolean use_cp = 28;
static const int kUseRelocatePairFieldNumber
::operations_research::OptionalBoolean use_make_chain_inactive() const
::operations_research::OptionalBoolean use_exchange() const
void clear_savings_max_memory_usage_bytes()
double savings_max_memory_usage_bytes = 23;
::operations_research::OptionalBoolean use_full_path_lns() const
const ::operations_research::ConstraintSolverParameters & solver_parameters() const
static const int kUseOrOptFieldNumber
void clear_use_exchange_subtrip()
.operations_research.OptionalBoolean use_exchange_subtrip = 26;
bool reduce_vehicle_cost_model() const
void set_log_cost_scaling_factor(double value)
RoutingSearchParameters_LocalSearchNeighborhoodOperatorsDefaultTypeInternal _RoutingSearchParameters_LocalSearchNeighborhoodOperators_default_instance_
void set_number_of_solutions_to_collect(::google::protobuf::int32 value)
static const int kUseSwapActiveFieldNumber
static const RoutingSearchParameters_LocalSearchNeighborhoodOperators * internal_default_instance()
bool use_depth_first_search() const
size_t ByteSizeLong() const final
static const int kUseInactiveLnsFieldNumber
::operations_research::OptionalBoolean use_path_lns() const
void clear_use_relocate_and_make_active()
.operations_research.OptionalBoolean use_relocate_and_make_active = 21;
void set_use_or_opt(::operations_research::OptionalBoolean value)
double log_cost_scaling_factor() const
void clear_cheapest_insertion_farthest_seeds_ratio()
double cheapest_insertion_farthest_seeds_ratio = 16;
static const ::google::protobuf::Descriptor * descriptor()
static const int kUseTwoOptFieldNumber
::google::protobuf::Duration * mutable_time_limit()
void set_use_unfiltered_first_solution_strategy(bool value)
void set_solution_limit(::google::protobuf::int64 value)
void clear_use_cross_exchange()
.operations_research.OptionalBoolean use_cross_exchange = 6;
::operations_research::OptionalBoolean use_inactive_lns() const
void set_use_tsp_opt(::operations_research::OptionalBoolean value)
static const int kUseExchangeFieldNumber
virtual ~RoutingSearchParameters_LocalSearchNeighborhoodOperators()
bool has_time_limit() const
.google.protobuf.Duration time_limit = 9;
void set_optimization_step(double value)
RoutingModelParametersDefaultTypeInternal _RoutingModelParameters_default_instance_
void clear_log_cost_scaling_factor()
double log_cost_scaling_factor = 22;
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) final
void set_use_light_relocate_pair(::operations_research::OptionalBoolean value)
RoutingSearchParametersDefaultTypeInternal _RoutingSearchParameters_default_instance_
void set_use_depth_first_search(bool value)
::operations_research::OptionalBoolean use_cp() const
void set_use_relocate_pair(::operations_research::OptionalBoolean value)
::google::protobuf::int32 max_callback_cache_size() const
void clear_use_depth_first_search()
bool use_depth_first_search = 6;
void set_use_relocate_expensive_chain(::operations_research::OptionalBoolean value)
static const int kUseMakeActiveFieldNumber
void clear_use_inactive_lns()
.operations_research.OptionalBoolean use_inactive_lns = 19;
::google::protobuf::int32 number_of_solutions_to_collect() const
::operations_research::OptionalBoolean use_extended_swap_active() const
::operations_research::ConstraintSolverParameters * mutable_solver_parameters()
void AddDescriptors_ortools_2fconstraint_5fsolver_2frouting_5fparameters_2eproto()
RoutingSearchParameters_LocalSearchNeighborhoodOperators()
void clear_use_two_opt()
.operations_research.OptionalBoolean use_two_opt = 7;
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in c...
void set_use_cp(::operations_research::OptionalBoolean value)
static void InitAsDefaultInstance()
static const int kUseExchangePairFieldNumber
void set_use_relocate_and_make_active(::operations_research::OptionalBoolean value)
double savings_max_memory_usage_bytes() const
::operations_research::OptionalBoolean use_cp_sat() const
::operations_research::OptionalBoolean use_light_relocate_pair() const
void set_use_exchange_subtrip(::operations_research::OptionalBoolean value)
void clear_use_make_chain_inactive()
.operations_research.OptionalBoolean use_make_chain_inactive = 13;
void set_savings_neighbors_ratio(double value)
void clear_use_extended_swap_active()
.operations_research.OptionalBoolean use_extended_swap_active = 15;
void set_allocated_local_search_operators(::operations_research::RoutingSearchParameters_LocalSearchNeighborhoodOperators *local_search_operators)
::operations_research::OptionalBoolean use_lin_kernighan() const
::operations_research::OptionalBoolean use_relocate() const
void set_use_tsp_lns(::operations_research::OptionalBoolean value)
static const int kUseRelocateNeighborsFieldNumber
void clear_use_relocate_expensive_chain()
.operations_research.OptionalBoolean use_relocate_expensive_chain = 23;
friend void swap(RoutingSearchParameters_LocalSearchNeighborhoodOperators &a, RoutingSearchParameters_LocalSearchNeighborhoodOperators &b)
double optimization_step() const
LocalSearchMetaheuristic_Value
::operations_research::OptionalBoolean use_make_inactive() const
void clear_use_relocate()
nested types -------------------------------------------------—
static const int kUseRelocateExpensiveChainFieldNumber
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::operations_research::OptionalBoolean use_make_active() const
void set_cheapest_insertion_neighbors_ratio(double value)
void clear_number_of_solutions_to_collect()
int32 number_of_solutions_to_collect = 17;
void set_use_two_opt(::operations_research::OptionalBoolean value)
const ::google::protobuf::Duration & lns_time_limit() const
::google::protobuf::Duration * release_time_limit()
int GetCachedSize() const final
void set_use_relocate(::operations_research::OptionalBoolean value)
void clear_use_exchange_pair()
.operations_research.OptionalBoolean use_exchange_pair = 22;
::operations_research::RoutingSearchParameters_LocalSearchNeighborhoodOperators * release_local_search_operators()
void clear_use_cross()
.operations_research.OptionalBoolean use_cross = 5;
static const int kUseMakeChainInactiveFieldNumber
static const int kUseTspOptFieldNumber
::operations_research::OptionalBoolean use_node_pair_swap_active() const
void clear_relocate_expensive_chain_num_arcs_to_consider()
int32 relocate_expensive_chain_num_arcs_to_consider = 20;
void clear_use_relocate_subtrip()
.operations_research.OptionalBoolean use_relocate_subtrip = 25;
void set_savings_parallel_routes(bool value)
void set_use_cross_exchange(::operations_research::OptionalBoolean value)
static const int kUseMakeInactiveFieldNumber
void MergeFrom(const ::google::protobuf::Message &from) final
void clear_log_search()
bool log_search = 13;
const ::google::protobuf::Duration & time_limit() const
void clear_use_cp_sat()
.operations_research.OptionalBoolean use_cp_sat = 27;
void set_guided_local_search_lambda_coefficient(double value)
void clear_savings_neighbors_ratio()
double savings_neighbors_ratio = 14;