10#include "google/protobuf/io/coded_stream.h"
11#include "google/protobuf/generated_message_tctable_impl.h"
12#include "google/protobuf/extension_set.h"
13#include "google/protobuf/generated_message_util.h"
14#include "google/protobuf/wire_format_lite.h"
15#include "google/protobuf/descriptor.h"
16#include "google/protobuf/generated_message_reflection.h"
17#include "google/protobuf/reflection_ops.h"
18#include "google/protobuf/wire_format.h"
22#include "google/protobuf/port_def.inc"
23PROTOBUF_PRAGMA_INIT_SEG
26namespace _fl = ::google::protobuf::internal::field_layout;
30inline constexpr StrictnessProto::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
33 bad_parameter_{
false} {}
37#if defined(PROTOBUF_CUSTOM_VTABLE)
40 : ::google::protobuf::Message(),
42 _impl_(::_pbi::ConstantInitialized()) {
52PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
55inline constexpr SolverInitializerProto::Impl_::Impl_(
56 ::_pbi::ConstantInitialized) noexcept
62#if defined(PROTOBUF_CUSTOM_VTABLE)
65 : ::google::protobuf::Message(),
67 _impl_(::_pbi::ConstantInitialized()) {
77PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
80inline constexpr SolveParametersProto::Impl_::Impl_(
81 ::_pbi::ConstantInitialized) noexcept
92 iteration_limit_{::int64_t{0}},
93 enable_output_{
false},
101 relative_gap_tolerance_{0},
102 absolute_gap_tolerance_{0},
105 best_bound_limit_{0},
106 node_limit_{::int64_t{0}},
108 solution_pool_size_{0} {}
112#if defined(PROTOBUF_CUSTOM_VTABLE)
115 : ::google::protobuf::Message(),
117 _impl_(::_pbi::ConstantInitialized()) {
127PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
131static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL
133static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
205static const ::_pbi::MigrationSchema
218 "\n!ortools/math_opt/parameters.proto\022\034ope"
219 "rations_research.math_opt\032\036google/protob"
220 "uf/duration.proto\032\032ortools/pdlp/solvers."
221 "proto\032\035ortools/glop/parameters.proto\032\031or"
222 "tools/gscip/gscip.proto\032#ortools/math_op"
223 "t/solvers/glpk.proto\032%ortools/math_opt/s"
224 "olvers/gurobi.proto\032$ortools/math_opt/so"
225 "lvers/highs.proto\032#ortools/math_opt/solv"
226 "ers/osqp.proto\032 ortools/sat/sat_paramete"
227 "rs.proto\"(\n\017StrictnessProto\022\025\n\rbad_param"
228 "eter\030\001 \001(\010\"d\n\026SolverInitializerProto\022D\n\006"
229 "gurobi\030\001 \001(\01324.operations_research.math_"
230 "opt.GurobiInitializerProtoJ\004\010\002\020\003\"\263\013\n\024Sol"
231 "veParametersProto\022-\n\ntime_limit\030\001 \001(\0132\031."
232 "google.protobuf.Duration\022\034\n\017iteration_li"
233 "mit\030\002 \001(\003H\000\210\001\001\022\027\n\nnode_limit\030\030 \001(\003H\001\210\001\001\022"
234 "\031\n\014cutoff_limit\030\024 \001(\001H\002\210\001\001\022\034\n\017objective_"
235 "limit\030\025 \001(\001H\003\210\001\001\022\035\n\020best_bound_limit\030\026 \001"
236 "(\001H\004\210\001\001\022\033\n\016solution_limit\030\027 \001(\005H\005\210\001\001\022\025\n\r"
237 "enable_output\030\003 \001(\010\022\024\n\007threads\030\004 \001(\005H\006\210\001"
238 "\001\022\030\n\013random_seed\030\005 \001(\005H\007\210\001\001\022#\n\026absolute_"
239 "gap_tolerance\030\022 \001(\001H\010\210\001\001\022#\n\026relative_gap"
240 "_tolerance\030\021 \001(\001H\t\210\001\001\022\037\n\022solution_pool_s"
241 "ize\030\031 \001(\005H\n\210\001\001\022D\n\014lp_algorithm\030\006 \001(\0162..o"
242 "perations_research.math_opt.LPAlgorithmP"
243 "roto\022=\n\010presolve\030\007 \001(\0162+.operations_rese"
244 "arch.math_opt.EmphasisProto\0229\n\004cuts\030\010 \001("
245 "\0162+.operations_research.math_opt.Emphasi"
246 "sProto\022\?\n\nheuristics\030\t \001(\0162+.operations_"
247 "research.math_opt.EmphasisProto\022<\n\007scali"
248 "ng\030\n \001(\0162+.operations_research.math_opt."
249 "EmphasisProto\0223\n\005gscip\030\014 \001(\0132$.operation"
250 "s_research.GScipParameters\022C\n\006gurobi\030\r \001"
251 "(\01323.operations_research.math_opt.Gurobi"
252 "ParametersProto\0226\n\004glop\030\016 \001(\0132(.operatio"
253 "ns_research.glop.GlopParameters\0226\n\006cp_sa"
254 "t\030\017 \001(\0132&.operations_research.sat.SatPar"
255 "ameters\022F\n\004pdlp\030\020 \001(\01328.operations_resea"
256 "rch.pdlp.PrimalDualHybridGradientParams\022"
257 "=\n\004osqp\030\023 \001(\0132/.operations_research.math"
258 "_opt.OsqpSettingsProto\022\?\n\004glpk\030\032 \001(\01321.o"
259 "perations_research.math_opt.GlpkParamete"
260 "rsProto\022>\n\005highs\030\033 \001(\0132/.operations_rese"
261 "arch.math_opt.HighsOptionsProtoB\022\n\020_iter"
262 "ation_limitB\r\n\013_node_limitB\017\n\r_cutoff_li"
263 "mitB\022\n\020_objective_limitB\023\n\021_best_bound_l"
264 "imitB\021\n\017_solution_limitB\n\n\010_threadsB\016\n\014_"
265 "random_seedB\031\n\027_absolute_gap_toleranceB\031"
266 "\n\027_relative_gap_toleranceB\025\n\023_solution_p"
267 "ool_sizeJ\004\010\013\020\014*\310\002\n\017SolverTypeProto\022\033\n\027SO"
268 "LVER_TYPE_UNSPECIFIED\020\000\022\025\n\021SOLVER_TYPE_G"
269 "SCIP\020\001\022\026\n\022SOLVER_TYPE_GUROBI\020\002\022\024\n\020SOLVER"
270 "_TYPE_GLOP\020\003\022\026\n\022SOLVER_TYPE_CP_SAT\020\004\022\024\n\020"
271 "SOLVER_TYPE_PDLP\020\005\022\024\n\020SOLVER_TYPE_GLPK\020\006"
272 "\022\024\n\020SOLVER_TYPE_OSQP\020\007\022\024\n\020SOLVER_TYPE_EC"
273 "OS\020\010\022\023\n\017SOLVER_TYPE_SCS\020\t\022\025\n\021SOLVER_TYPE"
274 "_HIGHS\020\n\022\031\n\025SOLVER_TYPE_SANTORINI\020\013\022\026\n\022S"
275 "OLVER_TYPE_XPRESS\020\r\"\004\010\014\020\014*\250\001\n\020LPAlgorith"
276 "mProto\022\034\n\030LP_ALGORITHM_UNSPECIFIED\020\000\022\037\n\033"
277 "LP_ALGORITHM_PRIMAL_SIMPLEX\020\001\022\035\n\031LP_ALGO"
278 "RITHM_DUAL_SIMPLEX\020\002\022\030\n\024LP_ALGORITHM_BAR"
279 "RIER\020\003\022\034\n\030LP_ALGORITHM_FIRST_ORDER\020\004*\215\001\n"
280 "\rEmphasisProto\022\030\n\024EMPHASIS_UNSPECIFIED\020\000"
281 "\022\020\n\014EMPHASIS_OFF\020\001\022\020\n\014EMPHASIS_LOW\020\002\022\023\n\017"
282 "EMPHASIS_MEDIUM\020\003\022\021\n\rEMPHASIS_HIGH\020\004\022\026\n\022"
283 "EMPHASIS_VERY_HIGH\020\005B\036\n\032com.google.ortoo"
284 "ls.mathoptP\001b\006proto3"
286static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL
const
288 &::descriptor_table_google_2fprotobuf_2fduration_2eproto,
303 descriptor_table_protodef_ortools_2fmath_5fopt_2fparameters_2eproto,
304 "ortools/math_opt/parameters.proto",
337class StrictnessProto::_Internal {
340 decltype(::std::declval<StrictnessProto>()._impl_._has_bits_);
346#if defined(PROTOBUF_CUSTOM_VTABLE)
349 : ::google::protobuf::Message(arena) {
356#if defined(PROTOBUF_CUSTOM_VTABLE)
359 : ::google::protobuf::Message(arena),
362 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
363 from._internal_metadata_);
365PROTOBUF_NDEBUG_INLINE StrictnessProto::Impl_::Impl_(
366 ::google::protobuf::internal::InternalVisibility visibility,
367 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
368 : _cached_size_{0} {}
370inline void StrictnessProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
371 new (&
_impl_) Impl_(internal_visibility(), arena);
372 _impl_.bad_parameter_ = {};
378inline void StrictnessProto::SharedDtor(MessageLite& self) {
380 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
381 ABSL_DCHECK(this_.GetArena() ==
nullptr);
386 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
387 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
391 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(
StrictnessProto),
395 return ::google::protobuf::internal::ClassDataFull{
396 ::google::protobuf::internal::ClassData{
401 &StrictnessProto::MergeImpl,
402 ::google::protobuf::Message::GetNewImpl<StrictnessProto>(),
403#if defined(PROTOBUF_CUSTOM_VTABLE)
404 &StrictnessProto::SharedDtor,
411 &StrictnessProto::kDescriptorMethods,
417PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
421PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
427PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
428const ::_pbi::TcParseTable<0, 1, 0, 0, 2>
429StrictnessProto::_table_ = {
434 offsetof(
decltype(_table_), field_lookup_table),
436 offsetof(
decltype(_table_), field_entries),
439 offsetof(
decltype(_table_), field_names),
442 ::_pbi::TcParser::GenericFallback,
443 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
444 ::_pbi::TcParser::GetTable<::operations_research::math_opt::StrictnessProto>(),
448 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(StrictnessProto, _impl_.bad_parameter_), 0>(),
449 {8, 0, 0, PROTOBUF_FIELD_OFFSET(StrictnessProto, _impl_.bad_parameter_)}},
454 {PROTOBUF_FIELD_OFFSET(
StrictnessProto, _impl_.bad_parameter_), _Internal::kHasBitsOffset + 0, 0,
455 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
463 ::google::protobuf::internal::TSanWrite(&
_impl_);
464 ::uint32_t cached_has_bits = 0;
466 (void) cached_has_bits;
468 _impl_.bad_parameter_ =
false;
469 _impl_._has_bits_.Clear();
470 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
473#if defined(PROTOBUF_CUSTOM_VTABLE)
475 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
476 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
480 ::uint8_t* PROTOBUF_NONNULL target,
481 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
485 ::uint32_t cached_has_bits = 0;
486 (void)cached_has_bits;
489 if ((this_.
_impl_._has_bits_[0] & 0x00000001u) != 0) {
490 if (this_._internal_bad_parameter() != 0) {
491 target = stream->EnsureSpace(target);
492 target = ::_pbi::WireFormatLite::WriteBoolToArray(
493 1, this_._internal_bad_parameter(), target);
497 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
499 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
500 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
506#if defined(PROTOBUF_CUSTOM_VTABLE)
514 ::size_t total_size = 0;
516 ::uint32_t cached_has_bits = 0;
518 (void)cached_has_bits;
522 cached_has_bits = this_.
_impl_._has_bits_[0];
523 if ((cached_has_bits & 0x00000001u) != 0) {
524 if (this_._internal_bad_parameter() != 0) {
529 return this_.MaybeComputeUnknownFieldsSize(total_size,
530 &this_.
_impl_._cached_size_);
533void StrictnessProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
537 ABSL_DCHECK_NE(&from, _this);
538 ::uint32_t cached_has_bits = 0;
539 (void) cached_has_bits;
541 cached_has_bits = from.
_impl_._has_bits_[0];
542 if ((cached_has_bits & 0x00000001u) != 0) {
543 if (from._internal_bad_parameter() != 0) {
544 _this->_impl_.bad_parameter_ = from.
_impl_.bad_parameter_;
547 _this->_impl_._has_bits_[0] |= cached_has_bits;
548 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
553 if (&from ==
this)
return;
559void StrictnessProto::InternalSwap(
StrictnessProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
561 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
562 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
563 swap(
_impl_.bad_parameter_, other->_impl_.bad_parameter_);
567 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
574 decltype(::std::declval<SolverInitializerProto>()._impl_._has_bits_);
580 ::google::protobuf::internal::TSanWrite(&
_impl_);
582 _impl_._has_bits_[0] &= ~0x00000001u;
585#if defined(PROTOBUF_CUSTOM_VTABLE)
588 : ::google::protobuf::Message(arena) {
593PROTOBUF_NDEBUG_INLINE SolverInitializerProto::Impl_::Impl_(
594 ::google::protobuf::internal::InternalVisibility visibility,
595 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
596 const ::operations_research::math_opt::SolverInitializerProto& from_msg)
597 : _has_bits_{from._has_bits_},
601 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
603#if defined(PROTOBUF_CUSTOM_VTABLE)
606 : ::google::protobuf::Message(arena) {
610 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
611 from._internal_metadata_);
612 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
613 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
614 _impl_.gurobi_ = ((cached_has_bits & 0x00000001u) != 0)
615 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.gurobi_)
620PROTOBUF_NDEBUG_INLINE SolverInitializerProto::Impl_::Impl_(
621 ::google::protobuf::internal::InternalVisibility visibility,
622 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
623 : _cached_size_{0} {}
625inline void SolverInitializerProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
626 new (&
_impl_) Impl_(internal_visibility(), arena);
633inline void SolverInitializerProto::SharedDtor(
MessageLite& self) {
635 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
636 ABSL_DCHECK(this_.GetArena() ==
nullptr);
637 delete this_.
_impl_.gurobi_;
642 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
643 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
651 return ::google::protobuf::internal::ClassDataFull{
652 ::google::protobuf::internal::ClassData{
657 &SolverInitializerProto::MergeImpl,
658 ::google::protobuf::Message::GetNewImpl<SolverInitializerProto>(),
659#if defined(PROTOBUF_CUSTOM_VTABLE)
660 &SolverInitializerProto::SharedDtor,
667 &SolverInitializerProto::kDescriptorMethods,
673PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
677PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
683PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
684const ::_pbi::TcParseTable<0, 1, 1, 0, 2>
685SolverInitializerProto::_table_ = {
690 offsetof(
decltype(_table_), field_lookup_table),
692 offsetof(
decltype(_table_), field_entries),
695 offsetof(
decltype(_table_), aux_entries),
698 ::_pbi::TcParser::GenericFallback,
699 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
700 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SolverInitializerProto>(),
704 {::_pbi::TcParser::FastMtS1,
705 {10, 0, 0, PROTOBUF_FIELD_OFFSET(SolverInitializerProto,
_impl_.gurobi_)}},
711 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
714 {::_pbi::TcParser::GetTable<::operations_research::math_opt::GurobiInitializerProto>()},
721 ::google::protobuf::internal::TSanWrite(&
_impl_);
722 ::uint32_t cached_has_bits = 0;
724 (void) cached_has_bits;
726 cached_has_bits =
_impl_._has_bits_[0];
727 if ((cached_has_bits & 0x00000001u) != 0) {
728 ABSL_DCHECK(
_impl_.gurobi_ !=
nullptr);
731 _impl_._has_bits_.Clear();
732 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
735#if defined(PROTOBUF_CUSTOM_VTABLE)
737 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
738 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
739 const SolverInitializerProto& this_ =
static_cast<const SolverInitializerProto&
>(
base);
742 ::uint8_t* PROTOBUF_NONNULL target,
743 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
747 ::uint32_t cached_has_bits = 0;
748 (void)cached_has_bits;
750 cached_has_bits = this_.
_impl_._has_bits_[0];
752 if ((cached_has_bits & 0x00000001u) != 0) {
753 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
754 1, *this_.
_impl_.gurobi_, this_.
_impl_.gurobi_->GetCachedSize(), target,
758 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
760 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
761 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
767#if defined(PROTOBUF_CUSTOM_VTABLE)
775 ::size_t total_size = 0;
777 ::uint32_t cached_has_bits = 0;
779 (void)cached_has_bits;
783 cached_has_bits = this_.
_impl_._has_bits_[0];
784 if ((cached_has_bits & 0x00000001u) != 0) {
786 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_.
_impl_.gurobi_);
789 return this_.MaybeComputeUnknownFieldsSize(total_size,
790 &this_.
_impl_._cached_size_);
793void SolverInitializerProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
794 auto*
const _this =
static_cast<SolverInitializerProto*
>(&to_msg);
795 auto& from =
static_cast<const SolverInitializerProto&
>(from_msg);
796 ::google::protobuf::Arena* arena = _this->GetArena();
798 ABSL_DCHECK_NE(&from, _this);
799 ::uint32_t cached_has_bits = 0;
800 (void) cached_has_bits;
802 cached_has_bits = from._impl_._has_bits_[0];
803 if ((cached_has_bits & 0x00000001u) != 0) {
804 ABSL_DCHECK(from._impl_.gurobi_ !=
nullptr);
805 if (_this->_impl_.gurobi_ ==
nullptr) {
806 _this->_impl_.gurobi_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.gurobi_);
808 _this->_impl_.gurobi_->MergeFrom(*from._impl_.gurobi_);
811 _this->_impl_._has_bits_[0] |= cached_has_bits;
812 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
817 if (&from ==
this)
return;
823void SolverInitializerProto::InternalSwap(
SolverInitializerProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
825 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
826 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
831 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
838 decltype(::std::declval<SolveParametersProto>()._impl_._has_bits_);
844 ::google::protobuf::internal::TSanWrite(&
_impl_);
845 if (
_impl_.time_limit_ !=
nullptr)
_impl_.time_limit_->Clear();
849 ::google::protobuf::internal::TSanWrite(&
_impl_);
854 ::google::protobuf::internal::TSanWrite(&
_impl_);
859 ::google::protobuf::internal::TSanWrite(&
_impl_);
864 ::google::protobuf::internal::TSanWrite(&
_impl_);
869 ::google::protobuf::internal::TSanWrite(&
_impl_);
874 ::google::protobuf::internal::TSanWrite(&
_impl_);
879 ::google::protobuf::internal::TSanWrite(&
_impl_);
884 ::google::protobuf::internal::TSanWrite(&
_impl_);
889#if defined(PROTOBUF_CUSTOM_VTABLE)
892 : ::google::protobuf::Message(arena) {
897PROTOBUF_NDEBUG_INLINE SolveParametersProto::Impl_::Impl_(
898 ::google::protobuf::internal::InternalVisibility visibility,
899 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
900 const ::operations_research::math_opt::SolveParametersProto& from_msg)
901 : _has_bits_{from._has_bits_},
905 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
906 const SolveParametersProto& from)
907#if defined(PROTOBUF_CUSTOM_VTABLE)
910 : ::google::protobuf::Message(arena) {
914 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
915 from._internal_metadata_);
916 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
917 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
918 _impl_.time_limit_ = ((cached_has_bits & 0x00000001u) != 0)
919 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.time_limit_)
921 _impl_.gscip_ = ((cached_has_bits & 0x00000002u) != 0)
922 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.gscip_)
924 _impl_.gurobi_ = ((cached_has_bits & 0x00000004u) != 0)
925 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.gurobi_)
927 _impl_.glop_ = ((cached_has_bits & 0x00000008u) != 0)
928 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.glop_)
930 _impl_.cp_sat_ = ((cached_has_bits & 0x00000010u) != 0)
931 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.cp_sat_)
933 _impl_.pdlp_ = ((cached_has_bits & 0x00000020u) != 0)
934 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.pdlp_)
936 _impl_.osqp_ = ((cached_has_bits & 0x00000040u) != 0)
937 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.osqp_)
939 _impl_.glpk_ = ((cached_has_bits & 0x00000080u) != 0)
940 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.glpk_)
942 _impl_.highs_ = ((cached_has_bits & 0x00000100u) != 0)
943 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.highs_)
945 ::memcpy(
reinterpret_cast<char *
>(&
_impl_) +
946 offsetof(Impl_, iteration_limit_),
947 reinterpret_cast<const char *
>(&from._impl_) +
948 offsetof(Impl_, iteration_limit_),
949 offsetof(Impl_, solution_pool_size_) -
950 offsetof(Impl_, iteration_limit_) +
951 sizeof(Impl_::solution_pool_size_));
955PROTOBUF_NDEBUG_INLINE SolveParametersProto::Impl_::Impl_(
956 ::google::protobuf::internal::InternalVisibility visibility,
957 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
958 : _cached_size_{0} {}
960inline void SolveParametersProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
961 new (&
_impl_) Impl_(internal_visibility(), arena);
962 ::memset(
reinterpret_cast<char *
>(&
_impl_) +
963 offsetof(Impl_, time_limit_),
965 offsetof(Impl_, solution_pool_size_) -
966 offsetof(Impl_, time_limit_) +
967 sizeof(Impl_::solution_pool_size_));
973inline void SolveParametersProto::SharedDtor(MessageLite& self) {
975 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
976 ABSL_DCHECK(this_.GetArena() ==
nullptr);
977 delete this_.
_impl_.time_limit_;
978 delete this_.
_impl_.gscip_;
979 delete this_.
_impl_.gurobi_;
980 delete this_.
_impl_.glop_;
981 delete this_.
_impl_.cp_sat_;
982 delete this_.
_impl_.pdlp_;
983 delete this_.
_impl_.osqp_;
984 delete this_.
_impl_.glpk_;
985 delete this_.
_impl_.highs_;
990 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
991 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
999 return ::google::protobuf::internal::ClassDataFull{
1000 ::google::protobuf::internal::ClassData{
1005 &SolveParametersProto::MergeImpl,
1006 ::google::protobuf::Message::GetNewImpl<SolveParametersProto>(),
1007#if defined(PROTOBUF_CUSTOM_VTABLE)
1008 &SolveParametersProto::SharedDtor,
1015 &SolveParametersProto::kDescriptorMethods,
1021PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1025PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1031PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1032const ::_pbi::TcParseTable<5, 26, 9, 0, 2>
1033SolveParametersProto::_table_ = {
1038 offsetof(
decltype(_table_), field_lookup_table),
1040 offsetof(
decltype(_table_), field_entries),
1043 offsetof(
decltype(_table_), aux_entries),
1046 ::_pbi::TcParser::GenericFallback,
1047 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1048 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SolveParametersProto>(),
1051 {::_pbi::TcParser::MiniParse, {}},
1053 {::_pbi::TcParser::FastMtS1,
1056 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
SolveParametersProto, _impl_.iteration_limit_), 9>(),
1059 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(
SolveParametersProto, _impl_.enable_output_), 10>(),
1062 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(
SolveParametersProto, _impl_.threads_), 11>(),
1065 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(
SolveParametersProto, _impl_.random_seed_), 12>(),
1068 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(
SolveParametersProto, _impl_.lp_algorithm_), 13>(),
1071 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(
SolveParametersProto, _impl_.presolve_), 14>(),
1074 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(
SolveParametersProto, _impl_.cuts_), 15>(),
1077 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(
SolveParametersProto, _impl_.heuristics_), 16>(),
1080 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(
SolveParametersProto, _impl_.scaling_), 17>(),
1082 {::_pbi::TcParser::MiniParse, {}},
1084 {::_pbi::TcParser::FastMtS1,
1087 {::_pbi::TcParser::FastMtS1,
1090 {::_pbi::TcParser::FastMtS1,
1093 {::_pbi::TcParser::FastMtS1,
1096 {::_pbi::TcParser::FastMtS2,
1099 {::_pbi::TcParser::FastF64S2,
1102 {::_pbi::TcParser::FastF64S2,
1105 {::_pbi::TcParser::FastMtS2,
1108 {::_pbi::TcParser::FastF64S2,
1111 {::_pbi::TcParser::FastF64S2,
1114 {::_pbi::TcParser::FastF64S2,
1117 {::_pbi::TcParser::FastV32S2,
1120 {::_pbi::TcParser::FastV64S2,
1123 {::_pbi::TcParser::FastV32S2,
1126 {::_pbi::TcParser::FastMtS2,
1129 {::_pbi::TcParser::FastMtS2,
1131 {::_pbi::TcParser::MiniParse, {}},
1132 {::_pbi::TcParser::MiniParse, {}},
1133 {::_pbi::TcParser::MiniParse, {}},
1134 {::_pbi::TcParser::MiniParse, {}},
1139 {PROTOBUF_FIELD_OFFSET(
SolveParametersProto, _impl_.time_limit_), _Internal::kHasBitsOffset + 0, 0,
1140 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1142 {PROTOBUF_FIELD_OFFSET(
SolveParametersProto, _impl_.iteration_limit_), _Internal::kHasBitsOffset + 9, 0,
1143 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
1145 {PROTOBUF_FIELD_OFFSET(
SolveParametersProto, _impl_.enable_output_), _Internal::kHasBitsOffset + 10, 0,
1146 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
1148 {PROTOBUF_FIELD_OFFSET(
SolveParametersProto, _impl_.threads_), _Internal::kHasBitsOffset + 11, 0,
1149 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
1151 {PROTOBUF_FIELD_OFFSET(
SolveParametersProto, _impl_.random_seed_), _Internal::kHasBitsOffset + 12, 0,
1152 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
1154 {PROTOBUF_FIELD_OFFSET(
SolveParametersProto, _impl_.lp_algorithm_), _Internal::kHasBitsOffset + 13, 0,
1155 (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
1157 {PROTOBUF_FIELD_OFFSET(
SolveParametersProto, _impl_.presolve_), _Internal::kHasBitsOffset + 14, 0,
1158 (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
1161 (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
1163 {PROTOBUF_FIELD_OFFSET(
SolveParametersProto, _impl_.heuristics_), _Internal::kHasBitsOffset + 16, 0,
1164 (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
1166 {PROTOBUF_FIELD_OFFSET(
SolveParametersProto, _impl_.scaling_), _Internal::kHasBitsOffset + 17, 0,
1167 (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
1170 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1172 {PROTOBUF_FIELD_OFFSET(
SolveParametersProto, _impl_.gurobi_), _Internal::kHasBitsOffset + 2, 2,
1173 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1176 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1178 {PROTOBUF_FIELD_OFFSET(
SolveParametersProto, _impl_.cp_sat_), _Internal::kHasBitsOffset + 4, 4,
1179 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1182 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1184 {PROTOBUF_FIELD_OFFSET(
SolveParametersProto, _impl_.relative_gap_tolerance_), _Internal::kHasBitsOffset + 18, 0,
1185 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1187 {PROTOBUF_FIELD_OFFSET(
SolveParametersProto, _impl_.absolute_gap_tolerance_), _Internal::kHasBitsOffset + 19, 0,
1188 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1191 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1193 {PROTOBUF_FIELD_OFFSET(
SolveParametersProto, _impl_.cutoff_limit_), _Internal::kHasBitsOffset + 20, 0,
1194 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1196 {PROTOBUF_FIELD_OFFSET(
SolveParametersProto, _impl_.objective_limit_), _Internal::kHasBitsOffset + 21, 0,
1197 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1199 {PROTOBUF_FIELD_OFFSET(
SolveParametersProto, _impl_.best_bound_limit_), _Internal::kHasBitsOffset + 22, 0,
1200 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1202 {PROTOBUF_FIELD_OFFSET(
SolveParametersProto, _impl_.solution_limit_), _Internal::kHasBitsOffset + 24, 0,
1203 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
1205 {PROTOBUF_FIELD_OFFSET(
SolveParametersProto, _impl_.node_limit_), _Internal::kHasBitsOffset + 23, 0,
1206 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
1208 {PROTOBUF_FIELD_OFFSET(
SolveParametersProto, _impl_.solution_pool_size_), _Internal::kHasBitsOffset + 25, 0,
1209 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
1212 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1215 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1218 {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()},
1219 {::_pbi::TcParser::GetTable<::operations_research::GScipParameters>()},
1220 {::_pbi::TcParser::GetTable<::operations_research::math_opt::GurobiParametersProto>()},
1221 {::_pbi::TcParser::GetTable<::operations_research::glop::GlopParameters>()},
1222 {::_pbi::TcParser::GetTable<::operations_research::sat::SatParameters>()},
1223 {::_pbi::TcParser::GetTable<::operations_research::pdlp::PrimalDualHybridGradientParams>()},
1224 {::_pbi::TcParser::GetTable<::operations_research::math_opt::OsqpSettingsProto>()},
1225 {::_pbi::TcParser::GetTable<::operations_research::math_opt::GlpkParametersProto>()},
1226 {::_pbi::TcParser::GetTable<::operations_research::math_opt::HighsOptionsProto>()},
1233 ::google::protobuf::internal::TSanWrite(&
_impl_);
1234 ::uint32_t cached_has_bits = 0;
1236 (void) cached_has_bits;
1238 cached_has_bits =
_impl_._has_bits_[0];
1239 if ((cached_has_bits & 0x000000ffu) != 0) {
1240 if ((cached_has_bits & 0x00000001u) != 0) {
1241 ABSL_DCHECK(
_impl_.time_limit_ !=
nullptr);
1242 _impl_.time_limit_->Clear();
1244 if ((cached_has_bits & 0x00000002u) != 0) {
1245 ABSL_DCHECK(
_impl_.gscip_ !=
nullptr);
1248 if ((cached_has_bits & 0x00000004u) != 0) {
1249 ABSL_DCHECK(
_impl_.gurobi_ !=
nullptr);
1252 if ((cached_has_bits & 0x00000008u) != 0) {
1253 ABSL_DCHECK(
_impl_.glop_ !=
nullptr);
1256 if ((cached_has_bits & 0x00000010u) != 0) {
1257 ABSL_DCHECK(
_impl_.cp_sat_ !=
nullptr);
1260 if ((cached_has_bits & 0x00000020u) != 0) {
1261 ABSL_DCHECK(
_impl_.pdlp_ !=
nullptr);
1264 if ((cached_has_bits & 0x00000040u) != 0) {
1265 ABSL_DCHECK(
_impl_.osqp_ !=
nullptr);
1268 if ((cached_has_bits & 0x00000080u) != 0) {
1269 ABSL_DCHECK(
_impl_.glpk_ !=
nullptr);
1273 if ((cached_has_bits & 0x00000100u) != 0) {
1274 ABSL_DCHECK(
_impl_.highs_ !=
nullptr);
1277 if ((cached_has_bits & 0x0000fe00u) != 0) {
1278 ::memset(&
_impl_.iteration_limit_, 0,
static_cast<::
size_t>(
1279 reinterpret_cast<char*
>(&
_impl_.cuts_) -
1280 reinterpret_cast<char*
>(&
_impl_.iteration_limit_)) +
sizeof(
_impl_.cuts_));
1282 if ((cached_has_bits & 0x00ff0000u) != 0) {
1283 ::memset(&
_impl_.heuristics_, 0,
static_cast<::
size_t>(
1284 reinterpret_cast<char*
>(&
_impl_.node_limit_) -
1285 reinterpret_cast<char*
>(&
_impl_.heuristics_)) +
sizeof(
_impl_.node_limit_));
1287 if ((cached_has_bits & 0x03000000u) != 0) {
1288 ::memset(&
_impl_.solution_limit_, 0,
static_cast<::
size_t>(
1289 reinterpret_cast<char*
>(&
_impl_.solution_pool_size_) -
1290 reinterpret_cast<char*
>(&
_impl_.solution_limit_)) +
sizeof(
_impl_.solution_pool_size_));
1292 _impl_._has_bits_.Clear();
1293 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1296#if defined(PROTOBUF_CUSTOM_VTABLE)
1298 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1299 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1303 ::uint8_t* PROTOBUF_NONNULL target,
1304 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1308 ::uint32_t cached_has_bits = 0;
1309 (void)cached_has_bits;
1311 cached_has_bits = this_.
_impl_._has_bits_[0];
1313 if ((cached_has_bits & 0x00000001u) != 0) {
1314 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1315 1, *this_.
_impl_.time_limit_, this_.
_impl_.time_limit_->GetCachedSize(), target,
1320 if ((cached_has_bits & 0x00000200u) != 0) {
1322 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
1323 stream, this_._internal_iteration_limit(), target);
1327 if ((cached_has_bits & 0x00000400u) != 0) {
1328 if (this_._internal_enable_output() != 0) {
1329 target = stream->EnsureSpace(target);
1330 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1331 3, this_._internal_enable_output(), target);
1336 if ((cached_has_bits & 0x00000800u) != 0) {
1338 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>(
1339 stream, this_._internal_threads(), target);
1343 if ((cached_has_bits & 0x00001000u) != 0) {
1345 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>(
1346 stream, this_._internal_random_seed(), target);
1350 if ((cached_has_bits & 0x00002000u) != 0) {
1351 if (this_._internal_lp_algorithm() != 0) {
1352 target = stream->EnsureSpace(target);
1353 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1354 6, this_._internal_lp_algorithm(), target);
1359 if ((cached_has_bits & 0x00004000u) != 0) {
1360 if (this_._internal_presolve() != 0) {
1361 target = stream->EnsureSpace(target);
1362 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1363 7, this_._internal_presolve(), target);
1368 if ((cached_has_bits & 0x00008000u) != 0) {
1369 if (this_._internal_cuts() != 0) {
1370 target = stream->EnsureSpace(target);
1371 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1372 8, this_._internal_cuts(), target);
1377 if ((cached_has_bits & 0x00010000u) != 0) {
1378 if (this_._internal_heuristics() != 0) {
1379 target = stream->EnsureSpace(target);
1380 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1381 9, this_._internal_heuristics(), target);
1386 if ((cached_has_bits & 0x00020000u) != 0) {
1387 if (this_._internal_scaling() != 0) {
1388 target = stream->EnsureSpace(target);
1389 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1390 10, this_._internal_scaling(), target);
1395 if ((cached_has_bits & 0x00000002u) != 0) {
1396 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1402 if ((cached_has_bits & 0x00000004u) != 0) {
1403 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1409 if ((cached_has_bits & 0x00000008u) != 0) {
1410 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1416 if ((cached_has_bits & 0x00000010u) != 0) {
1417 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1423 if ((cached_has_bits & 0x00000020u) != 0) {
1424 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1430 if ((cached_has_bits & 0x00040000u) != 0) {
1431 target = stream->EnsureSpace(target);
1432 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1433 17, this_._internal_relative_gap_tolerance(), target);
1437 if ((cached_has_bits & 0x00080000u) != 0) {
1438 target = stream->EnsureSpace(target);
1439 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1440 18, this_._internal_absolute_gap_tolerance(), target);
1444 if ((cached_has_bits & 0x00000040u) != 0) {
1445 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1451 if ((cached_has_bits & 0x00100000u) != 0) {
1452 target = stream->EnsureSpace(target);
1453 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1454 20, this_._internal_cutoff_limit(), target);
1458 if ((cached_has_bits & 0x00200000u) != 0) {
1459 target = stream->EnsureSpace(target);
1460 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1461 21, this_._internal_objective_limit(), target);
1465 if ((cached_has_bits & 0x00400000u) != 0) {
1466 target = stream->EnsureSpace(target);
1467 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1468 22, this_._internal_best_bound_limit(), target);
1472 if ((cached_has_bits & 0x01000000u) != 0) {
1473 target = stream->EnsureSpace(target);
1474 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
1475 23, this_._internal_solution_limit(), target);
1479 if ((cached_has_bits & 0x00800000u) != 0) {
1480 target = stream->EnsureSpace(target);
1481 target = ::_pbi::WireFormatLite::WriteInt64ToArray(
1482 24, this_._internal_node_limit(), target);
1486 if ((cached_has_bits & 0x02000000u) != 0) {
1487 target = stream->EnsureSpace(target);
1488 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
1489 25, this_._internal_solution_pool_size(), target);
1493 if ((cached_has_bits & 0x00000080u) != 0) {
1494 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1500 if ((cached_has_bits & 0x00000100u) != 0) {
1501 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1506 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1508 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1509 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1515#if defined(PROTOBUF_CUSTOM_VTABLE)
1523 ::size_t total_size = 0;
1525 ::uint32_t cached_has_bits = 0;
1527 (void)cached_has_bits;
1529 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1530 cached_has_bits = this_._impl_._has_bits_[0];
1531 total_size += ::absl::popcount(0x007c0000u & cached_has_bits) * 10;
1532 if ((cached_has_bits & 0x000000ffu) != 0) {
1534 if ((cached_has_bits & 0x00000001u) != 0) {
1536 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.time_limit_);
1539 if ((cached_has_bits & 0x00000002u) != 0) {
1541 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.gscip_);
1544 if ((cached_has_bits & 0x00000004u) != 0) {
1546 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.gurobi_);
1549 if ((cached_has_bits & 0x00000008u) != 0) {
1551 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.glop_);
1554 if ((cached_has_bits & 0x00000010u) != 0) {
1556 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cp_sat_);
1559 if ((cached_has_bits & 0x00000020u) != 0) {
1561 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.pdlp_);
1564 if ((cached_has_bits & 0x00000040u) != 0) {
1566 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.osqp_);
1569 if ((cached_has_bits & 0x00000080u) != 0) {
1571 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.glpk_);
1574 if ((cached_has_bits & 0x0000ff00u) != 0) {
1576 if ((cached_has_bits & 0x00000100u) != 0) {
1578 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.highs_);
1581 if ((cached_has_bits & 0x00000200u) != 0) {
1582 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1583 this_._internal_iteration_limit());
1586 if ((cached_has_bits & 0x00000400u) != 0) {
1587 if (this_._internal_enable_output() != 0) {
1592 if ((cached_has_bits & 0x00000800u) != 0) {
1593 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
1594 this_._internal_threads());
1597 if ((cached_has_bits & 0x00001000u) != 0) {
1598 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
1599 this_._internal_random_seed());
1602 if ((cached_has_bits & 0x00002000u) != 0) {
1603 if (this_._internal_lp_algorithm() != 0) {
1605 ::_pbi::WireFormatLite::EnumSize(this_._internal_lp_algorithm());
1609 if ((cached_has_bits & 0x00004000u) != 0) {
1610 if (this_._internal_presolve() != 0) {
1612 ::_pbi::WireFormatLite::EnumSize(this_._internal_presolve());
1616 if ((cached_has_bits & 0x00008000u) != 0) {
1617 if (this_._internal_cuts() != 0) {
1619 ::_pbi::WireFormatLite::EnumSize(this_._internal_cuts());
1623 if ((cached_has_bits & 0x00830000u) != 0) {
1625 if ((cached_has_bits & 0x00010000u) != 0) {
1626 if (this_._internal_heuristics() != 0) {
1628 ::_pbi::WireFormatLite::EnumSize(this_._internal_heuristics());
1632 if ((cached_has_bits & 0x00020000u) != 0) {
1633 if (this_._internal_scaling() != 0) {
1635 ::_pbi::WireFormatLite::EnumSize(this_._internal_scaling());
1639 if ((cached_has_bits & 0x00800000u) != 0) {
1640 total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
1641 this_._internal_node_limit());
1644 if ((cached_has_bits & 0x03000000u) != 0) {
1646 if ((cached_has_bits & 0x01000000u) != 0) {
1647 total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
1648 this_._internal_solution_limit());
1651 if ((cached_has_bits & 0x02000000u) != 0) {
1652 total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
1653 this_._internal_solution_pool_size());
1656 return this_.MaybeComputeUnknownFieldsSize(total_size,
1657 &this_._impl_._cached_size_);
1660void SolveParametersProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1665 ABSL_DCHECK_NE(&from, _this);
1666 ::uint32_t cached_has_bits = 0;
1667 (void) cached_has_bits;
1669 cached_has_bits = from._impl_._has_bits_[0];
1670 if ((cached_has_bits & 0x000000ffu) != 0) {
1671 if ((cached_has_bits & 0x00000001u) != 0) {
1672 ABSL_DCHECK(from._impl_.time_limit_ !=
nullptr);
1673 if (_this->_impl_.time_limit_ ==
nullptr) {
1674 _this->_impl_.time_limit_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.time_limit_);
1676 _this->_impl_.time_limit_->MergeFrom(*from._impl_.time_limit_);
1679 if ((cached_has_bits & 0x00000002u) != 0) {
1680 ABSL_DCHECK(from._impl_.gscip_ !=
nullptr);
1681 if (_this->_impl_.gscip_ ==
nullptr) {
1682 _this->_impl_.gscip_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.gscip_);
1684 _this->_impl_.gscip_->MergeFrom(*from._impl_.gscip_);
1687 if ((cached_has_bits & 0x00000004u) != 0) {
1688 ABSL_DCHECK(from._impl_.gurobi_ !=
nullptr);
1689 if (_this->_impl_.gurobi_ ==
nullptr) {
1690 _this->_impl_.gurobi_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.gurobi_);
1692 _this->_impl_.gurobi_->MergeFrom(*from._impl_.gurobi_);
1695 if ((cached_has_bits & 0x00000008u) != 0) {
1696 ABSL_DCHECK(from._impl_.glop_ !=
nullptr);
1697 if (_this->_impl_.glop_ ==
nullptr) {
1698 _this->_impl_.glop_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.glop_);
1700 _this->_impl_.glop_->MergeFrom(*from._impl_.glop_);
1703 if ((cached_has_bits & 0x00000010u) != 0) {
1704 ABSL_DCHECK(from._impl_.cp_sat_ !=
nullptr);
1705 if (_this->_impl_.cp_sat_ ==
nullptr) {
1706 _this->_impl_.cp_sat_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.cp_sat_);
1708 _this->_impl_.cp_sat_->MergeFrom(*from._impl_.cp_sat_);
1711 if ((cached_has_bits & 0x00000020u) != 0) {
1712 ABSL_DCHECK(from._impl_.pdlp_ !=
nullptr);
1713 if (_this->_impl_.pdlp_ ==
nullptr) {
1714 _this->_impl_.pdlp_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.pdlp_);
1716 _this->_impl_.pdlp_->MergeFrom(*from._impl_.pdlp_);
1719 if ((cached_has_bits & 0x00000040u) != 0) {
1720 ABSL_DCHECK(from._impl_.osqp_ !=
nullptr);
1721 if (_this->_impl_.osqp_ ==
nullptr) {
1722 _this->_impl_.osqp_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.osqp_);
1724 _this->_impl_.osqp_->MergeFrom(*from._impl_.osqp_);
1727 if ((cached_has_bits & 0x00000080u) != 0) {
1728 ABSL_DCHECK(from._impl_.glpk_ !=
nullptr);
1729 if (_this->_impl_.glpk_ ==
nullptr) {
1730 _this->_impl_.glpk_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.glpk_);
1732 _this->_impl_.glpk_->MergeFrom(*from._impl_.glpk_);
1736 if ((cached_has_bits & 0x0000ff00u) != 0) {
1737 if ((cached_has_bits & 0x00000100u) != 0) {
1738 ABSL_DCHECK(from._impl_.highs_ !=
nullptr);
1739 if (_this->_impl_.highs_ ==
nullptr) {
1740 _this->_impl_.highs_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.highs_);
1742 _this->_impl_.highs_->MergeFrom(*from._impl_.highs_);
1745 if ((cached_has_bits & 0x00000200u) != 0) {
1746 _this->_impl_.iteration_limit_ = from._impl_.iteration_limit_;
1748 if ((cached_has_bits & 0x00000400u) != 0) {
1749 if (from._internal_enable_output() != 0) {
1750 _this->_impl_.enable_output_ = from._impl_.enable_output_;
1753 if ((cached_has_bits & 0x00000800u) != 0) {
1754 _this->_impl_.threads_ = from._impl_.threads_;
1756 if ((cached_has_bits & 0x00001000u) != 0) {
1757 _this->_impl_.random_seed_ = from._impl_.random_seed_;
1759 if ((cached_has_bits & 0x00002000u) != 0) {
1760 if (from._internal_lp_algorithm() != 0) {
1761 _this->_impl_.lp_algorithm_ = from._impl_.lp_algorithm_;
1764 if ((cached_has_bits & 0x00004000u) != 0) {
1765 if (from._internal_presolve() != 0) {
1766 _this->_impl_.presolve_ = from._impl_.presolve_;
1769 if ((cached_has_bits & 0x00008000u) != 0) {
1770 if (from._internal_cuts() != 0) {
1771 _this->_impl_.cuts_ = from._impl_.cuts_;
1775 if ((cached_has_bits & 0x00ff0000u) != 0) {
1776 if ((cached_has_bits & 0x00010000u) != 0) {
1777 if (from._internal_heuristics() != 0) {
1778 _this->_impl_.heuristics_ = from._impl_.heuristics_;
1781 if ((cached_has_bits & 0x00020000u) != 0) {
1782 if (from._internal_scaling() != 0) {
1783 _this->_impl_.scaling_ = from._impl_.scaling_;
1786 if ((cached_has_bits & 0x00040000u) != 0) {
1787 _this->_impl_.relative_gap_tolerance_ = from._impl_.relative_gap_tolerance_;
1789 if ((cached_has_bits & 0x00080000u) != 0) {
1790 _this->_impl_.absolute_gap_tolerance_ = from._impl_.absolute_gap_tolerance_;
1792 if ((cached_has_bits & 0x00100000u) != 0) {
1793 _this->_impl_.cutoff_limit_ = from._impl_.cutoff_limit_;
1795 if ((cached_has_bits & 0x00200000u) != 0) {
1796 _this->_impl_.objective_limit_ = from._impl_.objective_limit_;
1798 if ((cached_has_bits & 0x00400000u) != 0) {
1799 _this->_impl_.best_bound_limit_ = from._impl_.best_bound_limit_;
1801 if ((cached_has_bits & 0x00800000u) != 0) {
1802 _this->_impl_.node_limit_ = from._impl_.node_limit_;
1805 if ((cached_has_bits & 0x03000000u) != 0) {
1806 if ((cached_has_bits & 0x01000000u) != 0) {
1807 _this->_impl_.solution_limit_ = from._impl_.solution_limit_;
1809 if ((cached_has_bits & 0x02000000u) != 0) {
1810 _this->_impl_.solution_pool_size_ = from._impl_.solution_pool_size_;
1813 _this->_impl_._has_bits_[0] |= cached_has_bits;
1814 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1819 if (&from ==
this)
return;
1825void SolveParametersProto::InternalSwap(
SolveParametersProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1827 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1828 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1829 ::google::protobuf::internal::memswap<
1833 reinterpret_cast<char*
>(&
_impl_.time_limit_),
1834 reinterpret_cast<char*
>(&other->_impl_.time_limit_));
1838 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
1848PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1851 ::std::false_type{});
1852#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
@protoc_insertion_point(global_scope)
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
int GetCachedSize() const
int GetCachedSize() const
int GetCachedSize() const
int GetCachedSize() const
int GetCachedSize() const
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
int GetCachedSize() const
static constexpr ::int32_t kHasBitsOffset
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
~SolveParametersProto() PROTOBUF_FINAL
friend void swap(SolveParametersProto &a, SolveParametersProto &b)
friend class ::google::protobuf::MessageLite
::google::protobuf::Metadata GetMetadata() const
static constexpr auto InternalNewImpl_()
void CopyFrom(const SolveParametersProto &from)
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::size_t ByteSizeLong() const final
void MergeFrom(const SolveParametersProto &from)
friend class ::google::protobuf::Arena
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
static constexpr ::int32_t kHasBitsOffset
decltype(::std::declval< SolverInitializerProto >()._impl_._has_bits_) HasBits
::google::protobuf::Metadata GetMetadata() const
static constexpr auto InternalNewImpl_()
~SolverInitializerProto() PROTOBUF_FINAL
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
::size_t ByteSizeLong() const final
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
void CopyFrom(const SolverInitializerProto &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const SolverInitializerProto &from)
static constexpr auto InternalGenerateClassData_()
decltype(::std::declval< StrictnessProto >()._impl_._has_bits_) HasBits
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static constexpr auto InternalGenerateClassData_()
static constexpr auto InternalNewImpl_()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::size_t ByteSizeLong() const final
friend void swap(StrictnessProto &a, StrictnessProto &b)
void MergeFrom(const StrictnessProto &from)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
void CopyFrom(const StrictnessProto &from)
~StrictnessProto() PROTOBUF_FINAL
int GetCachedSize() const
int GetCachedSize() const
const ::uint32_t TableStruct_ortools_2fglop_2fparameters_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fglop_2fparameters_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsolvers_2fglpk_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fgscip_2fgscip_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsolvers_2fgurobi_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsolvers_2fhighs_2eproto
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fmath_5fopt_2fparameters_2eproto
static const ::_pb::EnumDescriptor *PROTOBUF_NONNULL file_level_enum_descriptors_ortools_2fmath_5fopt_2fparameters_2eproto[3]
::absl::once_flag descriptor_table_ortools_2fmath_5fopt_2fparameters_2eproto_once
static const ::_pbi::DescriptorTable *PROTOBUF_NONNULL const descriptor_table_ortools_2fmath_5fopt_2fparameters_2eproto_deps[9]
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fparameters_2eproto
An object oriented wrapper for quadratic constraints in ModelStorage.
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SolveParametersProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SolverInitializerProtoDefaultTypeInternal _SolverInitializerProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SolveParametersProtoDefaultTypeInternal _SolveParametersProto_default_instance_
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL EmphasisProto_descriptor()
PROTOBUF_CONSTINIT const uint32_t EmphasisProto_internal_data_[]
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL LPAlgorithmProto_descriptor()
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL SolverTypeProto_descriptor()
PROTOBUF_CONSTINIT const uint32_t LPAlgorithmProto_internal_data_[]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SolverInitializerProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull StrictnessProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StrictnessProtoDefaultTypeInternal _StrictnessProto_default_instance_
PROTOBUF_CONSTINIT const uint32_t SolverTypeProto_internal_data_[]
In SWIG mode, we don't want anything besides these top-level includes.
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsolvers_2fosqp_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fsat_2fsat_5fparameters_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fpdlp_2fsolvers_2eproto
SolveParametersProto _instance
PROTOBUF_CONSTEXPR SolveParametersProtoDefaultTypeInternal()
~SolveParametersProtoDefaultTypeInternal()
~SolverInitializerProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR SolverInitializerProtoDefaultTypeInternal()
SolverInitializerProto _instance
StrictnessProto _instance
PROTOBUF_CONSTEXPR StrictnessProtoDefaultTypeInternal()
~StrictnessProtoDefaultTypeInternal()