4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ortools_2fconstraint_5fsolver_2frouting_5fparameters_2eproto 5 #define GOOGLE_PROTOBUF_INCLUDED_ortools_2fconstraint_5fsolver_2frouting_5fparameters_2eproto 10 #include <google/protobuf/port_def.inc> 11 #if PROTOBUF_VERSION < 3008000 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 3008000 < 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/generated_message_reflection.h> 31 #include <google/protobuf/message.h> 32 #include <google/protobuf/repeated_field.h> 33 #include <google/protobuf/extension_set.h> 34 #include <google/protobuf/unknown_field_set.h> 35 #include <google/protobuf/duration.pb.h> 37 #include "ortools/constraint_solver/solver_parameters.pb.h" 38 #include "ortools/util/optional_boolean.pb.h" 40 #include <google/protobuf/port_def.inc> 41 #define PROTOBUF_INTERNAL_EXPORT_ortools_2fconstraint_5fsolver_2frouting_5fparameters_2eproto 42 PROTOBUF_NAMESPACE_OPEN
46 PROTOBUF_NAMESPACE_CLOSE
50 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
52 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
54 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
56 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
58 static const ::PROTOBUF_NAMESPACE_ID::uint32
offsets[];
62 class RoutingModelParameters;
63 class RoutingModelParametersDefaultTypeInternal;
65 class RoutingSearchParameters;
66 class RoutingSearchParametersDefaultTypeInternal;
68 class RoutingSearchParameters_LocalSearchNeighborhoodOperators;
69 class RoutingSearchParameters_LocalSearchNeighborhoodOperatorsDefaultTypeInternal;
72 PROTOBUF_NAMESPACE_OPEN
76 PROTOBUF_NAMESPACE_CLOSE
81 class RoutingSearchParameters_LocalSearchNeighborhoodOperators :
82 public ::PROTOBUF_NAMESPACE_ID::Message {
90 *
this = ::std::move(from);
98 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
99 if (
this != &from) InternalSwap(&from);
106 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
109 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
GetDescriptor() {
110 return GetMetadataStatic().descriptor;
112 static const ::PROTOBUF_NAMESPACE_ID::Reflection*
GetReflection() {
113 return GetMetadataStatic().reflection;
119 return reinterpret_cast<const RoutingSearchParameters_LocalSearchNeighborhoodOperators*>(
133 return CreateMaybeMessage<RoutingSearchParameters_LocalSearchNeighborhoodOperators>(
nullptr);
137 return CreateMaybeMessage<RoutingSearchParameters_LocalSearchNeighborhoodOperators>(arena);
139 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
140 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
143 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
147 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 148 const char* _InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
final;
151 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input)
final;
152 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 154 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output)
const final;
156 ::PROTOBUF_NAMESPACE_ID::uint8* target)
const final;
157 int GetCachedSize() const final {
return _cached_size_.Get(); }
160 inline void SharedCtor();
161 inline void SharedDtor();
162 void SetCachedSize(
int size)
const final;
164 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
165 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
166 return "operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators";
169 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual()
const {
172 inline void* MaybeArenaPtr()
const {
177 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
179 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
217 ::operations_research::OptionalBoolean
use_cross()
const;
218 void set_use_cross(::operations_research::OptionalBoolean value);
236 void set_use_or_opt(::operations_research::OptionalBoolean value);
350 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
352 int use_relocate_pair_;
353 int use_relocate_neighbors_;
356 int use_cross_exchange_;
359 int use_lin_kernighan_;
361 int use_make_active_;
362 int use_make_inactive_;
363 int use_make_chain_inactive_;
364 int use_swap_active_;
365 int use_extended_swap_active_;
367 int use_full_path_lns_;
369 int use_inactive_lns_;
370 int use_node_pair_swap_active_;
371 int use_relocate_and_make_active_;
372 int use_exchange_pair_;
373 int use_relocate_expensive_chain_;
374 int use_light_relocate_pair_;
375 int use_relocate_subtrip_;
376 int use_exchange_subtrip_;
377 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
378 friend struct ::TableStruct_ortools_2fconstraint_5fsolver_2frouting_5fparameters_2eproto;
383 public ::PROTOBUF_NAMESPACE_ID::Message {
391 *
this = ::std::move(from);
399 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
400 if (
this != &from) InternalSwap(&from);
407 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
410 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
GetDescriptor() {
411 return GetMetadataStatic().descriptor;
413 static const ::PROTOBUF_NAMESPACE_ID::Reflection*
GetReflection() {
414 return GetMetadataStatic().reflection;
420 return reinterpret_cast<const RoutingSearchParameters*>(
434 return CreateMaybeMessage<RoutingSearchParameters>(
nullptr);
438 return CreateMaybeMessage<RoutingSearchParameters>(arena);
440 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
441 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
444 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
448 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 449 const char* _InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
final;
452 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input)
final;
453 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 455 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output)
const final;
457 ::PROTOBUF_NAMESPACE_ID::uint8* target)
const final;
458 int GetCachedSize() const final {
return _cached_size_.Get(); }
461 inline void SharedCtor();
462 inline void SharedDtor();
463 void SetCachedSize(
int size)
const final;
465 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
466 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
467 return "operations_research.RoutingSearchParameters";
470 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual()
const {
473 inline void* MaybeArenaPtr()
const {
478 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
480 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
497 const ::operations_research::RoutingSearchParameters_LocalSearchNeighborhoodOperators&
local_search_operators()
const;
506 const PROTOBUF_NAMESPACE_ID::Duration&
time_limit()
const;
637 ::operations_research::OptionalBoolean
use_cp_sat()
const;
643 ::operations_research::OptionalBoolean
use_cp()
const;
644 void set_use_cp(::operations_research::OptionalBoolean value);
650 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
652 PROTOBUF_NAMESPACE_ID::Duration* time_limit_;
653 PROTOBUF_NAMESPACE_ID::Duration* lns_time_limit_;
654 int first_solution_strategy_;
655 int local_search_metaheuristic_;
656 double guided_local_search_lambda_coefficient_;
657 double optimization_step_;
658 ::PROTOBUF_NAMESPACE_ID::int64 solution_limit_;
659 bool use_unfiltered_first_solution_strategy_;
660 bool savings_add_reverse_arcs_;
661 bool savings_parallel_routes_;
662 bool use_depth_first_search_;
663 bool use_full_propagation_;
665 double savings_neighbors_ratio_;
666 double cheapest_insertion_farthest_seeds_ratio_;
667 double savings_arc_coefficient_;
668 ::PROTOBUF_NAMESPACE_ID::int32 number_of_solutions_to_collect_;
669 ::PROTOBUF_NAMESPACE_ID::int32 relocate_expensive_chain_num_arcs_to_consider_;
670 double cheapest_insertion_neighbors_ratio_;
671 double log_cost_scaling_factor_;
672 double savings_max_memory_usage_bytes_;
675 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
676 friend struct ::TableStruct_ortools_2fconstraint_5fsolver_2frouting_5fparameters_2eproto;
681 public ::PROTOBUF_NAMESPACE_ID::Message {
689 *
this = ::std::move(from);
697 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
698 if (
this != &from) InternalSwap(&from);
705 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
709 return GetMetadataStatic().descriptor;
712 return GetMetadataStatic().reflection;
718 return reinterpret_cast<const RoutingModelParameters*>(
732 return CreateMaybeMessage<RoutingModelParameters>(
nullptr);
736 return CreateMaybeMessage<RoutingModelParameters>(arena);
738 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
739 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
742 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
746 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 747 const char* _InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
final;
750 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input)
final;
751 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 753 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output)
const final;
755 ::PROTOBUF_NAMESPACE_ID::uint8* target)
const final;
756 int GetCachedSize() const final {
return _cached_size_.Get(); }
759 inline void SharedCtor();
760 inline void SharedDtor();
761 void SetCachedSize(
int size)
const final;
763 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
764 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
765 return "operations_research.RoutingModelParameters";
768 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual()
const {
771 inline void* MaybeArenaPtr()
const {
776 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
778 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
793 const ::operations_research::ConstraintSolverParameters&
solver_parameters()
const;
814 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
815 ::operations_research::ConstraintSolverParameters* solver_parameters_;
816 bool reduce_vehicle_cost_model_;
817 ::PROTOBUF_NAMESPACE_ID::int32 max_callback_cache_size_;
818 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
819 friend struct ::TableStruct_ortools_2fconstraint_5fsolver_2frouting_5fparameters_2eproto;
827 #pragma GCC diagnostic push 828 #pragma GCC diagnostic ignored "-Wstrict-aliasing" 838 return static_cast< ::operations_research::OptionalBoolean >(use_relocate_);
842 use_relocate_ = value;
848 use_relocate_pair_ = 0;
852 return static_cast< ::operations_research::OptionalBoolean >(use_relocate_pair_);
856 use_relocate_pair_ = value;
862 use_light_relocate_pair_ = 0;
866 return static_cast< ::operations_research::OptionalBoolean >(use_light_relocate_pair_);
870 use_light_relocate_pair_ = value;
876 use_relocate_neighbors_ = 0;
880 return static_cast< ::operations_research::OptionalBoolean >(use_relocate_neighbors_);
884 use_relocate_neighbors_ = value;
890 use_relocate_subtrip_ = 0;
894 return static_cast< ::operations_research::OptionalBoolean >(use_relocate_subtrip_);
898 use_relocate_subtrip_ = value;
908 return static_cast< ::operations_research::OptionalBoolean >(use_exchange_);
912 use_exchange_ = value;
918 use_exchange_pair_ = 0;
922 return static_cast< ::operations_research::OptionalBoolean >(use_exchange_pair_);
926 use_exchange_pair_ = value;
932 use_exchange_subtrip_ = 0;
936 return static_cast< ::operations_research::OptionalBoolean >(use_exchange_subtrip_);
940 use_exchange_subtrip_ = value;
950 return static_cast< ::operations_research::OptionalBoolean >(use_cross_);
960 use_cross_exchange_ = 0;
964 return static_cast< ::operations_research::OptionalBoolean >(use_cross_exchange_);
968 use_cross_exchange_ = value;
974 use_relocate_expensive_chain_ = 0;
978 return static_cast< ::operations_research::OptionalBoolean >(use_relocate_expensive_chain_);
982 use_relocate_expensive_chain_ = value;
992 return static_cast< ::operations_research::OptionalBoolean >(use_two_opt_);
996 use_two_opt_ = value;
1006 return static_cast< ::operations_research::OptionalBoolean >(use_or_opt_);
1010 use_or_opt_ = value;
1016 use_lin_kernighan_ = 0;
1020 return static_cast< ::operations_research::OptionalBoolean >(use_lin_kernighan_);
1024 use_lin_kernighan_ = value;
1034 return static_cast< ::operations_research::OptionalBoolean >(use_tsp_opt_);
1038 use_tsp_opt_ = value;
1044 use_make_active_ = 0;
1048 return static_cast< ::operations_research::OptionalBoolean >(use_make_active_);
1052 use_make_active_ = value;
1058 use_relocate_and_make_active_ = 0;
1062 return static_cast< ::operations_research::OptionalBoolean >(use_relocate_and_make_active_);
1066 use_relocate_and_make_active_ = value;
1072 use_make_inactive_ = 0;
1076 return static_cast< ::operations_research::OptionalBoolean >(use_make_inactive_);
1080 use_make_inactive_ = value;
1086 use_make_chain_inactive_ = 0;
1090 return static_cast< ::operations_research::OptionalBoolean >(use_make_chain_inactive_);
1094 use_make_chain_inactive_ = value;
1100 use_swap_active_ = 0;
1104 return static_cast< ::operations_research::OptionalBoolean >(use_swap_active_);
1108 use_swap_active_ = value;
1114 use_extended_swap_active_ = 0;
1118 return static_cast< ::operations_research::OptionalBoolean >(use_extended_swap_active_);
1122 use_extended_swap_active_ = value;
1128 use_node_pair_swap_active_ = 0;
1132 return static_cast< ::operations_research::OptionalBoolean >(use_node_pair_swap_active_);
1136 use_node_pair_swap_active_ = value;
1146 return static_cast< ::operations_research::OptionalBoolean >(use_path_lns_);
1150 use_path_lns_ = value;
1156 use_full_path_lns_ = 0;
1160 return static_cast< ::operations_research::OptionalBoolean >(use_full_path_lns_);
1164 use_full_path_lns_ = value;
1174 return static_cast< ::operations_research::OptionalBoolean >(use_tsp_lns_);
1178 use_tsp_lns_ = value;
1184 use_inactive_lns_ = 0;
1188 return static_cast< ::operations_research::OptionalBoolean >(use_inactive_lns_);
1192 use_inactive_lns_ = value;
1202 first_solution_strategy_ = 0;
1206 return static_cast< ::operations_research::FirstSolutionStrategy_Value >(first_solution_strategy_);
1210 first_solution_strategy_ = value;
1216 use_unfiltered_first_solution_strategy_ =
false;
1220 return use_unfiltered_first_solution_strategy_;
1224 use_unfiltered_first_solution_strategy_ = value;
1230 savings_neighbors_ratio_ = 0;
1234 return savings_neighbors_ratio_;
1238 savings_neighbors_ratio_ = value;
1244 savings_max_memory_usage_bytes_ = 0;
1248 return savings_max_memory_usage_bytes_;
1252 savings_max_memory_usage_bytes_ = value;
1258 savings_add_reverse_arcs_ =
false;
1262 return savings_add_reverse_arcs_;
1266 savings_add_reverse_arcs_ = value;
1272 savings_arc_coefficient_ = 0;
1276 return savings_arc_coefficient_;
1280 savings_arc_coefficient_ = value;
1286 savings_parallel_routes_ =
false;
1290 return savings_parallel_routes_;
1294 savings_parallel_routes_ = value;
1300 cheapest_insertion_farthest_seeds_ratio_ = 0;
1304 return cheapest_insertion_farthest_seeds_ratio_;
1308 cheapest_insertion_farthest_seeds_ratio_ = value;
1314 cheapest_insertion_neighbors_ratio_ = 0;
1318 return cheapest_insertion_neighbors_ratio_;
1322 cheapest_insertion_neighbors_ratio_ = value;
1331 if (GetArenaNoVirtual() ==
nullptr && local_search_operators_ !=
nullptr) {
1332 delete local_search_operators_;
1334 local_search_operators_ =
nullptr;
1337 const ::operations_research::RoutingSearchParameters_LocalSearchNeighborhoodOperators* p = local_search_operators_;
1339 return p !=
nullptr ? *p : *reinterpret_cast<const ::operations_research::RoutingSearchParameters_LocalSearchNeighborhoodOperators*>(
1346 local_search_operators_ =
nullptr;
1351 if (local_search_operators_ ==
nullptr) {
1352 auto* p = CreateMaybeMessage<::operations_research::RoutingSearchParameters_LocalSearchNeighborhoodOperators>(GetArenaNoVirtual());
1353 local_search_operators_ = p;
1356 return local_search_operators_;
1359 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
1360 if (message_arena ==
nullptr) {
1361 delete local_search_operators_;
1364 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
nullptr;
1365 if (message_arena != submessage_arena) {
1379 relocate_expensive_chain_num_arcs_to_consider_ = 0;
1383 return relocate_expensive_chain_num_arcs_to_consider_;
1387 relocate_expensive_chain_num_arcs_to_consider_ = value;
1393 local_search_metaheuristic_ = 0;
1397 return static_cast< ::operations_research::LocalSearchMetaheuristic_Value >(local_search_metaheuristic_);
1401 local_search_metaheuristic_ = value;
1407 guided_local_search_lambda_coefficient_ = 0;
1411 return guided_local_search_lambda_coefficient_;
1415 guided_local_search_lambda_coefficient_ = value;
1421 use_depth_first_search_ =
false;
1425 return use_depth_first_search_;
1429 use_depth_first_search_ = value;
1439 return static_cast< ::operations_research::OptionalBoolean >(use_cp_);
1453 return static_cast< ::operations_research::OptionalBoolean >(use_cp_sat_);
1457 use_cp_sat_ = value;
1463 optimization_step_ = 0;
1467 return optimization_step_;
1471 optimization_step_ = value;
1477 number_of_solutions_to_collect_ = 0;
1481 return number_of_solutions_to_collect_;
1485 number_of_solutions_to_collect_ = value;
1491 solution_limit_ = PROTOBUF_LONGLONG(0);
1495 return solution_limit_;
1499 solution_limit_ = value;
1508 const PROTOBUF_NAMESPACE_ID::Duration* p = time_limit_;
1510 return p !=
nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Duration*>(
1511 &PROTOBUF_NAMESPACE_ID::_Duration_default_instance_);
1516 PROTOBUF_NAMESPACE_ID::Duration* temp = time_limit_;
1517 time_limit_ =
nullptr;
1522 if (time_limit_ ==
nullptr) {
1523 auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Duration>(GetArenaNoVirtual());
1530 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
1531 if (message_arena ==
nullptr) {
1532 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_limit_);
1535 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1536 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(
time_limit)->GetArena();
1537 if (message_arena != submessage_arena) {
1538 time_limit = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1539 message_arena,
time_limit, submessage_arena);
1554 const PROTOBUF_NAMESPACE_ID::Duration* p = lns_time_limit_;
1556 return p !=
nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Duration*>(
1557 &PROTOBUF_NAMESPACE_ID::_Duration_default_instance_);
1562 PROTOBUF_NAMESPACE_ID::Duration* temp = lns_time_limit_;
1563 lns_time_limit_ =
nullptr;
1568 if (lns_time_limit_ ==
nullptr) {
1569 auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Duration>(GetArenaNoVirtual());
1570 lns_time_limit_ = p;
1573 return lns_time_limit_;
1576 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
1577 if (message_arena ==
nullptr) {
1578 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(lns_time_limit_);
1581 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1582 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(
lns_time_limit)->GetArena();
1583 if (message_arena != submessage_arena) {
1584 lns_time_limit = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1597 use_full_propagation_ =
false;
1601 return use_full_propagation_;
1605 use_full_propagation_ = value;
1611 log_search_ =
false;
1619 log_search_ = value;
1625 log_cost_scaling_factor_ = 0;
1629 return log_cost_scaling_factor_;
1633 log_cost_scaling_factor_ = value;
1646 const ::operations_research::ConstraintSolverParameters* p = solver_parameters_;
1648 return p !=
nullptr ? *p : *reinterpret_cast<const ::operations_research::ConstraintSolverParameters*>(
1649 &::operations_research::_ConstraintSolverParameters_default_instance_);
1654 ::operations_research::ConstraintSolverParameters* temp = solver_parameters_;
1655 solver_parameters_ =
nullptr;
1660 if (solver_parameters_ ==
nullptr) {
1661 auto* p = CreateMaybeMessage<::operations_research::ConstraintSolverParameters>(GetArenaNoVirtual());
1662 solver_parameters_ = p;
1665 return solver_parameters_;
1668 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
1669 if (message_arena ==
nullptr) {
1670 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(solver_parameters_);
1673 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
nullptr;
1674 if (message_arena != submessage_arena) {
1688 reduce_vehicle_cost_model_ =
false;
1692 return reduce_vehicle_cost_model_;
1696 reduce_vehicle_cost_model_ = value;
1702 max_callback_cache_size_ = 0;
1706 return max_callback_cache_size_;
1710 max_callback_cache_size_ = value;
1715 #pragma GCC diagnostic pop 1728 #include <google/protobuf/port_undef.inc> 1729 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ortools_2fconstraint_5fsolver_2frouting_5fparameters_2eproto static const int kUseCpSatFieldNumber
::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;
static void InitAsDefaultInstance()
friend void swap(RoutingModelParameters &a, RoutingModelParameters &b)
static constexpr int kIndexInFileMessages
void set_use_node_pair_swap_active(::operations_research::OptionalBoolean value)
static const int kSavingsNeighborsRatioFieldNumber
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_solution_limit(::PROTOBUF_NAMESPACE_ID::int64 value)
static const int kMaxCallbackCacheSizeFieldNumber
size_t ByteSizeLong() const final
void set_use_lin_kernighan(::operations_research::OptionalBoolean value)
static const int kUseExchangeSubtripFieldNumber
bool has_local_search_operators() const
accessors ----------------------------------------------------—
void SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream *output) const final
void Swap(RoutingModelParameters *other)
void set_use_full_propagation(bool value)
void set_use_swap_active(::operations_research::OptionalBoolean value)
::PROTOBUF_NAMESPACE_ID::int32 max_callback_cache_size() const
::operations_research::RoutingSearchParameters_LocalSearchNeighborhoodOperators * mutable_local_search_operators()
void set_number_of_solutions_to_collect(::PROTOBUF_NAMESPACE_ID::int32 value)
void clear_cheapest_insertion_neighbors_ratio()
double cheapest_insertion_neighbors_ratio = 21;
void set_use_cross(::operations_research::OptionalBoolean value)
static const int kUsePathLnsFieldNumber
void set_use_exchange(::operations_research::OptionalBoolean value)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_savings_add_reverse_arcs(bool value)
void clear_solution_limit()
int64 solution_limit = 8;
static const int kUseFullPropagationFieldNumber
void Swap(RoutingSearchParameters_LocalSearchNeighborhoodOperators *other)
friend void swap(RoutingSearchParameters &a, RoutingSearchParameters &b)
::operations_research::OptionalBoolean use_relocate_neighbors() const
void clear_use_relocate_pair()
.operations_research.OptionalBoolean use_relocate_pair = 2;
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;
static const int kSavingsArcCoefficientFieldNumber
bool has_solver_parameters() const
nested types -------------------------------------------------—
static const int kFirstSolutionStrategyFieldNumber
void set_use_relocate_subtrip(::operations_research::OptionalBoolean value)
bool has_lns_time_limit() const
.google.protobuf.Duration lns_time_limit = 10;
RoutingModelParameters * New() const final
implements Message -------------------------------------------—
::operations_research::FirstSolutionStrategy_Value first_solution_strategy() const
void set_max_callback_cache_size(::PROTOBUF_NAMESPACE_ID::int32 value)
::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;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2frouting_5fparameters_2eproto
void clear_guided_local_search_lambda_coefficient()
double guided_local_search_lambda_coefficient = 5;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
bool MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream *input) final
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 set_allocated_lns_time_limit(PROTOBUF_NAMESPACE_ID::Duration *lns_time_limit)
::PROTOBUF_NAMESPACE_ID::int64 solution_limit() const
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;
::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)
::PROTOBUF_NAMESPACE_ID::uint8 * InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 *target) const final
void clear_lns_time_limit()
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;
static constexpr int kIndexInFileMessages
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 MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
RoutingSearchParameters & operator=(const RoutingSearchParameters &from)
static const int kUseRelocateSubtripFieldNumber
void clear_use_unfiltered_first_solution_strategy()
bool use_unfiltered_first_solution_strategy = 2;
static const int kUseTspLnsFieldNumber
static constexpr int kIndexInFileMessages
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 kUseDepthFirstSearchFieldNumber
static const int kUseLightRelocatePairFieldNumber
static const int kGuidedLocalSearchLambdaCoefficientFieldNumber
::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
LocalSearchMetaheuristic_Value
size_t ByteSizeLong() const final
static const int kUseFullPathLnsFieldNumber
void clear_savings_parallel_routes()
bool savings_parallel_routes = 19;
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const int kUseLinKernighanFieldNumber
virtual ~RoutingModelParameters()
void clear_use_swap_active()
.operations_research.OptionalBoolean use_swap_active = 14;
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
static const int kSolverParametersFieldNumber
void clear_use_tsp_opt()
.operations_research.OptionalBoolean use_tsp_opt = 10;
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
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;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void set_allocated_solver_parameters(::operations_research::ConstraintSolverParameters *solver_parameters)
static const RoutingSearchParameters * internal_default_instance()
void clear_max_callback_cache_size()
int32 max_callback_cache_size = 3;
void set_first_solution_strategy(::operations_research::FirstSolutionStrategy_Value value)
virtual ~RoutingSearchParameters()
void set_savings_max_memory_usage_bytes(double value)
static const RoutingModelParameters * internal_default_instance()
void set_use_make_chain_inactive(::operations_research::OptionalBoolean value)
::operations_research::ConstraintSolverParameters * release_solver_parameters()
static const int kSolutionLimitFieldNumber
::operations_research::OptionalBoolean use_tsp_opt() const
static const int kOptimizationStepFieldNumber
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void clear_use_cp()
.operations_research.OptionalBoolean use_cp = 28;
static const int kUseRelocatePairFieldNumber
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void clear_solver_parameters()
::operations_research::OptionalBoolean use_make_chain_inactive() const
static const int kUseUnfilteredFirstSolutionStrategyFieldNumber
RoutingSearchParameters * New() const final
implements Message -------------------------------------------—
::operations_research::OptionalBoolean use_exchange() const
void clear_savings_max_memory_usage_bytes()
double savings_max_memory_usage_bytes = 23;
PROTOBUF_NAMESPACE_ID::Duration * mutable_time_limit()
static const int kCheapestInsertionNeighborsRatioFieldNumber
static const int kSavingsParallelRoutesFieldNumber
::operations_research::OptionalBoolean use_full_path_lns() const
static const int kLocalSearchOperatorsFieldNumber
const ::operations_research::ConstraintSolverParameters & solver_parameters() const
static const int kUseOrOptFieldNumber
void clear_use_exchange_subtrip()
.operations_research.OptionalBoolean use_exchange_subtrip = 26;
static const int kCheapestInsertionFarthestSeedsRatioFieldNumber
static const int kLogSearchFieldNumber
static const int kReduceVehicleCostModelFieldNumber
bool reduce_vehicle_cost_model() const
void set_log_cost_scaling_factor(double value)
RoutingSearchParameters_LocalSearchNeighborhoodOperatorsDefaultTypeInternal _RoutingSearchParameters_LocalSearchNeighborhoodOperators_default_instance_
int GetCachedSize() const final
static const int kUseSwapActiveFieldNumber
static const RoutingSearchParameters_LocalSearchNeighborhoodOperators * internal_default_instance()
bool use_depth_first_search() const
static const int kRelocateExpensiveChainNumArcsToConsiderFieldNumber
size_t ByteSizeLong() const final
static const int kUseInactiveLnsFieldNumber
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
::operations_research::OptionalBoolean use_path_lns() const
void clear_use_relocate_and_make_active()
.operations_research.OptionalBoolean use_relocate_and_make_active = 21;
::PROTOBUF_NAMESPACE_ID::uint8 * InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 *target) const final
void set_use_or_opt(::operations_research::OptionalBoolean value)
void set_relocate_expensive_chain_num_arcs_to_consider(::PROTOBUF_NAMESPACE_ID::int32 value)
bool MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream *input) final
double log_cost_scaling_factor() const
RoutingModelParameters & operator=(const RoutingModelParameters &from)
void clear_cheapest_insertion_farthest_seeds_ratio()
double cheapest_insertion_farthest_seeds_ratio = 16;
PROTOBUF_NAMESPACE_ID::Duration * release_lns_time_limit()
static const int kTimeLimitFieldNumber
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
static const int kUseTwoOptFieldNumber
static const int kSavingsAddReverseArcsFieldNumber
static const RoutingModelParameters & default_instance()
static const int kSavingsMaxMemoryUsageBytesFieldNumber
void set_use_unfiltered_first_solution_strategy(bool value)
static const RoutingSearchParameters & default_instance()
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)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const int kUseExchangeFieldNumber
virtual ~RoutingSearchParameters_LocalSearchNeighborhoodOperators()
bool has_time_limit() const
.google.protobuf.Duration time_limit = 9;
RoutingSearchParameters()
void set_optimization_step(double value)
RoutingModelParametersDefaultTypeInternal _RoutingModelParameters_default_instance_
void clear_log_cost_scaling_factor()
double log_cost_scaling_factor = 22;
::PROTOBUF_NAMESPACE_ID::uint8 * InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 *target) const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
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)
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
bool IsInitialized() const final
void clear_use_inactive_lns()
.operations_research.OptionalBoolean use_inactive_lns = 19;
::operations_research::OptionalBoolean use_extended_swap_active() const
FirstSolutionStrategy_Value
::operations_research::ConstraintSolverParameters * mutable_solver_parameters()
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
int GetCachedSize() const final
RoutingSearchParameters_LocalSearchNeighborhoodOperators()
void clear_use_two_opt()
.operations_research.OptionalBoolean use_two_opt = 7;
RoutingSearchParameters_LocalSearchNeighborhoodOperators LocalSearchNeighborhoodOperators
nested types -------------------------------------------------—
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in c...
void set_allocated_time_limit(PROTOBUF_NAMESPACE_ID::Duration *time_limit)
void set_use_cp(::operations_research::OptionalBoolean value)
static void InitAsDefaultInstance()
::PROTOBUF_NAMESPACE_ID::int32 relocate_expensive_chain_num_arcs_to_consider() const
static const int kLocalSearchMetaheuristicFieldNumber
static const int kUseCpFieldNumber
static const int kUseExchangePairFieldNumber
void set_use_relocate_and_make_active(::operations_research::OptionalBoolean value)
double savings_max_memory_usage_bytes() const
PROTOBUF_NAMESPACE_ID::Duration * release_time_limit()
void SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream *output) const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
::operations_research::OptionalBoolean use_cp_sat() const
::operations_research::OptionalBoolean use_light_relocate_pair() const
void SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream *output) const final
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_use_exchange_subtrip(::operations_research::OptionalBoolean value)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void clear_use_make_chain_inactive()
.operations_research.OptionalBoolean use_make_chain_inactive = 13;
RoutingSearchParameters_LocalSearchNeighborhoodOperators(RoutingSearchParameters_LocalSearchNeighborhoodOperators &&from) noexcept
::PROTOBUF_NAMESPACE_ID::int32 number_of_solutions_to_collect() const
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 kLnsTimeLimitFieldNumber
bool IsInitialized() const final
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
PROTOBUF_NAMESPACE_ID::Duration * mutable_lns_time_limit()
static void InitAsDefaultInstance()
::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)
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
const PROTOBUF_NAMESPACE_ID::Duration & lns_time_limit() const
static const int kUseTspOptFieldNumber
::operations_research::OptionalBoolean use_node_pair_swap_active() const
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void clear_relocate_expensive_chain_num_arcs_to_consider()
int32 relocate_expensive_chain_num_arcs_to_consider = 20;
const PROTOBUF_NAMESPACE_ID::Duration & time_limit() const
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 clear_log_search()
bool log_search = 13;
static const int kLogCostScalingFactorFieldNumber
bool MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream *input) final
void clear_use_cp_sat()
.operations_research.OptionalBoolean use_cp_sat = 27;
static const int kNumberOfSolutionsToCollectFieldNumber
void set_guided_local_search_lambda_coefficient(double value)
void clear_savings_neighbors_ratio()
double savings_neighbors_ratio = 14;