C++ Reference

C++ Reference: Linear solver

MPGeneralConstraintProto

Detailed Description

Definition at line 727 of file linear_solver.pb.h.

Public Types

enum  GeneralConstraintCase {
  kIndicatorConstraint = 2, kSosConstraint = 3, kQuadraticConstraint = 4, kAbsConstraint = 5,
  kAndConstraint = 6, kOrConstraint = 7, kMinConstraint = 8, kMaxConstraint = 9,
  GENERAL_CONSTRAINT_NOT_SET = 0
}
 
enum  : int {
  kNameFieldNumber = 1, kIndicatorConstraintFieldNumber = 2, kSosConstraintFieldNumber = 3, kQuadraticConstraintFieldNumber = 4,
  kAbsConstraintFieldNumber = 5, kAndConstraintFieldNumber = 6, kOrConstraintFieldNumber = 7, kMinConstraintFieldNumber = 8,
  kMaxConstraintFieldNumber = 9
}
 

Public Member Functions

 MPGeneralConstraintProto ()
 
virtual ~MPGeneralConstraintProto ()
 
 MPGeneralConstraintProto (const MPGeneralConstraintProto &from)
 
 MPGeneralConstraintProto (MPGeneralConstraintProto &&from) noexcept
 
MPGeneralConstraintProtooperator= (const MPGeneralConstraintProto &from)
 
MPGeneralConstraintProtooperator= (MPGeneralConstraintProto &&from) noexcept
 
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields () const
 
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields ()
 
void Swap (MPGeneralConstraintProto *other)
 
MPGeneralConstraintProtoNew () const final
 
MPGeneralConstraintProtoNew (::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
 
void CopyFrom (const ::PROTOBUF_NAMESPACE_ID::Message &from) final
 
void MergeFrom (const ::PROTOBUF_NAMESPACE_ID::Message &from) final
 
void CopyFrom (const MPGeneralConstraintProto &from)
 
void MergeFrom (const MPGeneralConstraintProto &from)
 
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear () final
 
bool IsInitialized () const final
 
size_t ByteSizeLong () const final
 
const char * _InternalParse (const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
 
::PROTOBUF_NAMESPACE_ID::uint8 * _InternalSerialize (::PROTOBUF_NAMESPACE_ID::uint8 *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
 
int GetCachedSize () const final
 
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata () const final
 
bool has_name () const
 
void clear_name ()
 
const std::string & name () const
 
void set_name (const std::string &value)
 
void set_name (std::string &&value)
 
void set_name (const char *value)
 
void set_name (const char *value, size_t size)
 
std::string * mutable_name ()
 
std::string * release_name ()
 
void set_allocated_name (std::string *name)
 
bool has_indicator_constraint () const
 
void clear_indicator_constraint ()
 
const ::operations_research::MPIndicatorConstraintindicator_constraint () const
 
::operations_research::MPIndicatorConstraintrelease_indicator_constraint ()
 
::operations_research::MPIndicatorConstraintmutable_indicator_constraint ()
 
void set_allocated_indicator_constraint (::operations_research::MPIndicatorConstraint *indicator_constraint)
 
bool has_sos_constraint () const
 
void clear_sos_constraint ()
 
const ::operations_research::MPSosConstraintsos_constraint () const
 
::operations_research::MPSosConstraintrelease_sos_constraint ()
 
::operations_research::MPSosConstraintmutable_sos_constraint ()
 
void set_allocated_sos_constraint (::operations_research::MPSosConstraint *sos_constraint)
 
bool has_quadratic_constraint () const
 
void clear_quadratic_constraint ()
 
const ::operations_research::MPQuadraticConstraintquadratic_constraint () const
 
::operations_research::MPQuadraticConstraintrelease_quadratic_constraint ()
 
::operations_research::MPQuadraticConstraintmutable_quadratic_constraint ()
 
void set_allocated_quadratic_constraint (::operations_research::MPQuadraticConstraint *quadratic_constraint)
 
bool has_abs_constraint () const
 
void clear_abs_constraint ()
 
const ::operations_research::MPAbsConstraintabs_constraint () const
 
::operations_research::MPAbsConstraintrelease_abs_constraint ()
 
::operations_research::MPAbsConstraintmutable_abs_constraint ()
 
void set_allocated_abs_constraint (::operations_research::MPAbsConstraint *abs_constraint)
 
bool has_and_constraint () const
 
void clear_and_constraint ()
 
const ::operations_research::MPArrayConstraintand_constraint () const
 
::operations_research::MPArrayConstraintrelease_and_constraint ()
 
::operations_research::MPArrayConstraintmutable_and_constraint ()
 
void set_allocated_and_constraint (::operations_research::MPArrayConstraint *and_constraint)
 
bool has_or_constraint () const
 
void clear_or_constraint ()
 
const ::operations_research::MPArrayConstraintor_constraint () const
 
::operations_research::MPArrayConstraintrelease_or_constraint ()
 
::operations_research::MPArrayConstraintmutable_or_constraint ()
 
void set_allocated_or_constraint (::operations_research::MPArrayConstraint *or_constraint)
 
bool has_min_constraint () const
 
void clear_min_constraint ()
 
const ::operations_research::MPArrayWithConstantConstraintmin_constraint () const
 
::operations_research::MPArrayWithConstantConstraintrelease_min_constraint ()
 
::operations_research::MPArrayWithConstantConstraintmutable_min_constraint ()
 
void set_allocated_min_constraint (::operations_research::MPArrayWithConstantConstraint *min_constraint)
 
bool has_max_constraint () const
 
void clear_max_constraint ()
 
const ::operations_research::MPArrayWithConstantConstraintmax_constraint () const
 
::operations_research::MPArrayWithConstantConstraintrelease_max_constraint ()
 
::operations_research::MPArrayWithConstantConstraintmutable_max_constraint ()
 
void set_allocated_max_constraint (::operations_research::MPArrayWithConstantConstraint *max_constraint)
 
void clear_general_constraint ()
 
GeneralConstraintCase general_constraint_case () const
 

Static Public Member Functions

static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor ()
 
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor ()
 
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection ()
 
static const MPGeneralConstraintProtodefault_instance ()
 
static void InitAsDefaultInstance ()
 
static const MPGeneralConstraintProtointernal_default_instance ()
 

Static Public Attributes

static constexpr int kIndexInFileMessages
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : int
Enumerator
kNameFieldNumber 
kIndicatorConstraintFieldNumber 
kSosConstraintFieldNumber 
kQuadraticConstraintFieldNumber 
kAbsConstraintFieldNumber 
kAndConstraintFieldNumber 
kOrConstraintFieldNumber 
kMinConstraintFieldNumber 
kMaxConstraintFieldNumber 

Definition at line 851 of file linear_solver.pb.h.

◆ GeneralConstraintCase

Enumerator
kIndicatorConstraint 
kSosConstraint 
kQuadraticConstraint 
kAbsConstraint 
kAndConstraint 
kOrConstraint 
kMinConstraint 
kMaxConstraint 
GENERAL_CONSTRAINT_NOT_SET 

Definition at line 770 of file linear_solver.pb.h.

Constructor & Destructor Documentation

◆ MPGeneralConstraintProto() [1/3]

◆ ~MPGeneralConstraintProto()

virtual ~MPGeneralConstraintProto ( )
virtual

◆ MPGeneralConstraintProto() [2/3]

◆ MPGeneralConstraintProto() [3/3]

Definition at line 734 of file linear_solver.pb.h.

Member Function Documentation

◆ _InternalParse()

const char* _InternalParse ( const char *  ptr,
::PROTOBUF_NAMESPACE_ID::internal::ParseContext *  ctx 
)
final

◆ _InternalSerialize()

::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize ( ::PROTOBUF_NAMESPACE_ID::uint8 *  target,
::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *  stream 
) const
final

◆ abs_constraint()

const ::operations_research::MPAbsConstraint & abs_constraint ( ) const
inline

Definition at line 4776 of file linear_solver.pb.h.

◆ and_constraint()

const ::operations_research::MPArrayConstraint & and_constraint ( ) const
inline

Definition at line 4826 of file linear_solver.pb.h.

◆ ByteSizeLong()

size_t ByteSizeLong ( ) const
final

◆ Clear()

PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear ( )
final

◆ clear_abs_constraint()

void clear_abs_constraint ( )
inline

Definition at line 4754 of file linear_solver.pb.h.

◆ clear_and_constraint()

void clear_and_constraint ( )
inline

Definition at line 4804 of file linear_solver.pb.h.

◆ clear_general_constraint()

void clear_general_constraint ( )

◆ clear_indicator_constraint()

void clear_indicator_constraint ( )
inline

Definition at line 4604 of file linear_solver.pb.h.

◆ clear_max_constraint()

void clear_max_constraint ( )
inline

Definition at line 4954 of file linear_solver.pb.h.

◆ clear_min_constraint()

void clear_min_constraint ( )
inline

Definition at line 4904 of file linear_solver.pb.h.

◆ clear_name()

void clear_name ( )
inline

Definition at line 4531 of file linear_solver.pb.h.

◆ clear_or_constraint()

void clear_or_constraint ( )
inline

Definition at line 4854 of file linear_solver.pb.h.

◆ clear_quadratic_constraint()

void clear_quadratic_constraint ( )
inline

Definition at line 4704 of file linear_solver.pb.h.

◆ clear_sos_constraint()

void clear_sos_constraint ( )
inline

Definition at line 4654 of file linear_solver.pb.h.

◆ CopyFrom() [1/2]

void CopyFrom ( const ::PROTOBUF_NAMESPACE_ID::Message &  from)
final

◆ CopyFrom() [2/2]

void CopyFrom ( const MPGeneralConstraintProto from)

◆ default_instance()

static const MPGeneralConstraintProto& default_instance ( )
static

◆ descriptor()

static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor ( )
inlinestatic

Definition at line 759 of file linear_solver.pb.h.

◆ general_constraint_case()

MPGeneralConstraintProto::GeneralConstraintCase general_constraint_case ( ) const
inline

Definition at line 5000 of file linear_solver.pb.h.

◆ GetCachedSize()

int GetCachedSize ( ) const
inlinefinal

Definition at line 818 of file linear_solver.pb.h.

◆ GetDescriptor()

static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor ( )
inlinestatic

Definition at line 762 of file linear_solver.pb.h.

◆ GetMetadata()

::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata ( ) const
final

◆ GetReflection()

static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection ( )
inlinestatic

Definition at line 765 of file linear_solver.pb.h.

◆ has_abs_constraint()

bool has_abs_constraint ( ) const
inline

Definition at line 4748 of file linear_solver.pb.h.

◆ has_and_constraint()

bool has_and_constraint ( ) const
inline

Definition at line 4798 of file linear_solver.pb.h.

◆ has_indicator_constraint()

bool has_indicator_constraint ( ) const
inline

Definition at line 4598 of file linear_solver.pb.h.

◆ has_max_constraint()

bool has_max_constraint ( ) const
inline

Definition at line 4948 of file linear_solver.pb.h.

◆ has_min_constraint()

bool has_min_constraint ( ) const
inline

Definition at line 4898 of file linear_solver.pb.h.

◆ has_name()

bool has_name ( ) const
inline

Definition at line 4528 of file linear_solver.pb.h.

◆ has_or_constraint()

bool has_or_constraint ( ) const
inline

Definition at line 4848 of file linear_solver.pb.h.

◆ has_quadratic_constraint()

bool has_quadratic_constraint ( ) const
inline

Definition at line 4698 of file linear_solver.pb.h.

◆ has_sos_constraint()

bool has_sos_constraint ( ) const
inline

Definition at line 4648 of file linear_solver.pb.h.

◆ indicator_constraint()

const ::operations_research::MPIndicatorConstraint & indicator_constraint ( ) const
inline

Definition at line 4626 of file linear_solver.pb.h.

◆ InitAsDefaultInstance()

static void InitAsDefaultInstance ( )
static

◆ internal_default_instance()

static const MPGeneralConstraintProto* internal_default_instance ( )
inlinestatic

Definition at line 783 of file linear_solver.pb.h.

◆ IsInitialized()

bool IsInitialized ( ) const
final

◆ max_constraint()

const ::operations_research::MPArrayWithConstantConstraint & max_constraint ( ) const
inline

Definition at line 4976 of file linear_solver.pb.h.

◆ MergeFrom() [1/2]

void MergeFrom ( const ::PROTOBUF_NAMESPACE_ID::Message &  from)
final

◆ MergeFrom() [2/2]

void MergeFrom ( const MPGeneralConstraintProto from)

◆ min_constraint()

const ::operations_research::MPArrayWithConstantConstraint & min_constraint ( ) const
inline

Definition at line 4926 of file linear_solver.pb.h.

◆ mutable_abs_constraint()

operations_research::MPAbsConstraint * mutable_abs_constraint ( )
inline

Definition at line 4789 of file linear_solver.pb.h.

◆ mutable_and_constraint()

operations_research::MPArrayConstraint * mutable_and_constraint ( )
inline

Definition at line 4839 of file linear_solver.pb.h.

◆ mutable_indicator_constraint()

operations_research::MPIndicatorConstraint * mutable_indicator_constraint ( )
inline

Definition at line 4639 of file linear_solver.pb.h.

◆ mutable_max_constraint()

operations_research::MPArrayWithConstantConstraint * mutable_max_constraint ( )
inline

Definition at line 4989 of file linear_solver.pb.h.

◆ mutable_min_constraint()

operations_research::MPArrayWithConstantConstraint * mutable_min_constraint ( )
inline

Definition at line 4939 of file linear_solver.pb.h.

◆ mutable_name()

std::string * mutable_name ( )
inline

Definition at line 4543 of file linear_solver.pb.h.

◆ mutable_or_constraint()

operations_research::MPArrayConstraint * mutable_or_constraint ( )
inline

Definition at line 4889 of file linear_solver.pb.h.

◆ mutable_quadratic_constraint()

operations_research::MPQuadraticConstraint * mutable_quadratic_constraint ( )
inline

Definition at line 4739 of file linear_solver.pb.h.

◆ mutable_sos_constraint()

operations_research::MPSosConstraint * mutable_sos_constraint ( )
inline

Definition at line 4689 of file linear_solver.pb.h.

◆ mutable_unknown_fields()

inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields ( )
inline

Definition at line 755 of file linear_solver.pb.h.

◆ name()

const std::string & name ( ) const
inline

Definition at line 4535 of file linear_solver.pb.h.

◆ New() [1/2]

MPGeneralConstraintProto* New ( ) const
inlinefinal

Definition at line 800 of file linear_solver.pb.h.

◆ New() [2/2]

MPGeneralConstraintProto* New ( ::PROTOBUF_NAMESPACE_ID::Arena *  arena) const
inlinefinal

Definition at line 804 of file linear_solver.pb.h.

◆ operator=() [1/2]

MPGeneralConstraintProto& operator= ( const MPGeneralConstraintProto from)
inline

Definition at line 739 of file linear_solver.pb.h.

◆ operator=() [2/2]

MPGeneralConstraintProto& operator= ( MPGeneralConstraintProto &&  from)
inlinenoexcept

Definition at line 743 of file linear_solver.pb.h.

◆ or_constraint()

const ::operations_research::MPArrayConstraint & or_constraint ( ) const
inline

Definition at line 4876 of file linear_solver.pb.h.

◆ quadratic_constraint()

const ::operations_research::MPQuadraticConstraint & quadratic_constraint ( ) const
inline

Definition at line 4726 of file linear_solver.pb.h.

◆ release_abs_constraint()

operations_research::MPAbsConstraint * release_abs_constraint ( )
inline

Definition at line 4760 of file linear_solver.pb.h.

◆ release_and_constraint()

operations_research::MPArrayConstraint * release_and_constraint ( )
inline

Definition at line 4810 of file linear_solver.pb.h.

◆ release_indicator_constraint()

operations_research::MPIndicatorConstraint * release_indicator_constraint ( )
inline

Definition at line 4610 of file linear_solver.pb.h.

◆ release_max_constraint()

operations_research::MPArrayWithConstantConstraint * release_max_constraint ( )
inline

Definition at line 4960 of file linear_solver.pb.h.

◆ release_min_constraint()

operations_research::MPArrayWithConstantConstraint * release_min_constraint ( )
inline

Definition at line 4910 of file linear_solver.pb.h.

◆ release_name()

std::string * release_name ( )
inline

Definition at line 4576 of file linear_solver.pb.h.

◆ release_or_constraint()

operations_research::MPArrayConstraint * release_or_constraint ( )
inline

Definition at line 4860 of file linear_solver.pb.h.

◆ release_quadratic_constraint()

operations_research::MPQuadraticConstraint * release_quadratic_constraint ( )
inline

Definition at line 4710 of file linear_solver.pb.h.

◆ release_sos_constraint()

operations_research::MPSosConstraint * release_sos_constraint ( )
inline

Definition at line 4660 of file linear_solver.pb.h.

◆ set_allocated_abs_constraint()

void set_allocated_abs_constraint ( ::operations_research::MPAbsConstraint abs_constraint)

◆ set_allocated_and_constraint()

void set_allocated_and_constraint ( ::operations_research::MPArrayConstraint and_constraint)

◆ set_allocated_indicator_constraint()

void set_allocated_indicator_constraint ( ::operations_research::MPIndicatorConstraint indicator_constraint)

◆ set_allocated_max_constraint()

void set_allocated_max_constraint ( ::operations_research::MPArrayWithConstantConstraint max_constraint)

◆ set_allocated_min_constraint()

void set_allocated_min_constraint ( ::operations_research::MPArrayWithConstantConstraint min_constraint)

◆ set_allocated_name()

void set_allocated_name ( std::string *  name)
inline

Definition at line 4584 of file linear_solver.pb.h.

◆ set_allocated_or_constraint()

void set_allocated_or_constraint ( ::operations_research::MPArrayConstraint or_constraint)

◆ set_allocated_quadratic_constraint()

void set_allocated_quadratic_constraint ( ::operations_research::MPQuadraticConstraint quadratic_constraint)

◆ set_allocated_sos_constraint()

void set_allocated_sos_constraint ( ::operations_research::MPSosConstraint sos_constraint)

◆ set_name() [1/4]

void set_name ( const char *  value)
inline

Definition at line 4560 of file linear_solver.pb.h.

◆ set_name() [2/4]

void set_name ( const char *  value,
size_t  size 
)
inline

Definition at line 4566 of file linear_solver.pb.h.

◆ set_name() [3/4]

void set_name ( const std::string &  value)
inline

Definition at line 4539 of file linear_solver.pb.h.

◆ set_name() [4/4]

void set_name ( std::string &&  value)
inline

Definition at line 4554 of file linear_solver.pb.h.

◆ sos_constraint()

const ::operations_research::MPSosConstraint & sos_constraint ( ) const
inline

Definition at line 4676 of file linear_solver.pb.h.

◆ Swap()

void Swap ( MPGeneralConstraintProto other)
inline

Definition at line 793 of file linear_solver.pb.h.

◆ unknown_fields()

const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields ( ) const
inline

Definition at line 752 of file linear_solver.pb.h.

Member Data Documentation

◆ kIndexInFileMessages

constexpr int kIndexInFileMessages
staticconstexpr
Initial value:
=
2

Definition at line 787 of file linear_solver.pb.h.


The documentation for this class was generated from the following file: