8 #include <google/protobuf/io/coded_stream.h>
9 #include <google/protobuf/extension_set.h>
10 #include <google/protobuf/wire_format_lite.h>
11 #include <google/protobuf/descriptor.h>
12 #include <google/protobuf/generated_message_reflection.h>
13 #include <google/protobuf/reflection_ops.h>
14 #include <google/protobuf/wire_format.h>
16 #include <google/protobuf/port_def.inc>
27 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GScipParameters_BoolParamsEntry_DoNotUse>
_instance;
31 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GScipParameters_IntParamsEntry_DoNotUse>
_instance;
35 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GScipParameters_LongParamsEntry_DoNotUse>
_instance;
39 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GScipParameters_RealParamsEntry_DoNotUse>
_instance;
43 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GScipParameters_CharParamsEntry_DoNotUse>
_instance;
47 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GScipParameters_StringParamsEntry_DoNotUse>
_instance;
51 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GScipParameters>
_instance;
55 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GScipSolvingStats>
_instance;
59 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GScipOutput>
_instance;
63 GOOGLE_PROTOBUF_VERIFY_VERSION;
68 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
77 GOOGLE_PROTOBUF_VERIFY_VERSION;
82 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
96 GOOGLE_PROTOBUF_VERIFY_VERSION;
108 GOOGLE_PROTOBUF_VERIFY_VERSION;
120 GOOGLE_PROTOBUF_VERIFY_VERSION;
132 GOOGLE_PROTOBUF_VERIFY_VERSION;
144 GOOGLE_PROTOBUF_VERIFY_VERSION;
156 GOOGLE_PROTOBUF_VERIFY_VERSION;
168 GOOGLE_PROTOBUF_VERIFY_VERSION;
173 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
291 { 54, -1,
sizeof(::operations_research::GScipParameters)},
292 { 76, -1,
sizeof(::operations_research::GScipSolvingStats)},
293 { 90, -1,
sizeof(::operations_research::GScipOutput)},
309 "\n\031ortools/gscip/gscip.proto\022\023operations_"
310 "research\"\367\013\n\017GScipParameters\022\?\n\010emphasis"
311 "\030\001 \001(\0162-.operations_research.GScipParame"
312 "ters.Emphasis\022G\n\nheuristics\030\002 \001(\01623.oper"
313 "ations_research.GScipParameters.MetaPara"
314 "mValue\022E\n\010presolve\030\003 \001(\01623.operations_re"
315 "search.GScipParameters.MetaParamValue\022G\n"
316 "\nseparating\030\004 \001(\01623.operations_research."
317 "GScipParameters.MetaParamValue\022I\n\013bool_p"
318 "arams\030\005 \003(\01324.operations_research.GScipP"
319 "arameters.BoolParamsEntry\022G\n\nint_params\030"
320 "\006 \003(\01323.operations_research.GScipParamet"
321 "ers.IntParamsEntry\022I\n\013long_params\030\007 \003(\0132"
322 "4.operations_research.GScipParameters.Lo"
323 "ngParamsEntry\022I\n\013real_params\030\010 \003(\01324.ope"
324 "rations_research.GScipParameters.RealPar"
325 "amsEntry\022I\n\013char_params\030\t \003(\01324.operatio"
326 "ns_research.GScipParameters.CharParamsEn"
327 "try\022M\n\rstring_params\030\n \003(\01326.operations_"
328 "research.GScipParameters.StringParamsEnt"
329 "ry\022\026\n\016silence_output\030\013 \001(\010\022$\n\034print_deta"
330 "iled_solving_stats\030\014 \001(\010\022\030\n\020print_scip_m"
331 "odel\030\r \001(\010\022\034\n\024search_logs_filename\030\016 \001(\t"
332 "\022\'\n\037detailed_solving_stats_filename\030\017 \001("
333 "\t\022\033\n\023scip_model_filename\030\020 \001(\t\022\025\n\rnum_so"
334 "lutions\030\021 \001(\005\0321\n\017BoolParamsEntry\022\013\n\003key\030"
335 "\001 \001(\t\022\r\n\005value\030\002 \001(\010:\0028\001\0320\n\016IntParamsEnt"
336 "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001\0321\n\017Lo"
337 "ngParamsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001("
338 "\003:\0028\001\0321\n\017RealParamsEntry\022\013\n\003key\030\001 \001(\t\022\r\n"
339 "\005value\030\002 \001(\001:\0028\001\0321\n\017CharParamsEntry\022\013\n\003k"
340 "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0323\n\021StringPar"
341 "amsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001"
342 "\"\254\001\n\010Emphasis\022\024\n\020DEFAULT_EMPHASIS\020\000\022\013\n\007C"
343 "OUNTER\020\001\022\r\n\tCP_SOLVER\020\002\022\014\n\010EASY_CIP\020\003\022\017\n"
344 "\013FEASIBILITY\020\004\022\013\n\007HARD_LP\020\005\022\016\n\nOPTIMALIT"
345 "Y\020\006\022\016\n\nPHASE_FEAS\020\007\022\021\n\rPHASE_IMPROVE\020\010\022\017"
346 "\n\013PHASE_PROOF\020\t\"Q\n\016MetaParamValue\022\034\n\030DEF"
347 "AULT_META_PARAM_VALUE\020\000\022\016\n\nAGGRESSIVE\020\001\022"
348 "\010\n\004FAST\020\002\022\007\n\003OFF\020\003\"\214\002\n\021GScipSolvingStats"
349 "\022\026\n\016best_objective\030\001 \001(\001\022\022\n\nbest_bound\030\002"
350 " \001(\001\022!\n\031primal_simplex_iterations\030\003 \001(\003\022"
351 "\037\n\027dual_simplex_iterations\030\004 \001(\003\022\033\n\023tota"
352 "l_lp_iterations\030\005 \001(\003\022\022\n\nnode_count\030\006 \001("
353 "\003\022!\n\031first_lp_relaxation_bound\030\007 \001(\001\022\027\n\017"
354 "root_node_bound\030\010 \001(\001\022\032\n\022deterministic_t"
355 "ime\030\t \001(\001\"\313\003\n\013GScipOutput\0227\n\006status\030\001 \001("
356 "\0162\'.operations_research.GScipOutput.Stat"
357 "us\022\025\n\rstatus_detail\030\002 \001(\t\0225\n\005stats\030\003 \001(\013"
358 "2&.operations_research.GScipSolvingStats"
359 "\"\264\002\n\006Status\022\013\n\007UNKNOWN\020\000\022\022\n\016USER_INTERRU"
360 "PT\020\001\022\016\n\nNODE_LIMIT\020\002\022\024\n\020TOTAL_NODE_LIMIT"
361 "\020\003\022\024\n\020STALL_NODE_LIMIT\020\004\022\016\n\nTIME_LIMIT\020\005"
362 "\022\r\n\tMEM_LIMIT\020\006\022\r\n\tGAP_LIMIT\020\007\022\r\n\tSOL_LI"
363 "MIT\020\010\022\022\n\016BEST_SOL_LIMIT\020\t\022\021\n\rRESTART_LIM"
364 "IT\020\n\022\013\n\007OPTIMAL\020\013\022\016\n\nINFEASIBLE\020\014\022\r\n\tUNB"
365 "OUNDED\020\r\022\017\n\013INF_OR_UNBD\020\016\022\r\n\tTERMINATE\020\017"
366 "\022\035\n\031INVALID_SOLVER_PARAMETERS\020\020b\006proto3"
383 false,
false, descriptor_table_protodef_ortools_2fgscip_2fgscip_2eproto,
"ortools/gscip/gscip.proto", 2319,
414 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
427 constexpr
int GScipParameters::Emphasis_ARRAYSIZE;
428 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
445 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
452 constexpr
int GScipParameters::MetaParamValue_ARRAYSIZE;
453 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
483 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
503 constexpr
int GScipOutput::Status_ARRAYSIZE;
504 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
512 MergeFromInternal(other);
515 return GetMetadataStatic();
518 const ::PROTOBUF_NAMESPACE_ID::Message& other) {
519 ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
529 MergeFromInternal(other);
532 return GetMetadataStatic();
535 const ::PROTOBUF_NAMESPACE_ID::Message& other) {
536 ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
546 MergeFromInternal(other);
549 return GetMetadataStatic();
552 const ::PROTOBUF_NAMESPACE_ID::Message& other) {
553 ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
563 MergeFromInternal(other);
566 return GetMetadataStatic();
569 const ::PROTOBUF_NAMESPACE_ID::Message& other) {
570 ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
580 MergeFromInternal(other);
583 return GetMetadataStatic();
586 const ::PROTOBUF_NAMESPACE_ID::Message& other) {
587 ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
597 MergeFromInternal(other);
600 return GetMetadataStatic();
603 const ::PROTOBUF_NAMESPACE_ID::Message& other) {
604 ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
614 GScipParameters::GScipParameters(::PROTOBUF_NAMESPACE_ID::Arena* arena)
615 : ::PROTOBUF_NAMESPACE_ID::Message(arena),
621 string_params_(arena) {
623 RegisterArenaDtor(arena);
626 GScipParameters::GScipParameters(
const GScipParameters& from)
627 : ::PROTOBUF_NAMESPACE_ID::Message() {
628 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
629 bool_params_.MergeFrom(from.bool_params_);
630 int_params_.MergeFrom(from.int_params_);
631 long_params_.MergeFrom(from.long_params_);
632 real_params_.MergeFrom(from.real_params_);
633 char_params_.MergeFrom(from.char_params_);
634 string_params_.MergeFrom(from.string_params_);
635 search_logs_filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
636 if (!from._internal_search_logs_filename().empty()) {
637 search_logs_filename_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_search_logs_filename(),
640 detailed_solving_stats_filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
641 if (!from._internal_detailed_solving_stats_filename().empty()) {
642 detailed_solving_stats_filename_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_detailed_solving_stats_filename(),
645 scip_model_filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
646 if (!from._internal_scip_model_filename().empty()) {
647 scip_model_filename_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_scip_model_filename(),
650 ::memcpy(&emphasis_, &from.emphasis_,
651 static_cast<size_t>(
reinterpret_cast<char*
>(&num_solutions_) -
652 reinterpret_cast<char*
>(&emphasis_)) +
sizeof(num_solutions_));
656 void GScipParameters::SharedCtor() {
658 search_logs_filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
659 detailed_solving_stats_filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
660 scip_model_filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
661 ::memset(
reinterpret_cast<char*
>(
this) +
static_cast<size_t>(
662 reinterpret_cast<char*
>(&emphasis_) -
reinterpret_cast<char*
>(
this)),
663 0,
static_cast<size_t>(
reinterpret_cast<char*
>(&num_solutions_) -
664 reinterpret_cast<char*
>(&emphasis_)) +
sizeof(num_solutions_));
667 GScipParameters::~GScipParameters() {
670 _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
673 void GScipParameters::SharedDtor() {
674 GOOGLE_DCHECK(GetArena() ==
nullptr);
675 search_logs_filename_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
676 detailed_solving_stats_filename_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
677 scip_model_filename_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
680 void GScipParameters::ArenaDtor(
void*
object) {
681 GScipParameters* _this =
reinterpret_cast< GScipParameters*
>(object);
684 void GScipParameters::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
686 void GScipParameters::SetCachedSize(
int size)
const {
687 _cached_size_.Set(size);
689 const GScipParameters& GScipParameters::default_instance() {
691 return *internal_default_instance();
695 void GScipParameters::Clear() {
699 (void) cached_has_bits;
701 bool_params_.Clear();
703 long_params_.Clear();
704 real_params_.Clear();
705 char_params_.Clear();
706 string_params_.Clear();
707 search_logs_filename_.ClearToEmpty();
708 detailed_solving_stats_filename_.ClearToEmpty();
709 scip_model_filename_.ClearToEmpty();
710 ::memset(&emphasis_, 0,
static_cast<size_t>(
711 reinterpret_cast<char*
>(&num_solutions_) -
712 reinterpret_cast<char*
>(&emphasis_)) +
sizeof(num_solutions_));
713 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
716 const char* GScipParameters::_InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
717 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
718 while (!ctx->Done(&ptr)) {
720 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
729 }
else goto handle_unusual;
737 }
else goto handle_unusual;
745 }
else goto handle_unusual;
753 }
else goto handle_unusual;
761 ptr = ctx->ParseMessage(&bool_params_, ptr);
763 if (!ctx->DataAvailable(ptr))
break;
764 }
while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
765 }
else goto handle_unusual;
773 ptr = ctx->ParseMessage(&int_params_, ptr);
775 if (!ctx->DataAvailable(ptr))
break;
776 }
while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr));
777 }
else goto handle_unusual;
785 ptr = ctx->ParseMessage(&long_params_, ptr);
787 if (!ctx->DataAvailable(ptr))
break;
788 }
while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr));
789 }
else goto handle_unusual;
797 ptr = ctx->ParseMessage(&real_params_, ptr);
799 if (!ctx->DataAvailable(ptr))
break;
800 }
while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr));
801 }
else goto handle_unusual;
809 ptr = ctx->ParseMessage(&char_params_, ptr);
811 if (!ctx->DataAvailable(ptr))
break;
812 }
while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr));
813 }
else goto handle_unusual;
821 ptr = ctx->ParseMessage(&string_params_, ptr);
823 if (!ctx->DataAvailable(ptr))
break;
824 }
while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<82>(ptr));
825 }
else goto handle_unusual;
830 silence_output_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
832 }
else goto handle_unusual;
837 print_detailed_solving_stats_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
839 }
else goto handle_unusual;
844 print_scip_model_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
846 }
else goto handle_unusual;
851 auto str = _internal_mutable_search_logs_filename();
852 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
853 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str,
"operations_research.GScipParameters.search_logs_filename"));
855 }
else goto handle_unusual;
860 auto str = _internal_mutable_detailed_solving_stats_filename();
861 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
862 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str,
"operations_research.GScipParameters.detailed_solving_stats_filename"));
864 }
else goto handle_unusual;
869 auto str = _internal_mutable_scip_model_filename();
870 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
871 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str,
"operations_research.GScipParameters.scip_model_filename"));
873 }
else goto handle_unusual;
878 num_solutions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
880 }
else goto handle_unusual;
884 if ((tag & 7) == 4 || tag == 0) {
885 ctx->SetLastTag(tag);
888 ptr = UnknownFieldParse(tag,
889 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
891 CHK_(ptr !=
nullptr);
908 (void) cached_has_bits;
911 if (this->emphasis() != 0) {
912 target = stream->EnsureSpace(target);
913 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
914 1, this->_internal_emphasis(), target);
918 if (this->heuristics() != 0) {
919 target = stream->EnsureSpace(target);
920 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
921 2, this->_internal_heuristics(), target);
925 if (this->presolve() != 0) {
926 target = stream->EnsureSpace(target);
927 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
928 3, this->_internal_presolve(), target);
932 if (this->separating() != 0) {
933 target = stream->EnsureSpace(target);
934 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
935 4, this->_internal_separating(), target);
939 if (!this->_internal_bool_params().empty()) {
940 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, bool >::const_pointer
942 typedef ConstPtr SortItem;
943 typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
945 static void Check(ConstPtr p) {
946 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
947 p->first.data(),
static_cast<int>(p->first.length()),
948 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
949 "operations_research.GScipParameters.BoolParamsEntry.key");
953 if (stream->IsSerializationDeterministic() &&
954 this->_internal_bool_params().size() > 1) {
955 ::std::unique_ptr<SortItem[]> items(
956 new SortItem[this->_internal_bool_params().size()]);
957 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, bool >::size_type size_type;
959 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, bool >::const_iterator
960 it = this->_internal_bool_params().begin();
961 it != this->_internal_bool_params().end(); ++it, ++n) {
962 items[
static_cast<ptrdiff_t
>(n)] = SortItem(&*it);
964 ::std::sort(&items[0], &items[
static_cast<ptrdiff_t
>(n)], Less());
965 for (size_type i = 0; i < n; i++) {
966 target = GScipParameters_BoolParamsEntry_DoNotUse::Funcs::InternalSerialize(5, items[
static_cast<ptrdiff_t
>(i)]->first, items[
static_cast<ptrdiff_t
>(i)]->second, target, stream);
967 Utf8Check::Check(&(*items[
static_cast<ptrdiff_t
>(i)]));
970 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, bool >::const_iterator
971 it = this->_internal_bool_params().begin();
972 it != this->_internal_bool_params().end(); ++it) {
973 target = GScipParameters_BoolParamsEntry_DoNotUse::Funcs::InternalSerialize(5, it->first, it->second, target, stream);
974 Utf8Check::Check(&(*it));
980 if (!this->_internal_int_params().empty()) {
981 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::int32 >::const_pointer
983 typedef ConstPtr SortItem;
984 typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
986 static void Check(ConstPtr p) {
987 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
988 p->first.data(),
static_cast<int>(p->first.length()),
989 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
990 "operations_research.GScipParameters.IntParamsEntry.key");
994 if (stream->IsSerializationDeterministic() &&
995 this->_internal_int_params().size() > 1) {
996 ::std::unique_ptr<SortItem[]> items(
997 new SortItem[this->_internal_int_params().size()]);
998 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::int32 >::size_type size_type;
1000 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::int32 >::const_iterator
1001 it = this->_internal_int_params().begin();
1002 it != this->_internal_int_params().end(); ++it, ++n) {
1003 items[
static_cast<ptrdiff_t
>(n)] = SortItem(&*it);
1005 ::std::sort(&items[0], &items[
static_cast<ptrdiff_t
>(n)], Less());
1006 for (size_type i = 0; i < n; i++) {
1007 target = GScipParameters_IntParamsEntry_DoNotUse::Funcs::InternalSerialize(6, items[
static_cast<ptrdiff_t
>(i)]->first, items[
static_cast<ptrdiff_t
>(i)]->second, target, stream);
1008 Utf8Check::Check(&(*items[
static_cast<ptrdiff_t
>(i)]));
1011 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::int32 >::const_iterator
1012 it = this->_internal_int_params().begin();
1013 it != this->_internal_int_params().end(); ++it) {
1014 target = GScipParameters_IntParamsEntry_DoNotUse::Funcs::InternalSerialize(6, it->first, it->second, target, stream);
1015 Utf8Check::Check(&(*it));
1021 if (!this->_internal_long_params().empty()) {
1022 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::int64 >::const_pointer
1024 typedef ConstPtr SortItem;
1025 typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
1027 static void Check(ConstPtr p) {
1028 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1029 p->first.data(),
static_cast<int>(p->first.length()),
1030 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1031 "operations_research.GScipParameters.LongParamsEntry.key");
1035 if (stream->IsSerializationDeterministic() &&
1036 this->_internal_long_params().size() > 1) {
1037 ::std::unique_ptr<SortItem[]> items(
1038 new SortItem[this->_internal_long_params().size()]);
1039 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::int64 >::size_type size_type;
1041 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::int64 >::const_iterator
1042 it = this->_internal_long_params().begin();
1043 it != this->_internal_long_params().end(); ++it, ++n) {
1044 items[
static_cast<ptrdiff_t
>(n)] = SortItem(&*it);
1046 ::std::sort(&items[0], &items[
static_cast<ptrdiff_t
>(n)], Less());
1047 for (size_type i = 0; i < n; i++) {
1048 target = GScipParameters_LongParamsEntry_DoNotUse::Funcs::InternalSerialize(7, items[
static_cast<ptrdiff_t
>(i)]->first, items[
static_cast<ptrdiff_t
>(i)]->second, target, stream);
1049 Utf8Check::Check(&(*items[
static_cast<ptrdiff_t
>(i)]));
1052 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::int64 >::const_iterator
1053 it = this->_internal_long_params().begin();
1054 it != this->_internal_long_params().end(); ++it) {
1055 target = GScipParameters_LongParamsEntry_DoNotUse::Funcs::InternalSerialize(7, it->first, it->second, target, stream);
1056 Utf8Check::Check(&(*it));
1062 if (!this->_internal_real_params().empty()) {
1063 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, double >::const_pointer
1065 typedef ConstPtr SortItem;
1066 typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
1068 static void Check(ConstPtr p) {
1069 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1070 p->first.data(),
static_cast<int>(p->first.length()),
1071 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1072 "operations_research.GScipParameters.RealParamsEntry.key");
1076 if (stream->IsSerializationDeterministic() &&
1077 this->_internal_real_params().size() > 1) {
1078 ::std::unique_ptr<SortItem[]> items(
1079 new SortItem[this->_internal_real_params().size()]);
1080 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, double >::size_type size_type;
1082 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, double >::const_iterator
1083 it = this->_internal_real_params().begin();
1084 it != this->_internal_real_params().end(); ++it, ++n) {
1085 items[
static_cast<ptrdiff_t
>(n)] = SortItem(&*it);
1087 ::std::sort(&items[0], &items[
static_cast<ptrdiff_t
>(n)], Less());
1088 for (size_type i = 0; i < n; i++) {
1089 target = GScipParameters_RealParamsEntry_DoNotUse::Funcs::InternalSerialize(8, items[
static_cast<ptrdiff_t
>(i)]->first, items[
static_cast<ptrdiff_t
>(i)]->second, target, stream);
1090 Utf8Check::Check(&(*items[
static_cast<ptrdiff_t
>(i)]));
1093 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, double >::const_iterator
1094 it = this->_internal_real_params().begin();
1095 it != this->_internal_real_params().end(); ++it) {
1096 target = GScipParameters_RealParamsEntry_DoNotUse::Funcs::InternalSerialize(8, it->first, it->second, target, stream);
1097 Utf8Check::Check(&(*it));
1103 if (!this->_internal_char_params().empty()) {
1104 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_pointer
1106 typedef ConstPtr SortItem;
1107 typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
1109 static void Check(ConstPtr p) {
1110 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1111 p->first.data(),
static_cast<int>(p->first.length()),
1112 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1113 "operations_research.GScipParameters.CharParamsEntry.key");
1114 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1115 p->second.data(),
static_cast<int>(p->second.length()),
1116 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1117 "operations_research.GScipParameters.CharParamsEntry.value");
1121 if (stream->IsSerializationDeterministic() &&
1122 this->_internal_char_params().size() > 1) {
1123 ::std::unique_ptr<SortItem[]> items(
1124 new SortItem[this->_internal_char_params().size()]);
1125 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::size_type size_type;
1127 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
1128 it = this->_internal_char_params().begin();
1129 it != this->_internal_char_params().end(); ++it, ++n) {
1130 items[
static_cast<ptrdiff_t
>(n)] = SortItem(&*it);
1132 ::std::sort(&items[0], &items[
static_cast<ptrdiff_t
>(n)], Less());
1133 for (size_type i = 0; i < n; i++) {
1134 target = GScipParameters_CharParamsEntry_DoNotUse::Funcs::InternalSerialize(9, items[
static_cast<ptrdiff_t
>(i)]->first, items[
static_cast<ptrdiff_t
>(i)]->second, target, stream);
1135 Utf8Check::Check(&(*items[
static_cast<ptrdiff_t
>(i)]));
1138 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
1139 it = this->_internal_char_params().begin();
1140 it != this->_internal_char_params().end(); ++it) {
1141 target = GScipParameters_CharParamsEntry_DoNotUse::Funcs::InternalSerialize(9, it->first, it->second, target, stream);
1142 Utf8Check::Check(&(*it));
1148 if (!this->_internal_string_params().empty()) {
1149 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_pointer
1151 typedef ConstPtr SortItem;
1152 typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
1154 static void Check(ConstPtr p) {
1155 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1156 p->first.data(),
static_cast<int>(p->first.length()),
1157 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1158 "operations_research.GScipParameters.StringParamsEntry.key");
1159 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1160 p->second.data(),
static_cast<int>(p->second.length()),
1161 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1162 "operations_research.GScipParameters.StringParamsEntry.value");
1166 if (stream->IsSerializationDeterministic() &&
1167 this->_internal_string_params().size() > 1) {
1168 ::std::unique_ptr<SortItem[]> items(
1169 new SortItem[this->_internal_string_params().size()]);
1170 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::size_type size_type;
1172 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
1173 it = this->_internal_string_params().begin();
1174 it != this->_internal_string_params().end(); ++it, ++n) {
1175 items[
static_cast<ptrdiff_t
>(n)] = SortItem(&*it);
1177 ::std::sort(&items[0], &items[
static_cast<ptrdiff_t
>(n)], Less());
1178 for (size_type i = 0; i < n; i++) {
1179 target = GScipParameters_StringParamsEntry_DoNotUse::Funcs::InternalSerialize(10, items[
static_cast<ptrdiff_t
>(i)]->first, items[
static_cast<ptrdiff_t
>(i)]->second, target, stream);
1180 Utf8Check::Check(&(*items[
static_cast<ptrdiff_t
>(i)]));
1183 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
1184 it = this->_internal_string_params().begin();
1185 it != this->_internal_string_params().end(); ++it) {
1186 target = GScipParameters_StringParamsEntry_DoNotUse::Funcs::InternalSerialize(10, it->first, it->second, target, stream);
1187 Utf8Check::Check(&(*it));
1193 if (this->silence_output() != 0) {
1194 target = stream->EnsureSpace(target);
1195 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(11, this->_internal_silence_output(), target);
1199 if (this->print_detailed_solving_stats() != 0) {
1200 target = stream->EnsureSpace(target);
1201 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(12, this->_internal_print_detailed_solving_stats(), target);
1205 if (this->print_scip_model() != 0) {
1206 target = stream->EnsureSpace(target);
1207 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(13, this->_internal_print_scip_model(), target);
1211 if (this->search_logs_filename().size() > 0) {
1212 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1213 this->_internal_search_logs_filename().data(),
static_cast<int>(this->_internal_search_logs_filename().length()),
1214 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1215 "operations_research.GScipParameters.search_logs_filename");
1216 target = stream->WriteStringMaybeAliased(
1217 14, this->_internal_search_logs_filename(), target);
1221 if (this->detailed_solving_stats_filename().size() > 0) {
1222 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1223 this->_internal_detailed_solving_stats_filename().data(),
static_cast<int>(this->_internal_detailed_solving_stats_filename().length()),
1224 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1225 "operations_research.GScipParameters.detailed_solving_stats_filename");
1226 target = stream->WriteStringMaybeAliased(
1227 15, this->_internal_detailed_solving_stats_filename(), target);
1231 if (this->scip_model_filename().size() > 0) {
1232 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1233 this->_internal_scip_model_filename().data(),
static_cast<int>(this->_internal_scip_model_filename().length()),
1234 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1235 "operations_research.GScipParameters.scip_model_filename");
1236 target = stream->WriteStringMaybeAliased(
1237 16, this->_internal_scip_model_filename(), target);
1241 if (this->num_solutions() != 0) {
1242 target = stream->EnsureSpace(target);
1243 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(17, this->_internal_num_solutions(), target);
1246 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1247 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
1248 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1254 size_t GScipParameters::ByteSizeLong()
const {
1256 size_t total_size = 0;
1260 (void) cached_has_bits;
1264 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_bool_params_size());
1265 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, bool >::const_iterator
1266 it = this->_internal_bool_params().begin();
1267 it != this->_internal_bool_params().end(); ++it) {
1268 total_size += GScipParameters_BoolParamsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
1273 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_int_params_size());
1274 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::int32 >::const_iterator
1275 it = this->_internal_int_params().begin();
1276 it != this->_internal_int_params().end(); ++it) {
1277 total_size += GScipParameters_IntParamsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
1282 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_long_params_size());
1283 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::int64 >::const_iterator
1284 it = this->_internal_long_params().begin();
1285 it != this->_internal_long_params().end(); ++it) {
1286 total_size += GScipParameters_LongParamsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
1291 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_real_params_size());
1292 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, double >::const_iterator
1293 it = this->_internal_real_params().begin();
1294 it != this->_internal_real_params().end(); ++it) {
1295 total_size += GScipParameters_RealParamsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
1300 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_char_params_size());
1301 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
1302 it = this->_internal_char_params().begin();
1303 it != this->_internal_char_params().end(); ++it) {
1304 total_size += GScipParameters_CharParamsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
1309 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_string_params_size());
1310 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
1311 it = this->_internal_string_params().begin();
1312 it != this->_internal_string_params().end(); ++it) {
1313 total_size += GScipParameters_StringParamsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
1317 if (this->search_logs_filename().size() > 0) {
1319 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1320 this->_internal_search_logs_filename());
1324 if (this->detailed_solving_stats_filename().size() > 0) {
1326 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1327 this->_internal_detailed_solving_stats_filename());
1331 if (this->scip_model_filename().size() > 0) {
1333 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1334 this->_internal_scip_model_filename());
1338 if (this->emphasis() != 0) {
1340 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_emphasis());
1344 if (this->heuristics() != 0) {
1346 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_heuristics());
1350 if (this->presolve() != 0) {
1352 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_presolve());
1356 if (this->separating() != 0) {
1358 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_separating());
1362 if (this->silence_output() != 0) {
1363 total_size += 1 + 1;
1367 if (this->print_detailed_solving_stats() != 0) {
1368 total_size += 1 + 1;
1372 if (this->print_scip_model() != 0) {
1373 total_size += 1 + 1;
1377 if (this->num_solutions() != 0) {
1379 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
1380 this->_internal_num_solutions());
1383 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1384 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
1385 _internal_metadata_, total_size, &_cached_size_);
1387 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1388 SetCachedSize(cached_size);
1392 void GScipParameters::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1394 GOOGLE_DCHECK_NE(&from,
this);
1395 const GScipParameters* source =
1396 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GScipParameters>(
1398 if (source ==
nullptr) {
1400 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from,
this);
1407 void GScipParameters::MergeFrom(
const GScipParameters& from) {
1409 GOOGLE_DCHECK_NE(&from,
this);
1410 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1412 (void) cached_has_bits;
1414 bool_params_.MergeFrom(from.bool_params_);
1415 int_params_.MergeFrom(from.int_params_);
1416 long_params_.MergeFrom(from.long_params_);
1417 real_params_.MergeFrom(from.real_params_);
1418 char_params_.MergeFrom(from.char_params_);
1419 string_params_.MergeFrom(from.string_params_);
1420 if (from.search_logs_filename().size() > 0) {
1421 _internal_set_search_logs_filename(from._internal_search_logs_filename());
1423 if (from.detailed_solving_stats_filename().size() > 0) {
1424 _internal_set_detailed_solving_stats_filename(from._internal_detailed_solving_stats_filename());
1426 if (from.scip_model_filename().size() > 0) {
1427 _internal_set_scip_model_filename(from._internal_scip_model_filename());
1429 if (from.emphasis() != 0) {
1430 _internal_set_emphasis(from._internal_emphasis());
1432 if (from.heuristics() != 0) {
1433 _internal_set_heuristics(from._internal_heuristics());
1435 if (from.presolve() != 0) {
1436 _internal_set_presolve(from._internal_presolve());
1438 if (from.separating() != 0) {
1439 _internal_set_separating(from._internal_separating());
1441 if (from.silence_output() != 0) {
1442 _internal_set_silence_output(from._internal_silence_output());
1444 if (from.print_detailed_solving_stats() != 0) {
1445 _internal_set_print_detailed_solving_stats(from._internal_print_detailed_solving_stats());
1447 if (from.print_scip_model() != 0) {
1448 _internal_set_print_scip_model(from._internal_print_scip_model());
1450 if (from.num_solutions() != 0) {
1451 _internal_set_num_solutions(from._internal_num_solutions());
1455 void GScipParameters::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1457 if (&from ==
this)
return;
1462 void GScipParameters::CopyFrom(
const GScipParameters& from) {
1464 if (&from ==
this)
return;
1469 bool GScipParameters::IsInitialized()
const {
1473 void GScipParameters::InternalSwap(GScipParameters* other) {
1475 _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
1476 bool_params_.Swap(&other->bool_params_);
1477 int_params_.Swap(&other->int_params_);
1478 long_params_.Swap(&other->long_params_);
1479 real_params_.Swap(&other->real_params_);
1480 char_params_.Swap(&other->char_params_);
1481 string_params_.Swap(&other->string_params_);
1482 search_logs_filename_.Swap(&other->search_logs_filename_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1483 detailed_solving_stats_filename_.Swap(&other->detailed_solving_stats_filename_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1484 scip_model_filename_.Swap(&other->scip_model_filename_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1485 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1486 PROTOBUF_FIELD_OFFSET(GScipParameters, num_solutions_)
1487 +
sizeof(GScipParameters::num_solutions_)
1488 - PROTOBUF_FIELD_OFFSET(GScipParameters, emphasis_)>(
1489 reinterpret_cast<char*
>(&emphasis_),
1490 reinterpret_cast<char*
>(&other->emphasis_));
1493 ::PROTOBUF_NAMESPACE_ID::Metadata GScipParameters::GetMetadata()
const {
1494 return GetMetadataStatic();
1504 GScipSolvingStats::GScipSolvingStats(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1505 : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
1507 RegisterArenaDtor(arena);
1510 GScipSolvingStats::GScipSolvingStats(
const GScipSolvingStats& from)
1511 : ::PROTOBUF_NAMESPACE_ID::Message() {
1512 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1513 ::memcpy(&best_objective_, &from.best_objective_,
1514 static_cast<size_t>(
reinterpret_cast<char*
>(&deterministic_time_) -
1515 reinterpret_cast<char*
>(&best_objective_)) +
sizeof(deterministic_time_));
1519 void GScipSolvingStats::SharedCtor() {
1520 ::memset(
reinterpret_cast<char*
>(
this) +
static_cast<size_t>(
1521 reinterpret_cast<char*
>(&best_objective_) -
reinterpret_cast<char*
>(
this)),
1522 0,
static_cast<size_t>(
reinterpret_cast<char*
>(&deterministic_time_) -
1523 reinterpret_cast<char*
>(&best_objective_)) +
sizeof(deterministic_time_));
1526 GScipSolvingStats::~GScipSolvingStats() {
1529 _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1532 void GScipSolvingStats::SharedDtor() {
1533 GOOGLE_DCHECK(GetArena() ==
nullptr);
1536 void GScipSolvingStats::ArenaDtor(
void*
object) {
1537 GScipSolvingStats* _this =
reinterpret_cast< GScipSolvingStats*
>(object);
1540 void GScipSolvingStats::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1542 void GScipSolvingStats::SetCachedSize(
int size)
const {
1543 _cached_size_.Set(size);
1545 const GScipSolvingStats& GScipSolvingStats::default_instance() {
1547 return *internal_default_instance();
1551 void GScipSolvingStats::Clear() {
1555 (void) cached_has_bits;
1557 ::memset(&best_objective_, 0,
static_cast<size_t>(
1558 reinterpret_cast<char*
>(&deterministic_time_) -
1559 reinterpret_cast<char*
>(&best_objective_)) +
sizeof(deterministic_time_));
1560 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1563 const char* GScipSolvingStats::_InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1564 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1565 while (!ctx->Done(&ptr)) {
1567 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1573 best_objective_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
1574 ptr +=
sizeof(double);
1575 }
else goto handle_unusual;
1580 best_bound_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
1581 ptr +=
sizeof(double);
1582 }
else goto handle_unusual;
1587 primal_simplex_iterations_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1589 }
else goto handle_unusual;
1594 dual_simplex_iterations_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1596 }
else goto handle_unusual;
1601 total_lp_iterations_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1603 }
else goto handle_unusual;
1608 node_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1610 }
else goto handle_unusual;
1615 first_lp_relaxation_bound_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
1616 ptr +=
sizeof(double);
1617 }
else goto handle_unusual;
1622 root_node_bound_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
1623 ptr +=
sizeof(double);
1624 }
else goto handle_unusual;
1629 deterministic_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
1630 ptr +=
sizeof(double);
1631 }
else goto handle_unusual;
1635 if ((tag & 7) == 4 || tag == 0) {
1636 ctx->SetLastTag(tag);
1639 ptr = UnknownFieldParse(tag,
1640 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1642 CHK_(ptr !=
nullptr);
1659 (void) cached_has_bits;
1662 if (!(this->best_objective() <= 0 && this->best_objective() >= 0)) {
1663 target = stream->EnsureSpace(target);
1664 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->_internal_best_objective(), target);
1668 if (!(this->best_bound() <= 0 && this->best_bound() >= 0)) {
1669 target = stream->EnsureSpace(target);
1670 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_best_bound(), target);
1674 if (this->primal_simplex_iterations() != 0) {
1675 target = stream->EnsureSpace(target);
1676 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_primal_simplex_iterations(), target);
1680 if (this->dual_simplex_iterations() != 0) {
1681 target = stream->EnsureSpace(target);
1682 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_dual_simplex_iterations(), target);
1686 if (this->total_lp_iterations() != 0) {
1687 target = stream->EnsureSpace(target);
1688 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_total_lp_iterations(), target);
1692 if (this->node_count() != 0) {
1693 target = stream->EnsureSpace(target);
1694 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->_internal_node_count(), target);
1698 if (!(this->first_lp_relaxation_bound() <= 0 && this->first_lp_relaxation_bound() >= 0)) {
1699 target = stream->EnsureSpace(target);
1700 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(7, this->_internal_first_lp_relaxation_bound(), target);
1704 if (!(this->root_node_bound() <= 0 && this->root_node_bound() >= 0)) {
1705 target = stream->EnsureSpace(target);
1706 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(8, this->_internal_root_node_bound(), target);
1710 if (!(this->deterministic_time() <= 0 && this->deterministic_time() >= 0)) {
1711 target = stream->EnsureSpace(target);
1712 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(9, this->_internal_deterministic_time(), target);
1715 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1716 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
1717 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1723 size_t GScipSolvingStats::ByteSizeLong()
const {
1725 size_t total_size = 0;
1729 (void) cached_has_bits;
1732 if (!(this->best_objective() <= 0 && this->best_objective() >= 0)) {
1733 total_size += 1 + 8;
1737 if (!(this->best_bound() <= 0 && this->best_bound() >= 0)) {
1738 total_size += 1 + 8;
1742 if (this->primal_simplex_iterations() != 0) {
1744 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1745 this->_internal_primal_simplex_iterations());
1749 if (this->dual_simplex_iterations() != 0) {
1751 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1752 this->_internal_dual_simplex_iterations());
1756 if (this->total_lp_iterations() != 0) {
1758 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1759 this->_internal_total_lp_iterations());
1763 if (this->node_count() != 0) {
1765 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1766 this->_internal_node_count());
1770 if (!(this->first_lp_relaxation_bound() <= 0 && this->first_lp_relaxation_bound() >= 0)) {
1771 total_size += 1 + 8;
1775 if (!(this->root_node_bound() <= 0 && this->root_node_bound() >= 0)) {
1776 total_size += 1 + 8;
1780 if (!(this->deterministic_time() <= 0 && this->deterministic_time() >= 0)) {
1781 total_size += 1 + 8;
1784 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1785 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
1786 _internal_metadata_, total_size, &_cached_size_);
1788 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1789 SetCachedSize(cached_size);
1793 void GScipSolvingStats::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1795 GOOGLE_DCHECK_NE(&from,
this);
1796 const GScipSolvingStats* source =
1797 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GScipSolvingStats>(
1799 if (source ==
nullptr) {
1801 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from,
this);
1808 void GScipSolvingStats::MergeFrom(
const GScipSolvingStats& from) {
1810 GOOGLE_DCHECK_NE(&from,
this);
1811 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1813 (void) cached_has_bits;
1815 if (!(from.best_objective() <= 0 && from.best_objective() >= 0)) {
1816 _internal_set_best_objective(from._internal_best_objective());
1818 if (!(from.best_bound() <= 0 && from.best_bound() >= 0)) {
1819 _internal_set_best_bound(from._internal_best_bound());
1821 if (from.primal_simplex_iterations() != 0) {
1822 _internal_set_primal_simplex_iterations(from._internal_primal_simplex_iterations());
1824 if (from.dual_simplex_iterations() != 0) {
1825 _internal_set_dual_simplex_iterations(from._internal_dual_simplex_iterations());
1827 if (from.total_lp_iterations() != 0) {
1828 _internal_set_total_lp_iterations(from._internal_total_lp_iterations());
1830 if (from.node_count() != 0) {
1831 _internal_set_node_count(from._internal_node_count());
1833 if (!(from.first_lp_relaxation_bound() <= 0 && from.first_lp_relaxation_bound() >= 0)) {
1834 _internal_set_first_lp_relaxation_bound(from._internal_first_lp_relaxation_bound());
1836 if (!(from.root_node_bound() <= 0 && from.root_node_bound() >= 0)) {
1837 _internal_set_root_node_bound(from._internal_root_node_bound());
1839 if (!(from.deterministic_time() <= 0 && from.deterministic_time() >= 0)) {
1840 _internal_set_deterministic_time(from._internal_deterministic_time());
1844 void GScipSolvingStats::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1846 if (&from ==
this)
return;
1851 void GScipSolvingStats::CopyFrom(
const GScipSolvingStats& from) {
1853 if (&from ==
this)
return;
1858 bool GScipSolvingStats::IsInitialized()
const {
1862 void GScipSolvingStats::InternalSwap(GScipSolvingStats* other) {
1864 _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
1865 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1866 PROTOBUF_FIELD_OFFSET(GScipSolvingStats, deterministic_time_)
1867 +
sizeof(GScipSolvingStats::deterministic_time_)
1868 - PROTOBUF_FIELD_OFFSET(GScipSolvingStats, best_objective_)>(
1869 reinterpret_cast<char*
>(&best_objective_),
1870 reinterpret_cast<char*
>(&other->best_objective_));
1873 ::PROTOBUF_NAMESPACE_ID::Metadata GScipSolvingStats::GetMetadata()
const {
1874 return GetMetadataStatic();
1882 static const ::operations_research::GScipSolvingStats& stats(
const GScipOutput* msg);
1885 const ::operations_research::GScipSolvingStats&
1887 return *msg->stats_;
1889 GScipOutput::GScipOutput(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1890 : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
1892 RegisterArenaDtor(arena);
1895 GScipOutput::GScipOutput(
const GScipOutput& from)
1896 : ::PROTOBUF_NAMESPACE_ID::Message() {
1897 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1898 status_detail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1899 if (!from._internal_status_detail().empty()) {
1900 status_detail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_status_detail(),
1903 if (from._internal_has_stats()) {
1904 stats_ = new ::operations_research::GScipSolvingStats(*from.stats_);
1908 status_ = from.status_;
1912 void GScipOutput::SharedCtor() {
1914 status_detail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1915 ::memset(
reinterpret_cast<char*
>(
this) +
static_cast<size_t>(
1916 reinterpret_cast<char*
>(&stats_) -
reinterpret_cast<char*
>(
this)),
1917 0,
static_cast<size_t>(
reinterpret_cast<char*
>(&status_) -
1918 reinterpret_cast<char*
>(&stats_)) +
sizeof(status_));
1921 GScipOutput::~GScipOutput() {
1924 _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1927 void GScipOutput::SharedDtor() {
1928 GOOGLE_DCHECK(GetArena() ==
nullptr);
1929 status_detail_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1930 if (
this != internal_default_instance())
delete stats_;
1933 void GScipOutput::ArenaDtor(
void*
object) {
1934 GScipOutput* _this =
reinterpret_cast< GScipOutput*
>(object);
1937 void GScipOutput::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1939 void GScipOutput::SetCachedSize(
int size)
const {
1940 _cached_size_.Set(size);
1942 const GScipOutput& GScipOutput::default_instance() {
1944 return *internal_default_instance();
1948 void GScipOutput::Clear() {
1952 (void) cached_has_bits;
1954 status_detail_.ClearToEmpty();
1955 if (GetArena() ==
nullptr && stats_ !=
nullptr) {
1960 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1963 const char* GScipOutput::_InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1964 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1965 while (!ctx->Done(&ptr)) {
1967 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1976 }
else goto handle_unusual;
1981 auto str = _internal_mutable_status_detail();
1982 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
1983 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str,
"operations_research.GScipOutput.status_detail"));
1985 }
else goto handle_unusual;
1990 ptr = ctx->ParseMessage(_internal_mutable_stats(), ptr);
1992 }
else goto handle_unusual;
1996 if ((tag & 7) == 4 || tag == 0) {
1997 ctx->SetLastTag(tag);
2000 ptr = UnknownFieldParse(tag,
2001 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2003 CHK_(ptr !=
nullptr);
2020 (void) cached_has_bits;
2023 if (this->status() != 0) {
2024 target = stream->EnsureSpace(target);
2025 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
2026 1, this->_internal_status(), target);
2030 if (this->status_detail().size() > 0) {
2031 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2032 this->_internal_status_detail().data(),
static_cast<int>(this->_internal_status_detail().length()),
2033 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2034 "operations_research.GScipOutput.status_detail");
2035 target = stream->WriteStringMaybeAliased(
2036 2, this->_internal_status_detail(), target);
2040 if (this->has_stats()) {
2041 target = stream->EnsureSpace(target);
2042 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2043 InternalWriteMessage(
2047 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2048 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
2049 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
2055 size_t GScipOutput::ByteSizeLong()
const {
2057 size_t total_size = 0;
2061 (void) cached_has_bits;
2064 if (this->status_detail().size() > 0) {
2066 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2067 this->_internal_status_detail());
2071 if (this->has_stats()) {
2073 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2078 if (this->status() != 0) {
2080 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status());
2083 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2084 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
2085 _internal_metadata_, total_size, &_cached_size_);
2087 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2088 SetCachedSize(cached_size);
2092 void GScipOutput::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2094 GOOGLE_DCHECK_NE(&from,
this);
2095 const GScipOutput* source =
2096 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GScipOutput>(
2098 if (source ==
nullptr) {
2100 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from,
this);
2107 void GScipOutput::MergeFrom(
const GScipOutput& from) {
2109 GOOGLE_DCHECK_NE(&from,
this);
2110 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2112 (void) cached_has_bits;
2114 if (from.status_detail().size() > 0) {
2115 _internal_set_status_detail(from._internal_status_detail());
2117 if (from.has_stats()) {
2118 _internal_mutable_stats()->::operations_research::GScipSolvingStats::MergeFrom(from._internal_stats());
2120 if (from.status() != 0) {
2121 _internal_set_status(from._internal_status());
2125 void GScipOutput::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2127 if (&from ==
this)
return;
2132 void GScipOutput::CopyFrom(
const GScipOutput& from) {
2134 if (&from ==
this)
return;
2139 bool GScipOutput::IsInitialized()
const {
2143 void GScipOutput::InternalSwap(GScipOutput* other) {
2145 _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
2146 status_detail_.Swap(&other->status_detail_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
2147 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2148 PROTOBUF_FIELD_OFFSET(GScipOutput, status_)
2149 +
sizeof(GScipOutput::status_)
2150 - PROTOBUF_FIELD_OFFSET(GScipOutput, stats_)>(
2151 reinterpret_cast<char*
>(&stats_),
2152 reinterpret_cast<char*
>(&other->stats_));
2155 ::PROTOBUF_NAMESPACE_ID::Metadata GScipOutput::GetMetadata()
const {
2156 return GetMetadataStatic();
2162 PROTOBUF_NAMESPACE_OPEN
2164 return Arena::CreateMessageInternal< ::operations_research::GScipParameters_BoolParamsEntry_DoNotUse >(arena);
2167 return Arena::CreateMessageInternal< ::operations_research::GScipParameters_IntParamsEntry_DoNotUse >(arena);
2170 return Arena::CreateMessageInternal< ::operations_research::GScipParameters_LongParamsEntry_DoNotUse >(arena);
2173 return Arena::CreateMessageInternal< ::operations_research::GScipParameters_RealParamsEntry_DoNotUse >(arena);
2176 return Arena::CreateMessageInternal< ::operations_research::GScipParameters_CharParamsEntry_DoNotUse >(arena);
2179 return Arena::CreateMessageInternal< ::operations_research::GScipParameters_StringParamsEntry_DoNotUse >(arena);
2182 return Arena::CreateMessageInternal< ::operations_research::GScipParameters >(arena);
2185 return Arena::CreateMessageInternal< ::operations_research::GScipSolvingStats >(arena);
2188 return Arena::CreateMessageInternal< ::operations_research::GScipOutput >(arena);
2190 PROTOBUF_NAMESPACE_CLOSE
2193 #include <google/protobuf/port_undef.inc>