Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::ObjectiveProto Class Referencefinal

Detailed Description

Definition at line 1404 of file model.pb.h.

#include <model.pb.h>

Inheritance diagram for operations_research::math_opt::ObjectiveProto:

Classes

class  _Internal

Public Types

enum  : int {
  kNameFieldNumber = 5 , kLinearCoefficientsFieldNumber = 3 , kQuadraticCoefficientsFieldNumber = 4 , kOffsetFieldNumber = 2 ,
  kPriorityFieldNumber = 6 , kMaximizeFieldNumber = 1
}

Public Member Functions

 ObjectiveProto ()
 ~ObjectiveProto () PROTOBUF_FINAL
template<typename = void>
PROTOBUF_CONSTEXPR ObjectiveProto (::google::protobuf::internal::ConstantInitialized)
 ObjectiveProto (const ObjectiveProto &from)
 ObjectiveProto (ObjectiveProto &&from) noexcept
ObjectiveProtooperator= (const ObjectiveProto &from)
ObjectiveProtooperator= (ObjectiveProto &&from) noexcept
const ::google::protobuf::UnknownFieldSet & unknown_fields () const ABSL_ATTRIBUTE_LIFETIME_BOUND
inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL mutable_unknown_fields () ABSL_ATTRIBUTE_LIFETIME_BOUND
void Swap (ObjectiveProto *PROTOBUF_NONNULL other)
void UnsafeArenaSwap (ObjectiveProto *PROTOBUF_NONNULL other)
ObjectiveProto *PROTOBUF_NONNULL New (::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
void CopyFrom (const ObjectiveProto &from)
void MergeFrom (const ObjectiveProto &from)
bool IsInitialized () const
ABSL_ATTRIBUTE_REINITIALIZES void Clear () PROTOBUF_FINAL
::size_t ByteSizeLong () const final
::uint8_t *PROTOBUF_NONNULL _InternalSerialize (::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
int GetCachedSize () const
::google::protobuf::Metadata GetMetadata () const
void clear_name ()
const ::std::string & name () const
template<typename Arg_ = const ::std::string&, typename... Args_>
void set_name (Arg_ &&arg, Args_... args)
::std::string *PROTOBUF_NONNULL mutable_name ()
::std::string *PROTOBUF_NULLABLE release_name ()
void set_allocated_name (::std::string *PROTOBUF_NULLABLE value)
bool has_linear_coefficients () const
void clear_linear_coefficients ()
const ::operations_research::math_opt::SparseDoubleVectorProtolinear_coefficients () const
::operations_research::math_opt::SparseDoubleVectorProto *PROTOBUF_NULLABLE release_linear_coefficients ()
::operations_research::math_opt::SparseDoubleVectorProto *PROTOBUF_NONNULL mutable_linear_coefficients ()
void set_allocated_linear_coefficients (::operations_research::math_opt::SparseDoubleVectorProto *PROTOBUF_NULLABLE value)
void unsafe_arena_set_allocated_linear_coefficients (::operations_research::math_opt::SparseDoubleVectorProto *PROTOBUF_NULLABLE value)
::operations_research::math_opt::SparseDoubleVectorProto *PROTOBUF_NULLABLE unsafe_arena_release_linear_coefficients ()
bool has_quadratic_coefficients () const
void clear_quadratic_coefficients ()
const ::operations_research::math_opt::SparseDoubleMatrixProtoquadratic_coefficients () const
::operations_research::math_opt::SparseDoubleMatrixProto *PROTOBUF_NULLABLE release_quadratic_coefficients ()
::operations_research::math_opt::SparseDoubleMatrixProto *PROTOBUF_NONNULL mutable_quadratic_coefficients ()
void set_allocated_quadratic_coefficients (::operations_research::math_opt::SparseDoubleMatrixProto *PROTOBUF_NULLABLE value)
void unsafe_arena_set_allocated_quadratic_coefficients (::operations_research::math_opt::SparseDoubleMatrixProto *PROTOBUF_NULLABLE value)
::operations_research::math_opt::SparseDoubleMatrixProto *PROTOBUF_NULLABLE unsafe_arena_release_quadratic_coefficients ()
void clear_offset ()
double offset () const
void set_offset (double value)
void clear_priority ()
::int64_t priority () const
void set_priority (::int64_t value)
void clear_maximize ()
bool maximize () const
void set_maximize (bool value)
template<typename>
PROTOBUF_CONSTEXPR ObjectiveProto (::_pbi::ConstantInitialized)
template<typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void set_name (Arg_ &&arg, Args_... args)

Static Public Member Functions

static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor ()
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor ()
static const ::google::protobuf::Reflection *PROTOBUF_NONNULL GetReflection ()
static const ObjectiveProtodefault_instance ()
static constexpr auto InternalGenerateClassData_ ()

Static Public Attributes

static constexpr int kIndexInFileMessages = 1

Friends

class ::google::protobuf::internal::TcParser
class ::google::protobuf::MessageLite
class ::google::protobuf::Arena
template<typename T>
class ::google::protobuf::Arena::InternalHelper
struct ::TableStruct_ortools_2fmath_5fopt_2fmodel_2eproto
void swap (ObjectiveProto &a, ObjectiveProto &b)

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : int
Enumerator
kNameFieldNumber 
kLinearCoefficientsFieldNumber 
kQuadraticCoefficientsFieldNumber 
kOffsetFieldNumber 
kPriorityFieldNumber 
kMaximizeFieldNumber 

Definition at line 1545 of file model.pb.h.

Constructor & Destructor Documentation

◆ ObjectiveProto() [1/5]

operations_research::math_opt::ObjectiveProto::ObjectiveProto ( )
inline

Definition at line 1407 of file model.pb.h.

◆ ~ObjectiveProto()

operations_research::math_opt::ObjectiveProto::~ObjectiveProto ( )

Definition at line 1208 of file model.pb.cc.

◆ ObjectiveProto() [2/5]

template<typename = void>
PROTOBUF_CONSTEXPR operations_research::math_opt::ObjectiveProto::ObjectiveProto ( ::google::protobuf::internal::ConstantInitialized )
explicit

◆ ObjectiveProto() [3/5]

operations_research::math_opt::ObjectiveProto::ObjectiveProto ( const ObjectiveProto & from)
inline

Definition at line 1420 of file model.pb.h.

◆ ObjectiveProto() [4/5]

operations_research::math_opt::ObjectiveProto::ObjectiveProto ( ObjectiveProto && from)
inlinenoexcept

Definition at line 1421 of file model.pb.h.

◆ ObjectiveProto() [5/5]

template<typename>
PROTOBUF_CONSTEXPR operations_research::math_opt::ObjectiveProto::ObjectiveProto ( ::_pbi::ConstantInitialized )

Definition at line 191 of file model.pb.cc.

Member Function Documentation

◆ _InternalSerialize()

uint8_t *PROTOBUF_NONNULL operations_research::math_opt::ObjectiveProto::_InternalSerialize ( ::uint8_t *PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream ) const
final

Definition at line 1375 of file model.pb.cc.

◆ ByteSizeLong()

size_t operations_research::math_opt::ObjectiveProto::ByteSizeLong ( ) const
final

Definition at line 1452 of file model.pb.cc.

◆ Clear()

PROTOBUF_NOINLINE void operations_research::math_opt::ObjectiveProto::Clear ( )

Definition at line 1339 of file model.pb.cc.

◆ clear_linear_coefficients()

void operations_research::math_opt::ObjectiveProto::clear_linear_coefficients ( )

Definition at line 1134 of file model.pb.cc.

◆ clear_maximize()

void operations_research::math_opt::ObjectiveProto::clear_maximize ( )
inline

Definition at line 2851 of file model.pb.h.

◆ clear_name()

void operations_research::math_opt::ObjectiveProto::clear_name ( )
inline

Definition at line 3087 of file model.pb.h.

◆ clear_offset()

void operations_research::math_opt::ObjectiveProto::clear_offset ( )
inline

Definition at line 2876 of file model.pb.h.

◆ clear_priority()

void operations_research::math_opt::ObjectiveProto::clear_priority ( )
inline

Definition at line 3152 of file model.pb.h.

◆ clear_quadratic_coefficients()

void operations_research::math_opt::ObjectiveProto::clear_quadratic_coefficients ( )

Definition at line 1140 of file model.pb.cc.

◆ CopyFrom()

void operations_research::math_opt::ObjectiveProto::CopyFrom ( const ObjectiveProto & from)

Definition at line 1568 of file model.pb.cc.

◆ default_instance()

const ObjectiveProto & operations_research::math_opt::ObjectiveProto::default_instance ( )
inlinestatic

Definition at line 1455 of file model.pb.h.

◆ descriptor()

const ::google::protobuf::Descriptor *PROTOBUF_NONNULL operations_research::math_opt::ObjectiveProto::descriptor ( )
inlinestatic

Definition at line 1446 of file model.pb.h.

◆ GetCachedSize()

int operations_research::math_opt::ObjectiveProto::GetCachedSize ( ) const
inline

Definition at line 1514 of file model.pb.h.

◆ GetDescriptor()

const ::google::protobuf::Descriptor *PROTOBUF_NONNULL operations_research::math_opt::ObjectiveProto::GetDescriptor ( )
inlinestatic

Definition at line 1449 of file model.pb.h.

◆ GetMetadata()

google::protobuf::Metadata operations_research::math_opt::ObjectiveProto::GetMetadata ( ) const

Definition at line 1591 of file model.pb.cc.

◆ GetReflection()

const ::google::protobuf::Reflection *PROTOBUF_NONNULL operations_research::math_opt::ObjectiveProto::GetReflection ( )
inlinestatic

Definition at line 1452 of file model.pb.h.

◆ has_linear_coefficients()

bool operations_research::math_opt::ObjectiveProto::has_linear_coefficients ( ) const
inline

Definition at line 2901 of file model.pb.h.

◆ has_quadratic_coefficients()

bool operations_research::math_opt::ObjectiveProto::has_quadratic_coefficients ( ) const
inline

Definition at line 2994 of file model.pb.h.

◆ InternalGenerateClassData_()

auto operations_research::math_opt::ObjectiveProto::InternalGenerateClassData_ ( )
staticconstexpr

Definition at line 1234 of file model.pb.cc.

◆ IsInitialized()

bool operations_research::math_opt::ObjectiveProto::IsInitialized ( ) const
inline

Definition at line 1490 of file model.pb.h.

◆ linear_coefficients()

const::operations_research::math_opt::SparseDoubleVectorProto & operations_research::math_opt::ObjectiveProto::linear_coefficients ( ) const
inline

Definition at line 2911 of file model.pb.h.

◆ maximize()

bool operations_research::math_opt::ObjectiveProto::maximize ( ) const
inline

Definition at line 2857 of file model.pb.h.

◆ MergeFrom()

void operations_research::math_opt::ObjectiveProto::MergeFrom ( const ObjectiveProto & from)
inline

Definition at line 1483 of file model.pb.h.

◆ mutable_linear_coefficients()

operations_research::math_opt::SparseDoubleVectorProto *PROTOBUF_NONNULL operations_research::math_opt::ObjectiveProto::mutable_linear_coefficients ( )
inline

Definition at line 2965 of file model.pb.h.

◆ mutable_name()

std::string *PROTOBUF_NONNULL operations_research::math_opt::ObjectiveProto::mutable_name ( )
inline

Definition at line 3105 of file model.pb.h.

◆ mutable_quadratic_coefficients()

operations_research::math_opt::SparseDoubleMatrixProto *PROTOBUF_NONNULL operations_research::math_opt::ObjectiveProto::mutable_quadratic_coefficients ( )
inline

Definition at line 3058 of file model.pb.h.

◆ mutable_unknown_fields()

inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL operations_research::math_opt::ObjectiveProto::mutable_unknown_fields ( )
inline

Definition at line 1441 of file model.pb.h.

◆ name()

const::std::string & operations_research::math_opt::ObjectiveProto::name ( ) const
inline

Definition at line 3093 of file model.pb.h.

◆ New()

ObjectiveProto *PROTOBUF_NONNULL operations_research::math_opt::ObjectiveProto::New ( ::google::protobuf::Arena *PROTOBUF_NULLABLE arena = nullptr) const
inline

Definition at line 1477 of file model.pb.h.

◆ offset()

double operations_research::math_opt::ObjectiveProto::offset ( ) const
inline

Definition at line 2882 of file model.pb.h.

◆ operator=() [1/2]

ObjectiveProto & operations_research::math_opt::ObjectiveProto::operator= ( const ObjectiveProto & from)
inline

Definition at line 1423 of file model.pb.h.

◆ operator=() [2/2]

ObjectiveProto & operations_research::math_opt::ObjectiveProto::operator= ( ObjectiveProto && from)
inlinenoexcept

Definition at line 1427 of file model.pb.h.

◆ priority()

int64_t operations_research::math_opt::ObjectiveProto::priority ( ) const
inline

Definition at line 3158 of file model.pb.h.

◆ quadratic_coefficients()

const::operations_research::math_opt::SparseDoubleMatrixProto & operations_research::math_opt::ObjectiveProto::quadratic_coefficients ( ) const
inline

Definition at line 3004 of file model.pb.h.

◆ release_linear_coefficients()

operations_research::math_opt::SparseDoubleVectorProto *PROTOBUF_NULLABLE operations_research::math_opt::ObjectiveProto::release_linear_coefficients ( )
inlinenodiscard

Definition at line 2929 of file model.pb.h.

◆ release_name()

std::string *PROTOBUF_NULLABLE operations_research::math_opt::ObjectiveProto::release_name ( )
inlinenodiscard

Definition at line 3124 of file model.pb.h.

◆ release_quadratic_coefficients()

operations_research::math_opt::SparseDoubleMatrixProto *PROTOBUF_NULLABLE operations_research::math_opt::ObjectiveProto::release_quadratic_coefficients ( )
inlinenodiscard

Definition at line 3022 of file model.pb.h.

◆ set_allocated_linear_coefficients()

void operations_research::math_opt::ObjectiveProto::set_allocated_linear_coefficients ( ::operations_research::math_opt::SparseDoubleVectorProto *PROTOBUF_NULLABLE value)
inline

Definition at line 2972 of file model.pb.h.

◆ set_allocated_name()

void operations_research::math_opt::ObjectiveProto::set_allocated_name ( ::std::string *PROTOBUF_NULLABLE value)
inline

Definition at line 3137 of file model.pb.h.

◆ set_allocated_quadratic_coefficients()

void operations_research::math_opt::ObjectiveProto::set_allocated_quadratic_coefficients ( ::operations_research::math_opt::SparseDoubleMatrixProto *PROTOBUF_NULLABLE value)
inline

Definition at line 3065 of file model.pb.h.

◆ set_maximize()

void operations_research::math_opt::ObjectiveProto::set_maximize ( bool value)
inline

Definition at line 2861 of file model.pb.h.

◆ set_name() [1/2]

template<typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void operations_research::math_opt::ObjectiveProto::set_name ( Arg_ && arg,
Args_... args )

Definition at line 3099 of file model.pb.h.

◆ set_name() [2/2]

template<typename Arg_ = const ::std::string&, typename... Args_>
void operations_research::math_opt::ObjectiveProto::set_name ( Arg_ && arg,
Args_... args )

◆ set_offset()

void operations_research::math_opt::ObjectiveProto::set_offset ( double value)
inline

Definition at line 2886 of file model.pb.h.

◆ set_priority()

void operations_research::math_opt::ObjectiveProto::set_priority ( ::int64_t value)
inline

Definition at line 3162 of file model.pb.h.

◆ Swap()

void operations_research::math_opt::ObjectiveProto::Swap ( ObjectiveProto *PROTOBUF_NONNULL other)
inline

Definition at line 1461 of file model.pb.h.

◆ unknown_fields()

const ::google::protobuf::UnknownFieldSet & operations_research::math_opt::ObjectiveProto::unknown_fields ( ) const
inline

Definition at line 1437 of file model.pb.h.

◆ unsafe_arena_release_linear_coefficients()

operations_research::math_opt::SparseDoubleVectorProto *PROTOBUF_NULLABLE operations_research::math_opt::ObjectiveProto::unsafe_arena_release_linear_coefficients ( )
inline

Definition at line 2948 of file model.pb.h.

◆ unsafe_arena_release_quadratic_coefficients()

operations_research::math_opt::SparseDoubleMatrixProto *PROTOBUF_NULLABLE operations_research::math_opt::ObjectiveProto::unsafe_arena_release_quadratic_coefficients ( )
inline

Definition at line 3041 of file model.pb.h.

◆ unsafe_arena_set_allocated_linear_coefficients()

void operations_research::math_opt::ObjectiveProto::unsafe_arena_set_allocated_linear_coefficients ( ::operations_research::math_opt::SparseDoubleVectorProto *PROTOBUF_NULLABLE value)
inline

Definition at line 2915 of file model.pb.h.

◆ unsafe_arena_set_allocated_quadratic_coefficients()

void operations_research::math_opt::ObjectiveProto::unsafe_arena_set_allocated_quadratic_coefficients ( ::operations_research::math_opt::SparseDoubleMatrixProto *PROTOBUF_NULLABLE value)
inline

Definition at line 3008 of file model.pb.h.

◆ UnsafeArenaSwap()

void operations_research::math_opt::ObjectiveProto::UnsafeArenaSwap ( ObjectiveProto *PROTOBUF_NONNULL other)
inline

Definition at line 1469 of file model.pb.h.

◆ ::google::protobuf::Arena

friend class ::google::protobuf::Arena
friend

Definition at line 1638 of file model.pb.h.

◆ ::google::protobuf::Arena::InternalHelper

template<typename T>
friend class ::google::protobuf::Arena::InternalHelper
friend

Definition at line 1640 of file model.pb.h.

◆ ::google::protobuf::internal::TcParser

friend class ::google::protobuf::internal::TcParser
friend

Definition at line 1631 of file model.pb.h.

◆ ::google::protobuf::MessageLite

friend class ::google::protobuf::MessageLite
friend

Definition at line 1637 of file model.pb.h.

◆ ::TableStruct_ortools_2fmath_5fopt_2fmodel_2eproto

friend struct ::TableStruct_ortools_2fmath_5fopt_2fmodel_2eproto
friend

Definition at line 1663 of file model.pb.h.

◆ swap

void swap ( ObjectiveProto & a,
ObjectiveProto & b )
friend

Definition at line 1460 of file model.pb.h.

Member Data Documentation

◆ _impl_

Impl_ operations_research::math_opt::ObjectiveProto::_impl_

Definition at line 1662 of file model.pb.h.

◆ kIndexInFileMessages

int operations_research::math_opt::ObjectiveProto::kIndexInFileMessages = 1
staticconstexpr

Definition at line 1459 of file model.pb.h.


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