4 #ifndef PROTOBUF_INCLUDED_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto 5 #define PROTOBUF_INCLUDED_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto 10 #include <google/protobuf/port_def.inc> 11 #if PROTOBUF_VERSION < 3007000 12 #error This file was generated by a newer version of protoc which is 13 #error incompatible with your Protocol Buffer headers. Please update 16 #if 3007001 < PROTOBUF_MIN_PROTOC_VERSION 17 #error This file was generated by an older version of protoc which is 18 #error incompatible with your Protocol Buffer headers. Please 19 #error regenerate this file with a newer version of protoc. 22 #include <google/protobuf/port_undef.inc> 23 #include <google/protobuf/io/coded_stream.h> 24 #include <google/protobuf/arena.h> 25 #include <google/protobuf/arenastring.h> 26 #include <google/protobuf/generated_message_table_driven.h> 27 #include <google/protobuf/generated_message_util.h> 28 #include <google/protobuf/inlined_string_field.h> 29 #include <google/protobuf/metadata.h> 30 #include <google/protobuf/message.h> 31 #include <google/protobuf/repeated_field.h> 32 #include <google/protobuf/extension_set.h> 33 #include <google/protobuf/generated_enum_reflection.h> 34 #include <google/protobuf/unknown_field_set.h> 35 #include "ortools/util/optional_boolean.pb.h" 37 #include <google/protobuf/port_def.inc> 38 #define PROTOBUF_INTERNAL_EXPORT_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto 42 static const ::google::protobuf::internal::ParseTableField entries[]
44 static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
46 static const ::google::protobuf::internal::ParseTable schema[10]
50 static const ::google::protobuf::uint32
offsets[];
54 class MPConstraintProto;
55 class MPConstraintProtoDefaultTypeInternal;
57 class MPGeneralConstraintProto;
58 class MPGeneralConstraintProtoDefaultTypeInternal;
60 class MPIndicatorConstraint;
61 class MPIndicatorConstraintDefaultTypeInternal;
64 class MPModelProtoDefaultTypeInternal;
67 class MPModelRequestDefaultTypeInternal;
69 class MPSolutionResponse;
70 class MPSolutionResponseDefaultTypeInternal;
72 class MPSolverCommonParameters;
73 class MPSolverCommonParametersDefaultTypeInternal;
75 class MPVariableProto;
76 class MPVariableProtoDefaultTypeInternal;
79 class OptionalDoubleDefaultTypeInternal;
81 class PartialVariableAssignment;
82 class PartialVariableAssignmentDefaultTypeInternal;
114 return ::google::protobuf::internal::NameOfEnum(
119 return ::google::protobuf::internal::ParseNamedEnum<MPSolverCommonParameters_LPAlgorithmValues>(
144 return ::google::protobuf::internal::NameOfEnum(
149 return ::google::protobuf::internal::ParseNamedEnum<MPModelRequest_SolverType>(
173 return ::google::protobuf::internal::NameOfEnum(
178 return ::google::protobuf::internal::ParseNamedEnum<MPSolverResponseStatus>(
183 class MPVariableProto :
184 public ::google::protobuf::Message {
198 *
this = ::std::move(from);
202 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
203 if (
this != &from) InternalSwap(&from);
210 inline const ::google::protobuf::UnknownFieldSet&
unknown_fields()
const {
211 return _internal_metadata_.unknown_fields();
214 return _internal_metadata_.mutable_unknown_fields();
217 static const ::google::protobuf::Descriptor*
descriptor() {
224 return reinterpret_cast<const MPVariableProto*>(
238 return CreateMaybeMessage<MPVariableProto>(
nullptr);
242 return CreateMaybeMessage<MPVariableProto>(arena);
244 void CopyFrom(const ::google::protobuf::Message& from)
final;
245 void MergeFrom(const ::google::protobuf::Message& from)
final;
248 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
252 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 253 static const char* _InternalParse(
const char* begin,
const char* end,
void*
object, ::google::protobuf::internal::ParseContext* ctx);
254 ::google::protobuf::internal::ParseFunc _ParseFunc() const final {
return _InternalParse; }
257 ::google::protobuf::io::CodedInputStream* input)
final;
258 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 260 ::google::protobuf::io::CodedOutputStream* output)
const final;
262 ::google::protobuf::uint8* target)
const final;
263 int GetCachedSize() const final {
return _cached_size_.Get(); }
268 void SetCachedSize(
int size)
const final;
271 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
274 inline void* MaybeArenaPtr()
const {
279 ::google::protobuf::Metadata
GetMetadata() const final;
289 const ::std::
string&
name() const;
290 void set_name(const ::std::
string& value);
292 void set_name(::std::string&& value);
295 void set_name(
const char* value,
size_t size);
332 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
333 ::google::protobuf::internal::HasBits<1> _has_bits_;
334 mutable ::google::protobuf::internal::CachedSize _cached_size_;
335 ::google::protobuf::internal::ArenaStringPtr name_;
336 double objective_coefficient_;
340 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
345 public ::google::protobuf::Message {
359 *
this = ::std::move(from);
363 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
364 if (
this != &from) InternalSwap(&from);
371 inline const ::google::protobuf::UnknownFieldSet&
unknown_fields()
const {
372 return _internal_metadata_.unknown_fields();
375 return _internal_metadata_.mutable_unknown_fields();
378 static const ::google::protobuf::Descriptor*
descriptor() {
385 return reinterpret_cast<const MPConstraintProto*>(
399 return CreateMaybeMessage<MPConstraintProto>(
nullptr);
403 return CreateMaybeMessage<MPConstraintProto>(arena);
405 void CopyFrom(const ::google::protobuf::Message& from)
final;
406 void MergeFrom(const ::google::protobuf::Message& from)
final;
409 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
413 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 414 static const char* _InternalParse(
const char* begin,
const char* end,
void*
object, ::google::protobuf::internal::ParseContext* ctx);
415 ::google::protobuf::internal::ParseFunc _ParseFunc() const final {
return _InternalParse; }
418 ::google::protobuf::io::CodedInputStream* input)
final;
419 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 421 ::google::protobuf::io::CodedOutputStream* output)
const final;
423 ::google::protobuf::uint8* target)
const final;
424 int GetCachedSize() const final {
return _cached_size_.Get(); }
429 void SetCachedSize(
int size)
const final;
432 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
435 inline void* MaybeArenaPtr()
const {
440 ::google::protobuf::Metadata
GetMetadata() const final;
453 const ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 >&
455 ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 >*
465 const ::
google::protobuf::RepeatedField<
double >&
467 ::
google::protobuf::RepeatedField<
double >*
474 const ::std::
string&
name() const;
477 void set_name(::std::string&& value);
480 void set_name(
const char* value,
size_t size);
510 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
511 ::google::protobuf::internal::HasBits<1> _has_bits_;
512 mutable ::google::protobuf::internal::CachedSize _cached_size_;
513 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > var_index_;
514 mutable std::atomic<int> _var_index_cached_byte_size_;
515 ::google::protobuf::RepeatedField< double > coefficient_;
516 mutable std::atomic<int> _coefficient_cached_byte_size_;
517 ::google::protobuf::internal::ArenaStringPtr name_;
521 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
526 public ::google::protobuf::Message {
540 *
this = ::std::move(from);
544 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
545 if (
this != &from) InternalSwap(&from);
552 inline const ::google::protobuf::UnknownFieldSet&
unknown_fields()
const {
553 return _internal_metadata_.unknown_fields();
556 return _internal_metadata_.mutable_unknown_fields();
559 static const ::google::protobuf::Descriptor*
descriptor() {
571 return reinterpret_cast<const MPGeneralConstraintProto*>(
585 return CreateMaybeMessage<MPGeneralConstraintProto>(
nullptr);
589 return CreateMaybeMessage<MPGeneralConstraintProto>(arena);
591 void CopyFrom(const ::google::protobuf::Message& from)
final;
592 void MergeFrom(const ::google::protobuf::Message& from)
final;
595 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
599 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 600 static const char* _InternalParse(
const char* begin,
const char* end,
void*
object, ::google::protobuf::internal::ParseContext* ctx);
601 ::google::protobuf::internal::ParseFunc _ParseFunc() const final {
return _InternalParse; }
604 ::google::protobuf::io::CodedInputStream* input)
final;
605 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 607 ::google::protobuf::io::CodedOutputStream* output)
const final;
609 ::google::protobuf::uint8* target)
const final;
610 int GetCachedSize() const final {
return _cached_size_.Get(); }
615 void SetCachedSize(
int size)
const final;
618 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
621 inline void* MaybeArenaPtr()
const {
626 ::google::protobuf::Metadata
GetMetadata() const final;
636 const ::std::
string&
name() const;
637 void set_name(const ::std::
string& value);
639 void set_name(::std::string&& value);
642 void set_name(
const char* value,
size_t size);
661 void set_has_indicator_constraint();
663 inline bool has_general_constraint()
const;
664 inline void clear_has_general_constraint();
666 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
667 ::google::protobuf::internal::HasBits<1> _has_bits_;
668 mutable ::google::protobuf::internal::CachedSize _cached_size_;
669 ::google::protobuf::internal::ArenaStringPtr name_;
670 union GeneralConstraintUnion {
671 GeneralConstraintUnion() {}
673 } general_constraint_;
674 ::google::protobuf::uint32 _oneof_case_[1];
676 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
681 public ::google::protobuf::Message {
695 *
this = ::std::move(from);
699 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
700 if (
this != &from) InternalSwap(&from);
707 inline const ::google::protobuf::UnknownFieldSet&
unknown_fields()
const {
708 return _internal_metadata_.unknown_fields();
711 return _internal_metadata_.mutable_unknown_fields();
721 return reinterpret_cast<const MPIndicatorConstraint*>(
735 return CreateMaybeMessage<MPIndicatorConstraint>(
nullptr);
739 return CreateMaybeMessage<MPIndicatorConstraint>(arena);
741 void CopyFrom(const ::google::protobuf::Message& from)
final;
742 void MergeFrom(const ::google::protobuf::Message& from)
final;
745 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
749 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 750 static const char* _InternalParse(
const char* begin,
const char* end,
void*
object, ::google::protobuf::internal::ParseContext* ctx);
751 ::google::protobuf::internal::ParseFunc _ParseFunc() const final {
return _InternalParse; }
754 ::google::protobuf::io::CodedInputStream* input)
final;
755 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 757 ::google::protobuf::io::CodedOutputStream* output)
const final;
759 ::google::protobuf::uint8* target)
const final;
760 int GetCachedSize() const final {
return _cached_size_.Get(); }
765 void SetCachedSize(
int size)
const final;
768 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
771 inline void* MaybeArenaPtr()
const {
776 ::google::protobuf::Metadata
GetMetadata() const final;
809 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
810 ::
google::protobuf::internal::HasBits<1> _has_bits_;
811 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
813 ::
google::protobuf::int32 var_index_;
814 ::
google::protobuf::int32 var_value_;
820 public ::
google::protobuf::Message {
834 *
this = ::std::move(from);
838 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
839 if (
this != &from) InternalSwap(&from);
846 inline const ::google::protobuf::UnknownFieldSet&
unknown_fields()
const {
847 return _internal_metadata_.unknown_fields();
850 return _internal_metadata_.mutable_unknown_fields();
853 static const ::google::protobuf::Descriptor*
descriptor() {
860 return reinterpret_cast<const PartialVariableAssignment*>(
874 return CreateMaybeMessage<PartialVariableAssignment>(
nullptr);
878 return CreateMaybeMessage<PartialVariableAssignment>(arena);
880 void CopyFrom(const ::google::protobuf::Message& from)
final;
881 void MergeFrom(const ::google::protobuf::Message& from)
final;
884 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
888 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 889 static const char* _InternalParse(
const char* begin,
const char* end,
void*
object, ::google::protobuf::internal::ParseContext* ctx);
890 ::google::protobuf::internal::ParseFunc _ParseFunc() const final {
return _InternalParse; }
893 ::google::protobuf::io::CodedInputStream* input)
final;
894 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 896 ::google::protobuf::io::CodedOutputStream* output)
const final;
898 ::google::protobuf::uint8* target)
const final;
899 int GetCachedSize() const final {
return _cached_size_.Get(); }
904 void SetCachedSize(
int size)
const final;
907 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
910 inline void* MaybeArenaPtr()
const {
915 ::google::protobuf::Metadata
GetMetadata() const final;
922 int var_index_size() const;
927 void add_var_index(::
google::protobuf::int32 value);
928 const ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 >&
930 ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 >*
934 int var_value_size() const;
939 void add_var_value(
double value);
940 const ::
google::protobuf::RepeatedField<
double >&
942 ::
google::protobuf::RepeatedField<
double >*
949 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
950 ::
google::protobuf::internal::HasBits<1> _has_bits_;
951 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
952 ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 > var_index_;
953 mutable std::atomic<
int> _var_index_cached_byte_size_;
954 ::
google::protobuf::RepeatedField<
double > var_value_;
955 mutable std::atomic<
int> _var_value_cached_byte_size_;
975 *
this = ::std::move(from);
979 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
980 if (
this != &from) InternalSwap(&from);
987 inline const ::google::protobuf::UnknownFieldSet&
unknown_fields()
const {
988 return _internal_metadata_.unknown_fields();
991 return _internal_metadata_.mutable_unknown_fields();
994 static const ::google::protobuf::Descriptor*
descriptor() {
1001 return reinterpret_cast<const MPModelProto*>(
1015 return CreateMaybeMessage<MPModelProto>(
nullptr);
1019 return CreateMaybeMessage<MPModelProto>(arena);
1021 void CopyFrom(const ::google::protobuf::Message& from)
final;
1022 void MergeFrom(const ::google::protobuf::Message& from)
final;
1025 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
1029 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 1030 static const char* _InternalParse(
const char* begin,
const char* end,
void*
object, ::google::protobuf::internal::ParseContext* ctx);
1031 ::google::protobuf::internal::ParseFunc _ParseFunc() const final {
return _InternalParse; }
1034 ::google::protobuf::io::CodedInputStream* input)
final;
1035 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 1037 ::google::protobuf::io::CodedOutputStream* output)
const final;
1039 ::google::protobuf::uint8* target)
const final;
1040 int GetCachedSize() const final {
return _cached_size_.Get(); }
1045 void SetCachedSize(
int size)
const final;
1048 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1051 inline void* MaybeArenaPtr()
const {
1056 ::google::protobuf::Metadata
GetMetadata() const final;
1063 int variable_size() const;
1064 void clear_variable();
1065 static const
int kVariableFieldNumber = 3;
1075 int constraint_size() const;
1087 int general_constraint_size() const;
1088 void clear_general_constraint();
1089 static const
int kGeneralConstraintFieldNumber = 7;
1092 mutable_general_constraint();
1096 general_constraint() const;
1099 bool has_name() const;
1101 static const
int kNameFieldNumber = 5;
1102 const ::std::
string& name() const;
1103 void set_name(const ::std::
string& value);
1105 void set_name(::std::string&& value);
1107 void set_name(
const char* value);
1108 void set_name(
const char* value,
size_t size);
1109 ::std::string* mutable_name();
1110 ::std::string* release_name();
1111 void set_allocated_name(::std::string* name);
1114 bool has_solution_hint()
const;
1115 void clear_solution_hint();
1116 static const int kSolutionHintFieldNumber = 6;
1117 const ::operations_research::PartialVariableAssignment& solution_hint()
const;
1123 bool has_objective_offset()
const;
1124 void clear_objective_offset();
1125 static const int kObjectiveOffsetFieldNumber = 2;
1126 double objective_offset()
const;
1127 void set_objective_offset(
double value);
1130 bool has_maximize()
const;
1131 void clear_maximize();
1132 static const int kMaximizeFieldNumber = 1;
1133 bool maximize()
const;
1134 void set_maximize(
bool value);
1138 class HasBitSetters;
1140 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1141 ::google::protobuf::internal::HasBits<1> _has_bits_;
1142 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1143 ::google::protobuf::RepeatedPtrField< ::operations_research::MPVariableProto > variable_;
1144 ::google::protobuf::RepeatedPtrField< ::operations_research::MPConstraintProto > constraint_;
1145 ::google::protobuf::RepeatedPtrField< ::operations_research::MPGeneralConstraintProto > general_constraint_;
1146 ::google::protobuf::internal::ArenaStringPtr name_;
1148 double objective_offset_;
1150 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
1155 public ::google::protobuf::Message {
1169 *
this = ::std::move(from);
1173 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1174 if (
this != &from) InternalSwap(&from);
1181 inline const ::google::protobuf::UnknownFieldSet&
unknown_fields()
const {
1182 return _internal_metadata_.unknown_fields();
1185 return _internal_metadata_.mutable_unknown_fields();
1195 return reinterpret_cast<const OptionalDouble*>(
1209 return CreateMaybeMessage<OptionalDouble>(
nullptr);
1213 return CreateMaybeMessage<OptionalDouble>(arena);
1215 void CopyFrom(const ::google::protobuf::Message& from)
final;
1216 void MergeFrom(const ::google::protobuf::Message& from)
final;
1219 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
1223 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 1224 static const char* _InternalParse(
const char* begin,
const char* end,
void*
object, ::google::protobuf::internal::ParseContext* ctx);
1225 ::google::protobuf::internal::ParseFunc _ParseFunc() const final {
return _InternalParse; }
1228 ::google::protobuf::io::CodedInputStream* input)
final;
1229 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 1231 ::google::protobuf::io::CodedOutputStream* output)
const final;
1233 ::google::protobuf::uint8* target)
const final;
1234 int GetCachedSize() const final {
return _cached_size_.Get(); }
1239 void SetCachedSize(
int size)
const final;
1240 void InternalSwap(OptionalDouble* other);
1242 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1245 inline void* MaybeArenaPtr()
const {
1250 ::google::protobuf::Metadata
GetMetadata() const final;
1257 bool has_value() const;
1259 static const
int kValueFieldNumber = 1;
1260 double value() const;
1261 void set_value(
double value);
1265 class HasBitSetters;
1267 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1268 ::
google::protobuf::internal::HasBits<1> _has_bits_;
1269 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
1276 public ::
google::protobuf::Message {
1290 *
this = ::std::move(from);
1294 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1295 if (
this != &from) InternalSwap(&from);
1302 inline const ::google::protobuf::UnknownFieldSet&
unknown_fields()
const {
1303 return _internal_metadata_.unknown_fields();
1306 return _internal_metadata_.mutable_unknown_fields();
1309 static const ::google::protobuf::Descriptor*
descriptor() {
1316 return reinterpret_cast<const MPSolverCommonParameters*>(
1330 return CreateMaybeMessage<MPSolverCommonParameters>(
nullptr);
1334 return CreateMaybeMessage<MPSolverCommonParameters>(arena);
1336 void CopyFrom(const ::google::protobuf::Message& from)
final;
1337 void MergeFrom(const ::google::protobuf::Message& from)
final;
1340 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
1344 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 1345 static const char* _InternalParse(
const char* begin,
const char* end,
void*
object, ::google::protobuf::internal::ParseContext* ctx);
1346 ::google::protobuf::internal::ParseFunc _ParseFunc() const final {
return _InternalParse; }
1349 ::google::protobuf::io::CodedInputStream* input)
final;
1350 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 1352 ::google::protobuf::io::CodedOutputStream* output)
const final;
1354 ::google::protobuf::uint8* target)
const final;
1355 int GetCachedSize() const final {
return _cached_size_.Get(); }
1360 void SetCachedSize(
int size)
const final;
1361 void InternalSwap(MPSolverCommonParameters* other);
1363 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1366 inline void* MaybeArenaPtr()
const {
1371 ::google::protobuf::Metadata
GetMetadata() const final;
1376 static const LPAlgorithmValues LP_ALGO_UNSPECIFIED =
1378 static const LPAlgorithmValues LP_ALGO_DUAL =
1380 static const LPAlgorithmValues LP_ALGO_PRIMAL =
1382 static const LPAlgorithmValues LP_ALGO_BARRIER =
1384 static inline
bool LPAlgorithmValues_IsValid(
int value) {
1387 static const LPAlgorithmValues LPAlgorithmValues_MIN =
1391 static const int LPAlgorithmValues_ARRAYSIZE =
1393 static inline const ::google::protobuf::EnumDescriptor*
1394 LPAlgorithmValues_descriptor() {
1400 static inline bool LPAlgorithmValues_Parse(const ::std::string& name,
1401 LPAlgorithmValues* value) {
1408 bool has_relative_mip_gap()
const;
1409 void clear_relative_mip_gap();
1410 static const int kRelativeMipGapFieldNumber = 1;
1411 const ::operations_research::OptionalDouble& relative_mip_gap()
const;
1417 bool has_primal_tolerance()
const;
1418 void clear_primal_tolerance();
1419 static const int kPrimalToleranceFieldNumber = 2;
1420 const ::operations_research::OptionalDouble& primal_tolerance()
const;
1426 bool has_dual_tolerance()
const;
1427 void clear_dual_tolerance();
1428 static const int kDualToleranceFieldNumber = 3;
1429 const ::operations_research::OptionalDouble& dual_tolerance()
const;
1435 bool has_lp_algorithm()
const;
1436 void clear_lp_algorithm();
1437 static const int kLpAlgorithmFieldNumber = 4;
1442 bool has_presolve()
const;
1443 void clear_presolve();
1444 static const int kPresolveFieldNumber = 5;
1445 ::operations_research::OptionalBoolean presolve()
const;
1446 void set_presolve(::operations_research::OptionalBoolean value);
1449 bool has_scaling()
const;
1450 void clear_scaling();
1451 static const int kScalingFieldNumber = 7;
1452 ::operations_research::OptionalBoolean scaling()
const;
1453 void set_scaling(::operations_research::OptionalBoolean value);
1457 class HasBitSetters;
1459 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1460 ::google::protobuf::internal::HasBits<1> _has_bits_;
1461 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1468 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
1473 public ::google::protobuf::Message {
1487 *
this = ::std::move(from);
1491 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1492 if (
this != &from) InternalSwap(&from);
1499 inline const ::google::protobuf::UnknownFieldSet&
unknown_fields()
const {
1500 return _internal_metadata_.unknown_fields();
1503 return _internal_metadata_.mutable_unknown_fields();
1506 static const ::google::protobuf::Descriptor*
descriptor() {
1513 return reinterpret_cast<const MPModelRequest*>(
1527 return CreateMaybeMessage<MPModelRequest>(
nullptr);
1531 return CreateMaybeMessage<MPModelRequest>(arena);
1533 void CopyFrom(const ::google::protobuf::Message& from)
final;
1534 void MergeFrom(const ::google::protobuf::Message& from)
final;
1537 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
1541 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 1542 static const char* _InternalParse(
const char* begin,
const char* end,
void*
object, ::google::protobuf::internal::ParseContext* ctx);
1543 ::google::protobuf::internal::ParseFunc _ParseFunc() const final {
return _InternalParse; }
1546 ::google::protobuf::io::CodedInputStream* input)
final;
1547 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 1549 ::google::protobuf::io::CodedOutputStream* output)
const final;
1551 ::google::protobuf::uint8* target)
const final;
1552 int GetCachedSize() const final {
return _cached_size_.Get(); }
1557 void SetCachedSize(
int size)
const final;
1558 void InternalSwap(MPModelRequest* other);
1560 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1563 inline void* MaybeArenaPtr()
const {
1568 ::google::protobuf::Metadata
GetMetadata() const final;
1573 static const SolverType GLOP_LINEAR_PROGRAMMING =
1575 static const SolverType CLP_LINEAR_PROGRAMMING =
1577 static const SolverType GLPK_LINEAR_PROGRAMMING =
1579 static const SolverType GUROBI_LINEAR_PROGRAMMING =
1583 static const
SolverType SCIP_MIXED_INTEGER_PROGRAMMING =
1585 static const
SolverType GLPK_MIXED_INTEGER_PROGRAMMING =
1587 static const
SolverType CBC_MIXED_INTEGER_PROGRAMMING =
1589 static const
SolverType GUROBI_MIXED_INTEGER_PROGRAMMING =
1591 static const
SolverType CPLEX_MIXED_INTEGER_PROGRAMMING =
1593 static const
SolverType BOP_INTEGER_PROGRAMMING =
1595 static const
SolverType SAT_INTEGER_PROGRAMMING =
1597 static const
SolverType KNAPSACK_MIXED_INTEGER_PROGRAMMING =
1599 static inline
bool SolverType_IsValid(
int value) {
1606 static const int SolverType_ARRAYSIZE =
1608 static inline const ::google::protobuf::EnumDescriptor*
1609 SolverType_descriptor() {
1612 static inline const ::std::string& SolverType_Name(SolverType value) {
1615 static inline bool SolverType_Parse(const ::std::string& name,
1623 bool has_solver_specific_parameters()
const;
1624 void clear_solver_specific_parameters();
1625 static const int kSolverSpecificParametersFieldNumber = 5;
1626 const ::std::string& solver_specific_parameters()
const;
1627 void set_solver_specific_parameters(const ::std::string& value);
1629 void set_solver_specific_parameters(::std::string&& value);
1631 void set_solver_specific_parameters(
const char* value);
1632 void set_solver_specific_parameters(
const char* value,
size_t size);
1633 ::std::string* mutable_solver_specific_parameters();
1634 ::std::string* release_solver_specific_parameters();
1635 void set_allocated_solver_specific_parameters(::std::string* solver_specific_parameters);
1638 bool has_model()
const;
1640 static const int kModelFieldNumber = 1;
1641 const ::operations_research::MPModelProto& model()
const;
1647 bool has_solver_time_limit_seconds()
const;
1648 void clear_solver_time_limit_seconds();
1649 static const int kSolverTimeLimitSecondsFieldNumber = 3;
1650 double solver_time_limit_seconds()
const;
1651 void set_solver_time_limit_seconds(
double value);
1654 bool has_enable_internal_solver_output()
const;
1655 void clear_enable_internal_solver_output();
1656 static const int kEnableInternalSolverOutputFieldNumber = 4;
1657 bool enable_internal_solver_output()
const;
1658 void set_enable_internal_solver_output(
bool value);
1661 bool has_solver_type()
const;
1662 void clear_solver_type();
1663 static const int kSolverTypeFieldNumber = 2;
1669 class HasBitSetters;
1671 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1672 ::google::protobuf::internal::HasBits<1> _has_bits_;
1673 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1674 ::google::protobuf::internal::ArenaStringPtr solver_specific_parameters_;
1676 double solver_time_limit_seconds_;
1677 bool enable_internal_solver_output_;
1679 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
1684 public ::google::protobuf::Message {
1698 *
this = ::std::move(from);
1702 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1703 if (
this != &from) InternalSwap(&from);
1710 inline const ::google::protobuf::UnknownFieldSet&
unknown_fields()
const {
1711 return _internal_metadata_.unknown_fields();
1714 return _internal_metadata_.mutable_unknown_fields();
1717 static const ::google::protobuf::Descriptor*
descriptor() {
1724 return reinterpret_cast<const MPSolutionResponse*>(
1738 return CreateMaybeMessage<MPSolutionResponse>(
nullptr);
1742 return CreateMaybeMessage<MPSolutionResponse>(arena);
1744 void CopyFrom(const ::google::protobuf::Message& from)
final;
1745 void MergeFrom(const ::google::protobuf::Message& from)
final;
1748 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
1752 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 1753 static const char* _InternalParse(
const char* begin,
const char* end,
void*
object, ::google::protobuf::internal::ParseContext* ctx);
1754 ::google::protobuf::internal::ParseFunc _ParseFunc() const final {
return _InternalParse; }
1757 ::google::protobuf::io::CodedInputStream* input)
final;
1758 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 1760 ::google::protobuf::io::CodedOutputStream* output)
const final;
1762 ::google::protobuf::uint8* target)
const final;
1763 int GetCachedSize() const final {
return _cached_size_.Get(); }
1768 void SetCachedSize(
int size)
const final;
1769 void InternalSwap(MPSolutionResponse* other);
1771 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1774 inline void* MaybeArenaPtr()
const {
1779 ::google::protobuf::Metadata
GetMetadata() const final;
1786 int variable_value_size() const;
1787 void clear_variable_value();
1788 static const
int kVariableValueFieldNumber = 3;
1789 double variable_value(
int index) const;
1790 void set_variable_value(
int index,
double value);
1791 void add_variable_value(
double value);
1792 const ::
google::protobuf::RepeatedField<
double >&
1793 variable_value() const;
1794 ::
google::protobuf::RepeatedField<
double >*
1795 mutable_variable_value();
1798 int dual_value_size() const;
1799 void clear_dual_value();
1800 static const
int kDualValueFieldNumber = 4;
1801 double dual_value(
int index) const;
1802 void set_dual_value(
int index,
double value);
1803 void add_dual_value(
double value);
1804 const ::
google::protobuf::RepeatedField<
double >&
1806 ::
google::protobuf::RepeatedField<
double >*
1807 mutable_dual_value();
1810 int reduced_cost_size() const;
1811 void clear_reduced_cost();
1812 static const
int kReducedCostFieldNumber = 6;
1813 double reduced_cost(
int index) const;
1814 void set_reduced_cost(
int index,
double value);
1815 void add_reduced_cost(
double value);
1816 const ::
google::protobuf::RepeatedField<
double >&
1817 reduced_cost() const;
1818 ::
google::protobuf::RepeatedField<
double >*
1819 mutable_reduced_cost();
1822 bool has_objective_value() const;
1823 void clear_objective_value();
1824 static const
int kObjectiveValueFieldNumber = 2;
1825 double objective_value() const;
1826 void set_objective_value(
double value);
1829 bool has_best_objective_bound() const;
1830 void clear_best_objective_bound();
1831 static const
int kBestObjectiveBoundFieldNumber = 5;
1832 double best_objective_bound() const;
1833 void set_best_objective_bound(
double value);
1836 bool has_status() const;
1837 void clear_status();
1838 static const
int kStatusFieldNumber = 1;
1844 class HasBitSetters;
1846 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1847 ::
google::protobuf::internal::HasBits<1> _has_bits_;
1848 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
1849 ::
google::protobuf::RepeatedField<
double > variable_value_;
1850 mutable std::atomic<
int> _variable_value_cached_byte_size_;
1851 ::
google::protobuf::RepeatedField<
double > dual_value_;
1852 mutable std::atomic<
int> _dual_value_cached_byte_size_;
1853 ::
google::protobuf::RepeatedField<
double > reduced_cost_;
1854 mutable std::atomic<
int> _reduced_cost_cached_byte_size_;
1855 double objective_value_;
1856 double best_objective_bound_;
1866 #pragma GCC diagnostic push 1867 #pragma GCC diagnostic ignored "-Wstrict-aliasing" 1873 return (_has_bits_[0] & 0x00000008u) != 0;
1876 lower_bound_ = -std::numeric_limits<double>::infinity();
1877 _has_bits_[0] &= ~0x00000008u;
1881 return lower_bound_;
1884 _has_bits_[0] |= 0x00000008u;
1885 lower_bound_ = value;
1891 return (_has_bits_[0] & 0x00000010u) != 0;
1894 upper_bound_ = std::numeric_limits<double>::infinity();
1895 _has_bits_[0] &= ~0x00000010u;
1899 return upper_bound_;
1902 _has_bits_[0] |= 0x00000010u;
1903 upper_bound_ = value;
1909 return (_has_bits_[0] & 0x00000002u) != 0;
1912 objective_coefficient_ = 0;
1913 _has_bits_[0] &= ~0x00000002u;
1917 return objective_coefficient_;
1920 _has_bits_[0] |= 0x00000002u;
1921 objective_coefficient_ = value;
1927 return (_has_bits_[0] & 0x00000004u) != 0;
1930 is_integer_ =
false;
1931 _has_bits_[0] &= ~0x00000004u;
1938 _has_bits_[0] |= 0x00000004u;
1939 is_integer_ = value;
1945 return (_has_bits_[0] & 0x00000001u) != 0;
1948 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1949 _has_bits_[0] &= ~0x00000001u;
1953 return name_.GetNoArena();
1956 _has_bits_[0] |= 0x00000001u;
1957 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1962 _has_bits_[0] |= 0x00000001u;
1964 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1969 GOOGLE_DCHECK(value !=
nullptr);
1970 _has_bits_[0] |= 0x00000001u;
1971 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1975 _has_bits_[0] |= 0x00000001u;
1976 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1977 ::std::string(reinterpret_cast<const char*>(value), size));
1981 _has_bits_[0] |= 0x00000001u;
1983 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1990 _has_bits_[0] &= ~0x00000001u;
1991 return name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1994 if (name !=
nullptr) {
1995 _has_bits_[0] |= 0x00000001u;
1997 _has_bits_[0] &= ~0x00000001u;
1999 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
2009 return var_index_.size();
2016 return var_index_.Get(index);
2019 var_index_.Set(index, value);
2023 var_index_.Add(value);
2026 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2031 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2039 return coefficient_.size();
2042 coefficient_.Clear();
2046 return coefficient_.Get(index);
2049 coefficient_.Set(index, value);
2053 coefficient_.Add(value);
2056 inline const ::google::protobuf::RepeatedField< double >&
2059 return coefficient_;
2061 inline ::google::protobuf::RepeatedField< double >*
2064 return &coefficient_;
2069 return (_has_bits_[0] & 0x00000004u) != 0;
2072 lower_bound_ = -std::numeric_limits<double>::infinity();
2073 _has_bits_[0] &= ~0x00000004u;
2077 return lower_bound_;
2080 _has_bits_[0] |= 0x00000004u;
2081 lower_bound_ = value;
2087 return (_has_bits_[0] & 0x00000008u) != 0;
2090 upper_bound_ = std::numeric_limits<double>::infinity();
2091 _has_bits_[0] &= ~0x00000008u;
2095 return upper_bound_;
2098 _has_bits_[0] |= 0x00000008u;
2099 upper_bound_ = value;
2105 return (_has_bits_[0] & 0x00000001u) != 0;
2108 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2109 _has_bits_[0] &= ~0x00000001u;
2113 return name_.GetNoArena();
2116 _has_bits_[0] |= 0x00000001u;
2117 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2122 _has_bits_[0] |= 0x00000001u;
2124 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
2129 GOOGLE_DCHECK(value !=
nullptr);
2130 _has_bits_[0] |= 0x00000001u;
2131 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2135 _has_bits_[0] |= 0x00000001u;
2136 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2137 ::std::string(reinterpret_cast<const char*>(value), size));
2141 _has_bits_[0] |= 0x00000001u;
2143 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2150 _has_bits_[0] &= ~0x00000001u;
2151 return name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2154 if (name !=
nullptr) {
2155 _has_bits_[0] |= 0x00000001u;
2157 _has_bits_[0] &= ~0x00000001u;
2159 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
2165 return (_has_bits_[0] & 0x00000002u) != 0;
2169 _has_bits_[0] &= ~0x00000002u;
2176 _has_bits_[0] |= 0x00000002u;
2187 return (_has_bits_[0] & 0x00000001u) != 0;
2190 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2191 _has_bits_[0] &= ~0x00000001u;
2195 return name_.GetNoArena();
2198 _has_bits_[0] |= 0x00000001u;
2199 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2204 _has_bits_[0] |= 0x00000001u;
2206 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
2211 GOOGLE_DCHECK(value !=
nullptr);
2212 _has_bits_[0] |= 0x00000001u;
2213 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2217 _has_bits_[0] |= 0x00000001u;
2218 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2219 ::std::string(reinterpret_cast<const char*>(value), size));
2223 _has_bits_[0] |= 0x00000001u;
2225 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2232 _has_bits_[0] &= ~0x00000001u;
2233 return name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2236 if (name !=
nullptr) {
2237 _has_bits_[0] |= 0x00000001u;
2239 _has_bits_[0] &= ~0x00000001u;
2241 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
2247 return general_constraint_case() == kIndicatorConstraint;
2249 inline void MPGeneralConstraintProto::set_has_indicator_constraint() {
2250 _oneof_case_[0] = kIndicatorConstraint;
2253 if (has_indicator_constraint()) {
2254 delete general_constraint_.indicator_constraint_;
2255 clear_has_general_constraint();
2260 if (has_indicator_constraint()) {
2261 clear_has_general_constraint();
2263 general_constraint_.indicator_constraint_ =
nullptr;
2271 return has_indicator_constraint()
2272 ? *general_constraint_.indicator_constraint_
2276 if (!has_indicator_constraint()) {
2277 clear_general_constraint();
2278 set_has_indicator_constraint();
2279 general_constraint_.indicator_constraint_ = CreateMaybeMessage< ::operations_research::MPIndicatorConstraint >(
2280 GetArenaNoVirtual());
2283 return general_constraint_.indicator_constraint_;
2286 inline bool MPGeneralConstraintProto::has_general_constraint()
const {
2287 return general_constraint_case() != GENERAL_CONSTRAINT_NOT_SET;
2289 inline void MPGeneralConstraintProto::clear_has_general_constraint() {
2290 _oneof_case_[0] = GENERAL_CONSTRAINT_NOT_SET;
2301 return (_has_bits_[0] & 0x00000002u) != 0;
2305 _has_bits_[0] &= ~0x00000002u;
2312 _has_bits_[0] |= 0x00000002u;
2319 return (_has_bits_[0] & 0x00000004u) != 0;
2323 _has_bits_[0] &= ~0x00000004u;
2330 _has_bits_[0] |= 0x00000004u;
2337 return (_has_bits_[0] & 0x00000001u) != 0;
2340 if (constraint_ !=
nullptr) constraint_->Clear();
2341 _has_bits_[0] &= ~0x00000001u;
2344 const ::operations_research::MPConstraintProto* p = constraint_;
2346 return p !=
nullptr ? *p : *reinterpret_cast<const ::operations_research::MPConstraintProto*>(
2351 _has_bits_[0] &= ~0x00000001u;
2353 constraint_ =
nullptr;
2357 _has_bits_[0] |= 0x00000001u;
2358 if (constraint_ ==
nullptr) {
2359 auto* p = CreateMaybeMessage<::operations_research::MPConstraintProto>(GetArenaNoVirtual());
2366 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
2367 if (message_arena ==
nullptr) {
2371 ::google::protobuf::Arena* submessage_arena =
nullptr;
2372 if (message_arena != submessage_arena) {
2373 constraint = ::google::protobuf::internal::GetOwnedMessage(
2374 message_arena,
constraint, submessage_arena);
2376 _has_bits_[0] |= 0x00000001u;
2378 _has_bits_[0] &= ~0x00000001u;
2390 return var_index_.size();
2397 return var_index_.Get(index);
2400 var_index_.Set(index, value);
2404 var_index_.Add(value);
2407 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2412 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2420 return var_value_.size();
2427 return var_value_.Get(index);
2430 var_value_.Set(index, value);
2434 var_value_.Add(value);
2437 inline const ::google::protobuf::RepeatedField< double >&
2442 inline ::google::protobuf::RepeatedField< double >*
2454 return (_has_bits_[0] & 0x00000008u) != 0;
2458 _has_bits_[0] &= ~0x00000008u;
2465 _has_bits_[0] |= 0x00000008u;
2472 return (_has_bits_[0] & 0x00000004u) != 0;
2475 objective_offset_ = 0;
2476 _has_bits_[0] &= ~0x00000004u;
2480 return objective_offset_;
2483 _has_bits_[0] |= 0x00000004u;
2484 objective_offset_ = value;
2490 return variable_.size();
2497 return variable_.Mutable(index);
2499 inline ::google::protobuf::RepeatedPtrField< ::operations_research::MPVariableProto >*
2506 return variable_.Get(index);
2510 return variable_.Add();
2512 inline const ::google::protobuf::RepeatedPtrField< ::operations_research::MPVariableProto >&
2520 return constraint_.size();
2523 constraint_.Clear();
2527 return constraint_.Mutable(index);
2529 inline ::google::protobuf::RepeatedPtrField< ::operations_research::MPConstraintProto >*
2532 return &constraint_;
2536 return constraint_.Get(index);
2540 return constraint_.Add();
2542 inline const ::google::protobuf::RepeatedPtrField< ::operations_research::MPConstraintProto >&
2550 return general_constraint_.size();
2553 general_constraint_.Clear();
2557 return general_constraint_.Mutable(index);
2559 inline ::google::protobuf::RepeatedPtrField< ::operations_research::MPGeneralConstraintProto >*
2562 return &general_constraint_;
2566 return general_constraint_.Get(index);
2570 return general_constraint_.Add();
2572 inline const ::google::protobuf::RepeatedPtrField< ::operations_research::MPGeneralConstraintProto >&
2575 return general_constraint_;
2580 return (_has_bits_[0] & 0x00000001u) != 0;
2583 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2584 _has_bits_[0] &= ~0x00000001u;
2588 return name_.GetNoArena();
2591 _has_bits_[0] |= 0x00000001u;
2592 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2597 _has_bits_[0] |= 0x00000001u;
2599 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
2604 GOOGLE_DCHECK(value !=
nullptr);
2605 _has_bits_[0] |= 0x00000001u;
2606 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2610 _has_bits_[0] |= 0x00000001u;
2611 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2612 ::std::string(reinterpret_cast<const char*>(value), size));
2616 _has_bits_[0] |= 0x00000001u;
2618 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2625 _has_bits_[0] &= ~0x00000001u;
2626 return name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2629 if (name !=
nullptr) {
2630 _has_bits_[0] |= 0x00000001u;
2632 _has_bits_[0] &= ~0x00000001u;
2634 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
2640 return (_has_bits_[0] & 0x00000002u) != 0;
2643 if (solution_hint_ !=
nullptr) solution_hint_->Clear();
2644 _has_bits_[0] &= ~0x00000002u;
2647 const ::operations_research::PartialVariableAssignment* p = solution_hint_;
2649 return p !=
nullptr ? *p : *reinterpret_cast<const ::operations_research::PartialVariableAssignment*>(
2654 _has_bits_[0] &= ~0x00000002u;
2656 solution_hint_ =
nullptr;
2660 _has_bits_[0] |= 0x00000002u;
2661 if (solution_hint_ ==
nullptr) {
2662 auto* p = CreateMaybeMessage<::operations_research::PartialVariableAssignment>(GetArenaNoVirtual());
2666 return solution_hint_;
2669 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
2670 if (message_arena ==
nullptr) {
2671 delete solution_hint_;
2673 if (solution_hint) {
2674 ::google::protobuf::Arena* submessage_arena =
nullptr;
2675 if (message_arena != submessage_arena) {
2676 solution_hint = ::google::protobuf::internal::GetOwnedMessage(
2677 message_arena, solution_hint, submessage_arena);
2679 _has_bits_[0] |= 0x00000002u;
2681 _has_bits_[0] &= ~0x00000002u;
2683 solution_hint_ = solution_hint;
2693 return (_has_bits_[0] & 0x00000001u) != 0;
2697 _has_bits_[0] &= ~0x00000001u;
2704 _has_bits_[0] |= 0x00000001u;
2715 return (_has_bits_[0] & 0x00000001u) != 0;
2718 if (relative_mip_gap_ !=
nullptr) relative_mip_gap_->Clear();
2719 _has_bits_[0] &= ~0x00000001u;
2722 const ::operations_research::OptionalDouble* p = relative_mip_gap_;
2724 return p !=
nullptr ? *p : *reinterpret_cast<const ::operations_research::OptionalDouble*>(
2729 _has_bits_[0] &= ~0x00000001u;
2731 relative_mip_gap_ =
nullptr;
2735 _has_bits_[0] |= 0x00000001u;
2736 if (relative_mip_gap_ ==
nullptr) {
2737 auto* p = CreateMaybeMessage<::operations_research::OptionalDouble>(GetArenaNoVirtual());
2738 relative_mip_gap_ = p;
2741 return relative_mip_gap_;
2744 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
2745 if (message_arena ==
nullptr) {
2746 delete relative_mip_gap_;
2748 if (relative_mip_gap) {
2749 ::google::protobuf::Arena* submessage_arena =
nullptr;
2750 if (message_arena != submessage_arena) {
2751 relative_mip_gap = ::google::protobuf::internal::GetOwnedMessage(
2752 message_arena, relative_mip_gap, submessage_arena);
2754 _has_bits_[0] |= 0x00000001u;
2756 _has_bits_[0] &= ~0x00000001u;
2758 relative_mip_gap_ = relative_mip_gap;
2764 return (_has_bits_[0] & 0x00000002u) != 0;
2767 if (primal_tolerance_ !=
nullptr) primal_tolerance_->Clear();
2768 _has_bits_[0] &= ~0x00000002u;
2771 const ::operations_research::OptionalDouble* p = primal_tolerance_;
2773 return p !=
nullptr ? *p : *reinterpret_cast<const ::operations_research::OptionalDouble*>(
2778 _has_bits_[0] &= ~0x00000002u;
2780 primal_tolerance_ =
nullptr;
2784 _has_bits_[0] |= 0x00000002u;
2785 if (primal_tolerance_ ==
nullptr) {
2786 auto* p = CreateMaybeMessage<::operations_research::OptionalDouble>(GetArenaNoVirtual());
2787 primal_tolerance_ = p;
2790 return primal_tolerance_;
2793 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
2794 if (message_arena ==
nullptr) {
2795 delete primal_tolerance_;
2797 if (primal_tolerance) {
2798 ::google::protobuf::Arena* submessage_arena =
nullptr;
2799 if (message_arena != submessage_arena) {
2800 primal_tolerance = ::google::protobuf::internal::GetOwnedMessage(
2801 message_arena, primal_tolerance, submessage_arena);
2803 _has_bits_[0] |= 0x00000002u;
2805 _has_bits_[0] &= ~0x00000002u;
2807 primal_tolerance_ = primal_tolerance;
2813 return (_has_bits_[0] & 0x00000004u) != 0;
2816 if (dual_tolerance_ !=
nullptr) dual_tolerance_->Clear();
2817 _has_bits_[0] &= ~0x00000004u;
2820 const ::operations_research::OptionalDouble* p = dual_tolerance_;
2822 return p !=
nullptr ? *p : *reinterpret_cast<const ::operations_research::OptionalDouble*>(
2827 _has_bits_[0] &= ~0x00000004u;
2829 dual_tolerance_ =
nullptr;
2833 _has_bits_[0] |= 0x00000004u;
2834 if (dual_tolerance_ ==
nullptr) {
2835 auto* p = CreateMaybeMessage<::operations_research::OptionalDouble>(GetArenaNoVirtual());
2836 dual_tolerance_ = p;
2839 return dual_tolerance_;
2842 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
2843 if (message_arena ==
nullptr) {
2844 delete dual_tolerance_;
2846 if (dual_tolerance) {
2847 ::google::protobuf::Arena* submessage_arena =
nullptr;
2848 if (message_arena != submessage_arena) {
2849 dual_tolerance = ::google::protobuf::internal::GetOwnedMessage(
2850 message_arena, dual_tolerance, submessage_arena);
2852 _has_bits_[0] |= 0x00000004u;
2854 _has_bits_[0] &= ~0x00000004u;
2856 dual_tolerance_ = dual_tolerance;
2862 return (_has_bits_[0] & 0x00000008u) != 0;
2866 _has_bits_[0] &= ~0x00000008u;
2870 return static_cast< ::operations_research::MPSolverCommonParameters_LPAlgorithmValues >(lp_algorithm_);
2874 _has_bits_[0] |= 0x00000008u;
2875 lp_algorithm_ = value;
2881 return (_has_bits_[0] & 0x00000010u) != 0;
2885 _has_bits_[0] &= ~0x00000010u;
2889 return static_cast< ::operations_research::OptionalBoolean >(presolve_);
2892 assert(::operations_research::OptionalBoolean_IsValid(value));
2893 _has_bits_[0] |= 0x00000010u;
2900 return (_has_bits_[0] & 0x00000020u) != 0;
2904 _has_bits_[0] &= ~0x00000020u;
2908 return static_cast< ::operations_research::OptionalBoolean >(scaling_);
2911 assert(::operations_research::OptionalBoolean_IsValid(value));
2912 _has_bits_[0] |= 0x00000020u;
2923 return (_has_bits_[0] & 0x00000002u) != 0;
2926 if (model_ !=
nullptr) model_->Clear();
2927 _has_bits_[0] &= ~0x00000002u;
2930 const ::operations_research::MPModelProto* p = model_;
2932 return p !=
nullptr ? *p : *reinterpret_cast<const ::operations_research::MPModelProto*>(
2937 _has_bits_[0] &= ~0x00000002u;
2943 _has_bits_[0] |= 0x00000002u;
2944 if (model_ ==
nullptr) {
2945 auto* p = CreateMaybeMessage<::operations_research::MPModelProto>(GetArenaNoVirtual());
2952 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
2953 if (message_arena ==
nullptr) {
2957 ::google::protobuf::Arena* submessage_arena =
nullptr;
2958 if (message_arena != submessage_arena) {
2959 model = ::google::protobuf::internal::GetOwnedMessage(
2960 message_arena, model, submessage_arena);
2962 _has_bits_[0] |= 0x00000002u;
2964 _has_bits_[0] &= ~0x00000002u;
2972 return (_has_bits_[0] & 0x00000010u) != 0;
2976 _has_bits_[0] &= ~0x00000010u;
2980 return static_cast< ::operations_research::MPModelRequest_SolverType >(solver_type_);
2984 _has_bits_[0] |= 0x00000010u;
2985 solver_type_ = value;
2991 return (_has_bits_[0] & 0x00000004u) != 0;
2994 solver_time_limit_seconds_ = 0;
2995 _has_bits_[0] &= ~0x00000004u;
2999 return solver_time_limit_seconds_;
3002 _has_bits_[0] |= 0x00000004u;
3003 solver_time_limit_seconds_ = value;
3009 return (_has_bits_[0] & 0x00000008u) != 0;
3012 enable_internal_solver_output_ =
false;
3013 _has_bits_[0] &= ~0x00000008u;
3017 return enable_internal_solver_output_;
3020 _has_bits_[0] |= 0x00000008u;
3021 enable_internal_solver_output_ = value;
3027 return (_has_bits_[0] & 0x00000001u) != 0;
3030 solver_specific_parameters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3031 _has_bits_[0] &= ~0x00000001u;
3035 return solver_specific_parameters_.GetNoArena();
3038 _has_bits_[0] |= 0x00000001u;
3039 solver_specific_parameters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3044 _has_bits_[0] |= 0x00000001u;
3045 solver_specific_parameters_.SetNoArena(
3046 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3051 GOOGLE_DCHECK(value !=
nullptr);
3052 _has_bits_[0] |= 0x00000001u;
3053 solver_specific_parameters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3057 _has_bits_[0] |= 0x00000001u;
3058 solver_specific_parameters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3059 ::std::string(reinterpret_cast<const char*>(value), size));
3063 _has_bits_[0] |= 0x00000001u;
3065 return solver_specific_parameters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3069 if (!has_solver_specific_parameters()) {
3072 _has_bits_[0] &= ~0x00000001u;
3073 return solver_specific_parameters_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3076 if (solver_specific_parameters !=
nullptr) {
3077 _has_bits_[0] |= 0x00000001u;
3079 _has_bits_[0] &= ~0x00000001u;
3081 solver_specific_parameters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), solver_specific_parameters);
3091 return (_has_bits_[0] & 0x00000004u) != 0;
3095 _has_bits_[0] &= ~0x00000004u;
3099 return static_cast< ::operations_research::MPSolverResponseStatus >(status_);
3103 _has_bits_[0] |= 0x00000004u;
3110 return (_has_bits_[0] & 0x00000001u) != 0;
3113 objective_value_ = 0;
3114 _has_bits_[0] &= ~0x00000001u;
3118 return objective_value_;
3121 _has_bits_[0] |= 0x00000001u;
3122 objective_value_ = value;
3128 return (_has_bits_[0] & 0x00000002u) != 0;
3131 best_objective_bound_ = 0;
3132 _has_bits_[0] &= ~0x00000002u;
3136 return best_objective_bound_;
3139 _has_bits_[0] |= 0x00000002u;
3140 best_objective_bound_ = value;
3146 return variable_value_.size();
3149 variable_value_.Clear();
3153 return variable_value_.Get(index);
3156 variable_value_.Set(index, value);
3160 variable_value_.Add(value);
3163 inline const ::google::protobuf::RepeatedField< double >&
3166 return variable_value_;
3168 inline ::google::protobuf::RepeatedField< double >*
3171 return &variable_value_;
3176 return dual_value_.size();
3179 dual_value_.Clear();
3183 return dual_value_.Get(index);
3186 dual_value_.Set(index, value);
3190 dual_value_.Add(value);
3193 inline const ::google::protobuf::RepeatedField< double >&
3198 inline ::google::protobuf::RepeatedField< double >*
3201 return &dual_value_;
3206 return reduced_cost_.size();
3209 reduced_cost_.Clear();
3213 return reduced_cost_.Get(index);
3216 reduced_cost_.Set(index, value);
3220 reduced_cost_.Add(value);
3223 inline const ::google::protobuf::RepeatedField< double >&
3226 return reduced_cost_;
3228 inline ::google::protobuf::RepeatedField< double >*
3231 return &reduced_cost_;
3235 #pragma GCC diagnostic pop 3261 namespace protobuf {
3265 inline const EnumDescriptor* GetEnumDescriptor< ::operations_research::MPSolverCommonParameters_LPAlgorithmValues>() {
3270 inline const EnumDescriptor* GetEnumDescriptor< ::operations_research::MPModelRequest_SolverType>() {
3275 inline const EnumDescriptor* GetEnumDescriptor< ::operations_research::MPSolverResponseStatus>() {
3284 #include <google/protobuf/port_undef.inc> 3285 #endif // PROTOBUF_INCLUDED_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto size_t ByteSizeLong() const final
bool has_var_index() const
optional int32 var_index = 1;
const ::google::protobuf::EnumDescriptor * MPModelRequest_SolverType_descriptor()
void CopyFrom(const ::google::protobuf::Message &from) final
void set_solver_time_limit_seconds(double value)
int GetCachedSize() const final
void Swap(MPModelProto *other)
bool has_is_lazy() const
optional bool is_lazy = 5 [default = false];
MPModelRequest_SolverType
::google::protobuf::int32 var_value() const
bool has_constraint() const
nested types -------------------------------------------------—
static const MPGeneralConstraintProto & default_instance()
const ::operations_research::MPIndicatorConstraint & indicator_constraint() const
int general_constraint_size() const
repeated .operations_research.MPGeneralConstraintProto general_constraint = 7;
void clear_variable_value()
void set_lower_bound(double value)
static const ::google::protobuf::Descriptor * descriptor()
void set_var_index(int index, ::google::protobuf::int32 value)
void set_lp_algorithm(::operations_research::MPSolverCommonParameters_LPAlgorithmValues value)
bool MPModelRequest_SolverType_Parse(const ::std::string &name, MPModelRequest_SolverType *value)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
void add_coefficient(double value)
void set_is_lazy(bool value)
void CopyFrom(const ::google::protobuf::Message &from) final
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) final
int GetCachedSize() const final
MPGeneralConstraintProto & operator=(const MPGeneralConstraintProto &from)
void Swap(PartialVariableAssignment *other)
static const int kUpperBoundFieldNumber
static void InitAsDefaultInstance()
void set_coefficient(int index, double value)
bool MPModelRequest_SolverType_IsValid(int value)
MPVariableProto * New() const final
implements Message -------------------------------------------—
static const int kConstraintFieldNumber
::operations_research::MPModelProto * mutable_model()
bool has_objective_value() const
optional double objective_value = 2;
MPVariableProto & operator=(const MPVariableProto &from)
static const int kVarIndexFieldNumber
virtual ~MPIndicatorConstraint()
bool MPSolverResponseStatus_Parse(const ::std::string &name, MPSolverResponseStatus *value)
::operations_research::OptionalDouble * mutable_relative_mip_gap()
void Swap(MPVariableProto *other)
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(::google::protobuf::uint8 *target) const final
void AddDescriptors_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto()
int variable_size() const
nested types -------------------------------------------------—
void set_reduced_cost(int index, double value)
void set_name(const ::std::string &value)
bool IsInitialized() const final
const ::google::protobuf::EnumDescriptor * MPSolverResponseStatus_descriptor()
::operations_research::PartialVariableAssignment * release_solution_hint()
bool MPSolverResponseStatus_IsValid(int value)
void set_allocated_constraint(::operations_research::MPConstraintProto *constraint)
bool IsInitialized() const final
const ::operations_research::OptionalDouble & dual_tolerance() const
void set_allocated_name(::std::string *name)
void MergeFrom(const ::google::protobuf::Message &from) final
GeneralConstraintCase general_constraint_case() const
::google::protobuf::RepeatedField< double > * mutable_reduced_cost()
void clear_objective_value()
static const MPGeneralConstraintProto * internal_default_instance()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::std::string & name() const
static const int kCoefficientFieldNumber
::operations_research::MPGeneralConstraintProto * add_general_constraint()
void clear_indicator_constraint()
::google::protobuf::Metadata GetMetadata() const final
bool has_model() const
optional .operations_research.MPModelProto model = 1;
void set_status(::operations_research::MPSolverResponseStatus value)
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) final
friend void swap(MPGeneralConstraintProto &a, MPGeneralConstraintProto &b)
static constexpr int kIndexInFileMessages
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
bool enable_internal_solver_output() const
bool MPSolverCommonParameters_LPAlgorithmValues_IsValid(int value)
::google::protobuf::Metadata GetMetadata() const final
bool has_name() const
optional string name = 5 [default = ""];
::operations_research::OptionalDouble * mutable_dual_tolerance()
double objective_value() const
::google::protobuf::RepeatedPtrField< ::operations_research::MPVariableProto > * mutable_variable()
bool has_best_objective_bound() const
optional double best_objective_bound = 5;
::operations_research::MPModelProto * release_model()
static const MPVariableProto * internal_default_instance()
friend void swap(MPConstraintProto &a, MPConstraintProto &b)
::google::protobuf::int32 var_index() const
void Swap(MPSolverCommonParameters *other)
size_t ByteSizeLong() const final
const ::std::string & name() const
bool has_indicator_constraint() const
optional .operations_research.MPIndicatorConstraint indicator_constraint = 2;
void CopyFrom(const ::google::protobuf::Message &from) final
void set_objective_coefficient(double value)
void MergeFrom(const ::google::protobuf::Message &from) final
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
void set_var_index(int index, ::google::protobuf::int32 value)
static void InitAsDefaultInstance()
bool IsInitialized() const final
::google::protobuf::RepeatedField< double > * mutable_var_value()
const ::std::string & name() const
void clear_best_objective_bound()
MPVariableProtoDefaultTypeInternal _MPVariableProto_default_instance_
bool has_dual_tolerance() const
optional .operations_research.OptionalDouble dual_tolerance = 3;
static const int kIndicatorConstraintFieldNumber
const ::operations_research::MPConstraintProto & constraint() const
::operations_research::MPConstraintProto * add_constraint()
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(::google::protobuf::uint8 *target) const final
void clear_objective_offset()
MPConstraintProto * New() const final
implements Message -------------------------------------------—
::google::protobuf::RepeatedField< ::google::protobuf::int32 > * mutable_var_index()
double upper_bound() const
static constexpr int kIndexInFileMessages
virtual ~MPVariableProto()
MPSolverCommonParameters_LPAlgorithmValues
::google::protobuf::RepeatedField< ::google::protobuf::int32 > * mutable_var_index()
void Swap(MPIndicatorConstraint *other)
const ::operations_research::OptionalDouble & primal_tolerance() const
void add_dual_value(double value)
bool has_scaling() const
optional .operations_research.OptionalBoolean scaling = 7 [default = BOOL_UNSPECIFIED];
const MPModelRequest_SolverType MPModelRequest_SolverType_SolverType_MAX
MPGeneralConstraintProtoDefaultTypeInternal _MPGeneralConstraintProto_default_instance_
void set_allocated_primal_tolerance(::operations_research::OptionalDouble *primal_tolerance)
::operations_research::OptionalDouble * release_primal_tolerance()
void set_scaling(::operations_research::OptionalBoolean value)
MPIndicatorConstraintDefaultTypeInternal _MPIndicatorConstraint_default_instance_
static const int kLowerBoundFieldNumber
bool has_is_integer() const
optional bool is_integer = 4 [default = false];
const ::google::protobuf::RepeatedField< double > & dual_value() const
const ::operations_research::PartialVariableAssignment & solution_hint() const
const ::operations_research::OptionalDouble & relative_mip_gap() const
MPIndicatorConstraint * New() const final
implements Message -------------------------------------------—
double solver_time_limit_seconds() const
MPSolutionResponse & operator=(const MPSolutionResponse &from)
bool has_lp_algorithm() const
optional .operations_research.MPSolverCommonParameters.LPAlgorithmValues lp_algorithm = 4 [default = ...
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const final
const ::google::protobuf::RepeatedPtrField< ::operations_research::MPConstraintProto > & constraint() const
void clear_dual_tolerance()
::google::protobuf::RepeatedField< double > * mutable_variable_value()
double objective_offset() const
static const MPIndicatorConstraint & default_instance()
bool has_solver_time_limit_seconds() const
optional double solver_time_limit_seconds = 3;
bool has_presolve() const
optional .operations_research.OptionalBoolean presolve = 5 [default = BOOL_UNSPECIFIED];
static constexpr int kIndexInFileMessages
MPConstraintProto & operator=(const MPConstraintProto &from)
::operations_research::OptionalDouble * mutable_primal_tolerance()
bool has_solver_type() const
optional .operations_research.MPModelRequest.SolverType solver_type = 2;
void set_best_objective_bound(double value)
void set_var_index(::google::protobuf::int32 value)
void Swap(OptionalDouble *other)
void set_dual_value(int index, double value)
void set_is_integer(bool value)
OptionalDoubleDefaultTypeInternal _OptionalDouble_default_instance_
::std::string * release_name()
::google::protobuf::RepeatedPtrField< ::operations_research::MPConstraintProto > * mutable_constraint()
bool has_enable_internal_solver_output() const
optional bool enable_internal_solver_output = 4 [default = false];
int coefficient_size() const
repeated double coefficient = 7 [packed = true];
static const int kObjectiveCoefficientFieldNumber
::operations_research::MPVariableProto * add_variable()
static const int kIsLazyFieldNumber
void set_allocated_solution_hint(::operations_research::PartialVariableAssignment *solution_hint)
bool has_name() const
optional string name = 4 [default = ""];
bool has_name() const
nested types -------------------------------------------------—
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
static void InitAsDefaultInstance()
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) final
const MPSolverResponseStatus MPSolverResponseStatus_MIN
static const MPConstraintProto * internal_default_instance()
int dual_value_size() const
repeated double dual_value = 4 [packed = true];
::operations_research::MPConstraintProto * mutable_constraint()
void clear_general_constraint()
size_t ByteSizeLong() const final
::operations_research::OptionalBoolean presolve() const
static const ::google::protobuf::Descriptor * descriptor()
const ::google::protobuf::RepeatedField< ::google::protobuf::int32 > & var_index() const
void set_allocated_solver_specific_parameters(::std::string *solver_specific_parameters)
void set_allocated_dual_tolerance(::operations_research::OptionalDouble *dual_tolerance)
void set_allocated_name(::std::string *name)
void set_upper_bound(double value)
::operations_research::OptionalBoolean scaling() const
MPModelRequestDefaultTypeInternal _MPModelRequest_default_instance_
static const int kVarIndexFieldNumber
void set_allocated_name(::std::string *name)
virtual ~MPConstraintProto()
int var_value_size() const
repeated double var_value = 2 [packed = true];
void clear_reduced_cost()
::std::string * release_name()
::google::protobuf::Metadata GetMetadata() const final
void set_objective_offset(double value)
static const MPConstraintProto & default_instance()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
bool has_solution_hint() const
optional .operations_research.PartialVariableAssignment solution_hint = 6;
const ::google::protobuf::RepeatedField< double > & variable_value() const
static constexpr int kIndexInFileMessages
int constraint_size() const
repeated .operations_research.MPConstraintProto constraint = 4;
void clear_general_constraint()
static const int kIsIntegerFieldNumber
void Swap(MPGeneralConstraintProto *other)
void add_variable_value(double value)
bool has_maximize() const
optional bool maximize = 1 [default = false];
MPModelProtoDefaultTypeInternal _MPModelProto_default_instance_
void clear_lp_algorithm()
bool has_lower_bound() const
optional double lower_bound = 2 [default = -inf];
const ::std::string & solver_specific_parameters() const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::google::protobuf::RepeatedPtrField< ::operations_research::MPGeneralConstraintProto > * mutable_general_constraint()
static const int kNameFieldNumber
MPGeneralConstraintProto * New() const final
implements Message -------------------------------------------—
int var_index_size() const
nested types -------------------------------------------------—
void set_solver_type(::operations_research::MPModelRequest_SolverType value)
void set_var_value(::google::protobuf::int32 value)
bool has_upper_bound() const
optional double upper_bound = 2 [default = inf];
bool has_primal_tolerance() const
optional .operations_research.OptionalDouble primal_tolerance = 2;
static const MPIndicatorConstraint * internal_default_instance()
bool has_name() const
nested types -------------------------------------------------—
const MPSolverCommonParameters_LPAlgorithmValues MPSolverCommonParameters_LPAlgorithmValues_LPAlgorithmValues_MAX
MPConstraintProtoDefaultTypeInternal _MPConstraintProto_default_instance_
::operations_research::MPSolverCommonParameters_LPAlgorithmValues lp_algorithm() const
double lower_bound() const
::operations_research::MPConstraintProto * release_constraint()
PartialVariableAssignmentDefaultTypeInternal _PartialVariableAssignment_default_instance_
void set_objective_value(double value)
static const int kNameFieldNumber
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void add_var_index(::google::protobuf::int32 value)
void Swap(MPModelRequest *other)
bool has_upper_bound() const
optional double upper_bound = 3 [default = inf];
double objective_coefficient() const
const ::google::protobuf::RepeatedField< double > & var_value() const
void CopyFrom(const ::google::protobuf::Message &from) final
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void set_name(const ::std::string &value)
::google::protobuf::Metadata GetMetadata() const final
const ::std::string & MPSolverCommonParameters_LPAlgorithmValues_Name(MPSolverCommonParameters_LPAlgorithmValues value)
::std::string * mutable_name()
bool has_var_value() const
optional int32 var_value = 2;
double upper_bound() const
::operations_research::PartialVariableAssignment * mutable_solution_hint()
void set_allocated_indicator_constraint(::operations_research::MPIndicatorConstraint *indicator_constraint)
friend void swap(MPIndicatorConstraint &a, MPIndicatorConstraint &b)
const MPSolverCommonParameters_LPAlgorithmValues MPSolverCommonParameters_LPAlgorithmValues_LPAlgorithmValues_MIN
const int MPSolverCommonParameters_LPAlgorithmValues_LPAlgorithmValues_ARRAYSIZE
bool has_relative_mip_gap() const
accessors ----------------------------------------------------—
const ::std::string & MPModelRequest_SolverType_Name(MPModelRequest_SolverType value)
void Swap(MPConstraintProto *other)
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(::google::protobuf::uint8 *target) const final
void clear_solver_specific_parameters()
void set_name(const ::std::string &value)
::operations_research::MPIndicatorConstraint * release_indicator_constraint()
const ::std::string & MPSolverResponseStatus_Name(MPSolverResponseStatus value)
void set_lower_bound(double value)
void set_maximize(bool value)
double lower_bound() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void clear_enable_internal_solver_output()
bool IsInitialized() const final
bool has_status() const
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
void MergeFrom(const ::google::protobuf::Message &from) final
const ::google::protobuf::RepeatedPtrField< ::operations_research::MPGeneralConstraintProto > & general_constraint() const
void set_solver_specific_parameters(const ::std::string &value)
static const int kVarValueFieldNumber
const ::google::protobuf::EnumDescriptor * MPSolverCommonParameters_LPAlgorithmValues_descriptor()
static const MPVariableProto & default_instance()
bool has_lower_bound() const
optional double lower_bound = 1 [default = -inf];
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const final
::google::protobuf::RepeatedField< double > * mutable_coefficient()
void set_var_value(int index, double value)
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const final
const int MPSolverResponseStatus_ARRAYSIZE
const MPSolverResponseStatus MPSolverResponseStatus_MAX
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) final
void add_var_value(double value)
static const ::google::protobuf::Descriptor * descriptor()
void MergeFrom(const ::google::protobuf::Message &from) final
int reduced_cost_size() const
repeated double reduced_cost = 6 [packed = true];
MPSolutionResponseDefaultTypeInternal _MPSolutionResponse_default_instance_
static const int kUpperBoundFieldNumber
friend void swap(MPVariableProto &a, MPVariableProto &b)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in c...
void set_presolve(::operations_research::OptionalBoolean value)
::operations_research::OptionalDouble * release_dual_tolerance()
void Swap(MPSolutionResponse *other)
bool has_value() const
nested types -------------------------------------------------—
::std::string * mutable_name()
const ::google::protobuf::RepeatedField< double > & coefficient() const
const ::operations_research::MPModelProto & model() const
::operations_research::MPModelRequest_SolverType solver_type() const
void clear_solver_time_limit_seconds()
::google::protobuf::RepeatedField< double > * mutable_dual_value()
::std::string * mutable_name()
void set_upper_bound(double value)
MPSolverCommonParametersDefaultTypeInternal _MPSolverCommonParameters_default_instance_
::std::string * mutable_name()
static const int kLowerBoundFieldNumber
::std::string * mutable_solver_specific_parameters()
size_t ByteSizeLong() const final
int GetCachedSize() const final
void clear_relative_mip_gap()
const int MPModelRequest_SolverType_SolverType_ARRAYSIZE
virtual ~MPGeneralConstraintProto()
bool has_solver_specific_parameters() const
accessors ----------------------------------------------------—
static void InitAsDefaultInstance()
::operations_research::OptionalDouble * release_relative_mip_gap()
bool MPSolverCommonParameters_LPAlgorithmValues_Parse(const ::std::string &name, MPSolverCommonParameters_LPAlgorithmValues *value)
static const ::google::protobuf::Descriptor * descriptor()
const MPModelRequest_SolverType MPModelRequest_SolverType_SolverType_MIN
void set_allocated_model(::operations_research::MPModelProto *model)
static const int kNameFieldNumber
void set_value(double value)
const ::google::protobuf::RepeatedPtrField< ::operations_research::MPVariableProto > & variable() const
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(::google::protobuf::uint8 *target) const final
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const final
int variable_value_size() const
nested types -------------------------------------------------—
::operations_research::MPSolverResponseStatus status() const
::std::string * release_solver_specific_parameters()
void set_variable_value(int index, double value)
void set_name(const ::std::string &value)
::std::string * release_name()
int GetCachedSize() const final
bool has_objective_coefficient() const
optional double objective_coefficient = 3 [default = 0];
void clear_solution_hint()
bool has_objective_offset() const
optional double objective_offset = 2 [default = 0];
const ::std::string & name() const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void clear_objective_coefficient()
::operations_research::MPIndicatorConstraint * mutable_indicator_constraint()
const ::google::protobuf::RepeatedField< ::google::protobuf::int32 > & var_index() const
::std::string * release_name()
double best_objective_bound() const
void set_allocated_name(::std::string *name)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
void clear_primal_tolerance()
const ::google::protobuf::RepeatedField< double > & reduced_cost() const
MPIndicatorConstraint & operator=(const MPIndicatorConstraint &from)
void add_reduced_cost(double value)
void set_allocated_relative_mip_gap(::operations_research::OptionalDouble *relative_mip_gap)
void add_var_index(::google::protobuf::int32 value)
int var_index_size() const
nested types -------------------------------------------------—
void set_enable_internal_solver_output(bool value)
MPGeneralConstraintProto()