Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::bop::LinearObjective Class Referencefinal

Detailed Description

Definition at line 90 of file boolean_problem.pb.h.

#include <boolean_problem.pb.h>

Inheritance diagram for operations_research::bop::LinearObjective:

Classes

class  _Internal

Public Types

enum  : int { kLiteralsFieldNumber = 1 , kCoefficientsFieldNumber = 2 , kOffsetFieldNumber = 3 , kScalingFactorFieldNumber = 4 }
 nested types -------------------------------------------------— More...

Public Member Functions

 LinearObjective ()
template<typename = void>
PROTOBUF_CONSTEXPR LinearObjective (::google::protobuf::internal::ConstantInitialized)
 LinearObjective (const LinearObjective &from)
 LinearObjective (LinearObjective &&from) noexcept
template<typename>
PROTOBUF_CONSTEXPR LinearObjective (::_pbi::ConstantInitialized)
 ~LinearObjective () PROTOBUF_FINAL
LinearObjectiveoperator= (const LinearObjective &from)
LinearObjectiveoperator= (LinearObjective &&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 (LinearObjective *PROTOBUF_NONNULL other)
void UnsafeArenaSwap (LinearObjective *PROTOBUF_NONNULL other)
LinearObjective *PROTOBUF_NONNULL New (::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
 implements Message -------------------------------------------—
void CopyFrom (const LinearObjective &from)
void MergeFrom (const LinearObjective &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
int literals_size () const
 repeated int32 literals = 1;
void clear_literals ()
::int32_t literals (int index) const
const ::google::protobuf::RepeatedField<::int32_t > & literals () const
void set_literals (int index, ::int32_t value)
void add_literals (::int32_t value)
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_literals ()
int coefficients_size () const
 repeated int64 coefficients = 2;
void clear_coefficients ()
::int64_t coefficients (int index) const
const ::google::protobuf::RepeatedField<::int64_t > & coefficients () const
void set_coefficients (int index, ::int64_t value)
void add_coefficients (::int64_t value)
::google::protobuf::RepeatedField<::int64_t > *PROTOBUF_NONNULL mutable_coefficients ()
bool has_offset () const
 optional double offset = 3 [default = 0];
void clear_offset ()
double offset () const
void set_offset (double value)
bool has_scaling_factor () const
 optional double scaling_factor = 4 [default = 1];
void clear_scaling_factor ()
double scaling_factor () const
void set_scaling_factor (double value)

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 LinearObjectivedefault_instance ()
static constexpr auto InternalGenerateClassData_ ()

Static Public Attributes

static constexpr int kIndexInFileMessages = 1

Protected Member Functions

 LinearObjective (::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
 LinearObjective (::google::protobuf::Arena *PROTOBUF_NULLABLE arena, const LinearObjective &from)
 LinearObjective (::google::protobuf::Arena *PROTOBUF_NULLABLE arena, LinearObjective &&from) noexcept
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData () const PROTOBUF_FINAL

Static Protected Member Functions

static void *PROTOBUF_NONNULL PlacementNew_ (const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
static constexpr auto InternalNewImpl_ ()

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_2fsat_2fboolean_5fproblem_2eproto
void swap (LinearObjective &a, LinearObjective &b)

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : int

nested types -------------------------------------------------—

accessors ----------------------------------------------------—

Enumerator
kLiteralsFieldNumber 
kCoefficientsFieldNumber 
kOffsetFieldNumber 
kScalingFactorFieldNumber 

Definition at line 232 of file boolean_problem.pb.h.

Constructor & Destructor Documentation

◆ LinearObjective() [1/8]

operations_research::sat::LinearObjective::LinearObjective ( )
inline

Definition at line 93 of file boolean_problem.pb.h.

◆ LinearObjective() [2/8]

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

◆ LinearObjective() [3/8]

operations_research::sat::LinearObjective::LinearObjective ( const LinearObjective & from)
inline

Definition at line 106 of file boolean_problem.pb.h.

◆ LinearObjective() [4/8]

operations_research::sat::LinearObjective::LinearObjective ( LinearObjective && from)
inlinenoexcept

Definition at line 107 of file boolean_problem.pb.h.

◆ LinearObjective() [5/8]

operations_research::sat::LinearObjective::LinearObjective ( ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
explicitprotected

@protoc_insertion_point(arena_constructor:operations_research.sat.LinearObjective)

Definition at line 660 of file boolean_problem.pb.cc.

◆ LinearObjective() [6/8]

operations_research::sat::LinearObjective::LinearObjective ( ::google::protobuf::Arena *PROTOBUF_NULLABLE arena,
const LinearObjective & from )
protected

@protoc_insertion_point(copy_constructor:operations_research.sat.LinearObjective)

Definition at line 678 of file boolean_problem.pb.cc.

◆ LinearObjective() [7/8]

operations_research::sat::LinearObjective::LinearObjective ( ::google::protobuf::Arena *PROTOBUF_NULLABLE arena,
LinearObjective && from )
inlineprotectednoexcept

Definition at line 214 of file boolean_problem.pb.h.

◆ LinearObjective() [8/8]

template<typename>
PROTOBUF_CONSTEXPR operations_research::sat::LinearObjective::LinearObjective ( ::_pbi::ConstantInitialized )

Definition at line 39 of file boolean_problem.pb.cc.

◆ ~LinearObjective()

operations_research::sat::LinearObjective::~LinearObjective ( )

@protoc_insertion_point(destructor:operations_research.sat.LinearObjective)

Definition at line 713 of file boolean_problem.pb.cc.

Member Function Documentation

◆ _InternalSerialize()

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

@protoc_insertion_point(serialize_to_array_start:operations_research.sat.LinearObjective)

repeated int32 literals = 1;

repeated int64 coefficients = 2;

optional double offset = 3 [default = 0];

optional double scaling_factor = 4 [default = 1];

@protoc_insertion_point(serialize_to_array_end:operations_research.sat.LinearObjective)

Definition at line 858 of file boolean_problem.pb.cc.

◆ add_coefficients()

void operations_research::sat::LinearObjective::add_coefficients ( ::int64_t value)
inline

@protoc_insertion_point(field_add:operations_research.sat.LinearObjective.coefficients)

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

◆ add_literals()

void operations_research::sat::LinearObjective::add_literals ( ::int32_t value)
inline

@protoc_insertion_point(field_add:operations_research.sat.LinearObjective.literals)

Definition at line 1358 of file boolean_problem.pb.h.

◆ ByteSizeLong()

size_t operations_research::sat::LinearObjective::ByteSizeLong ( ) const
final

@protoc_insertion_point(message_byte_size_start:operations_research.sat.LinearObjective)

Prevent compiler warnings about cached_has_bits being unused

repeated int32 literals = 1;

repeated int64 coefficients = 2;

Definition at line 909 of file boolean_problem.pb.cc.

◆ Clear()

PROTOBUF_NOINLINE void operations_research::sat::LinearObjective::Clear ( )

@protoc_insertion_point(message_clear_start:operations_research.sat.LinearObjective)

Prevent compiler warnings about cached_has_bits being unused

Definition at line 834 of file boolean_problem.pb.cc.

◆ clear_coefficients()

void operations_research::sat::LinearObjective::clear_coefficients ( )
inline

Definition at line 1392 of file boolean_problem.pb.h.

◆ clear_literals()

void operations_research::sat::LinearObjective::clear_literals ( )
inline

Definition at line 1346 of file boolean_problem.pb.h.

◆ clear_offset()

void operations_research::sat::LinearObjective::clear_offset ( )
inline

Definition at line 1436 of file boolean_problem.pb.h.

◆ clear_scaling_factor()

void operations_research::sat::LinearObjective::clear_scaling_factor ( )
inline

Definition at line 1464 of file boolean_problem.pb.h.

◆ coefficients() [1/2]

const::google::protobuf::RepeatedField<::int64_t > & operations_research::sat::LinearObjective::coefficients ( ) const
inline

@protoc_insertion_point(field_list:operations_research.sat.LinearObjective.coefficients)

Definition at line 1409 of file boolean_problem.pb.h.

◆ coefficients() [2/2]

int64_t operations_research::sat::LinearObjective::coefficients ( int index) const
inline

@protoc_insertion_point(field_get:operations_research.sat.LinearObjective.coefficients)

Definition at line 1396 of file boolean_problem.pb.h.

◆ coefficients_size()

int operations_research::sat::LinearObjective::coefficients_size ( ) const
inline

repeated int64 coefficients = 2;

Definition at line 1389 of file boolean_problem.pb.h.

◆ CopyFrom()

void operations_research::sat::LinearObjective::CopyFrom ( const LinearObjective & from)

@protoc_insertion_point(class_specific_copy_from_start:operations_research.sat.LinearObjective)

Definition at line 967 of file boolean_problem.pb.cc.

◆ default_instance()

const LinearObjective & operations_research::sat::LinearObjective::default_instance ( )
inlinestatic

Definition at line 141 of file boolean_problem.pb.h.

◆ descriptor()

const ::google::protobuf::Descriptor *PROTOBUF_NONNULL operations_research::sat::LinearObjective::descriptor ( )
inlinestatic

Definition at line 132 of file boolean_problem.pb.h.

◆ GetCachedSize()

int operations_research::sat::LinearObjective::GetCachedSize ( ) const
inline

Definition at line 200 of file boolean_problem.pb.h.

◆ GetClassData()

PROTOBUF_ATTRIBUTE_WEAKconst::google::protobuf::internal::ClassData *PROTOBUF_NONNULL operations_research::sat::LinearObjective::GetClassData ( ) const
protected

Definition at line 777 of file boolean_problem.pb.cc.

◆ GetDescriptor()

const ::google::protobuf::Descriptor *PROTOBUF_NONNULL operations_research::sat::LinearObjective::GetDescriptor ( )
inlinestatic

Definition at line 135 of file boolean_problem.pb.h.

◆ GetMetadata()

google::protobuf::Metadata operations_research::sat::LinearObjective::GetMetadata ( ) const

Definition at line 989 of file boolean_problem.pb.cc.

◆ GetReflection()

const ::google::protobuf::Reflection *PROTOBUF_NONNULL operations_research::sat::LinearObjective::GetReflection ( )
inlinestatic

Definition at line 138 of file boolean_problem.pb.h.

◆ has_offset()

bool operations_research::sat::LinearObjective::has_offset ( ) const
inline

optional double offset = 3 [default = 0];

Definition at line 1432 of file boolean_problem.pb.h.

◆ has_scaling_factor()

bool operations_research::sat::LinearObjective::has_scaling_factor ( ) const
inline

optional double scaling_factor = 4 [default = 1];

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

◆ InternalGenerateClassData_()

auto operations_research::sat::LinearObjective::InternalGenerateClassData_ ( )
staticconstexpr

Definition at line 749 of file boolean_problem.pb.cc.

◆ InternalNewImpl_()

auto operations_research::sat::LinearObjective::InternalNewImpl_ ( )
staticconstexprprotected

Definition at line 729 of file boolean_problem.pb.cc.

◆ IsInitialized()

bool operations_research::sat::LinearObjective::IsInitialized ( ) const
inline

Definition at line 176 of file boolean_problem.pb.h.

◆ literals() [1/2]

const::google::protobuf::RepeatedField<::int32_t > & operations_research::sat::LinearObjective::literals ( ) const
inline

@protoc_insertion_point(field_list:operations_research.sat.LinearObjective.literals)

Definition at line 1363 of file boolean_problem.pb.h.

◆ literals() [2/2]

int32_t operations_research::sat::LinearObjective::literals ( int index) const
inline

@protoc_insertion_point(field_get:operations_research.sat.LinearObjective.literals)

Definition at line 1350 of file boolean_problem.pb.h.

◆ literals_size()

int operations_research::sat::LinearObjective::literals_size ( ) const
inline

repeated int32 literals = 1;

Definition at line 1343 of file boolean_problem.pb.h.

◆ MergeFrom()

void operations_research::sat::LinearObjective::MergeFrom ( const LinearObjective & from)
inline

Definition at line 169 of file boolean_problem.pb.h.

◆ mutable_coefficients()

google::protobuf::RepeatedField<::int64_t > *PROTOBUF_NONNULL operations_research::sat::LinearObjective::mutable_coefficients ( )
inline

@protoc_insertion_point(field_mutable_list:operations_research.sat.LinearObjective.coefficients)

Definition at line 1414 of file boolean_problem.pb.h.

◆ mutable_literals()

google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL operations_research::sat::LinearObjective::mutable_literals ( )
inline

@protoc_insertion_point(field_mutable_list:operations_research.sat.LinearObjective.literals)

Definition at line 1368 of file boolean_problem.pb.h.

◆ mutable_unknown_fields()

inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL operations_research::sat::LinearObjective::mutable_unknown_fields ( )
inline

Definition at line 127 of file boolean_problem.pb.h.

◆ New()

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

implements Message -------------------------------------------—

Definition at line 163 of file boolean_problem.pb.h.

◆ offset()

double operations_research::sat::LinearObjective::offset ( ) const
inline

@protoc_insertion_point(field_get:operations_research.sat.LinearObjective.offset)

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

◆ operator=() [1/2]

LinearObjective & operations_research::sat::LinearObjective::operator= ( const LinearObjective & from)
inline

Definition at line 109 of file boolean_problem.pb.h.

◆ operator=() [2/2]

LinearObjective & operations_research::sat::LinearObjective::operator= ( LinearObjective && from)
inlinenoexcept

Definition at line 113 of file boolean_problem.pb.h.

◆ PlacementNew_()

void *PROTOBUF_NONNULL operations_research::sat::LinearObjective::PlacementNew_ ( const void * PROTOBUF_NONNULL,
void *PROTOBUF_NONNULL mem,
::google::protobuf::Arena *PROTOBUF_NULLABLE arena )
inlinestaticprotected

Definition at line 724 of file boolean_problem.pb.cc.

◆ scaling_factor()

double operations_research::sat::LinearObjective::scaling_factor ( ) const
inline

@protoc_insertion_point(field_get:operations_research.sat.LinearObjective.scaling_factor)

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

◆ set_coefficients()

void operations_research::sat::LinearObjective::set_coefficients ( int index,
::int64_t value )
inline

@protoc_insertion_point(field_set:operations_research.sat.LinearObjective.coefficients)

Definition at line 1400 of file boolean_problem.pb.h.

◆ set_literals()

void operations_research::sat::LinearObjective::set_literals ( int index,
::int32_t value )
inline

@protoc_insertion_point(field_set:operations_research.sat.LinearObjective.literals)

Definition at line 1354 of file boolean_problem.pb.h.

◆ set_offset()

void operations_research::sat::LinearObjective::set_offset ( double value)
inline

@protoc_insertion_point(field_set:operations_research.sat.LinearObjective.offset)

Definition at line 1445 of file boolean_problem.pb.h.

◆ set_scaling_factor()

void operations_research::sat::LinearObjective::set_scaling_factor ( double value)
inline

@protoc_insertion_point(field_set:operations_research.sat.LinearObjective.scaling_factor)

Definition at line 1473 of file boolean_problem.pb.h.

◆ Swap()

void operations_research::sat::LinearObjective::Swap ( LinearObjective *PROTOBUF_NONNULL other)
inline

Definition at line 147 of file boolean_problem.pb.h.

◆ unknown_fields()

const ::google::protobuf::UnknownFieldSet & operations_research::sat::LinearObjective::unknown_fields ( ) const
inline

Definition at line 123 of file boolean_problem.pb.h.

◆ UnsafeArenaSwap()

void operations_research::sat::LinearObjective::UnsafeArenaSwap ( LinearObjective *PROTOBUF_NONNULL other)
inline

Definition at line 155 of file boolean_problem.pb.h.

◆ ::google::protobuf::Arena

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

Definition at line 306 of file boolean_problem.pb.h.

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

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

Definition at line 308 of file boolean_problem.pb.h.

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

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

Definition at line 299 of file boolean_problem.pb.h.

◆ ::google::protobuf::MessageLite

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

Definition at line 305 of file boolean_problem.pb.h.

◆ ::TableStruct_ortools_2fsat_2fboolean_5fproblem_2eproto

Definition at line 329 of file boolean_problem.pb.h.

◆ swap

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

Definition at line 146 of file boolean_problem.pb.h.

Member Data Documentation

◆ _impl_

Impl_ operations_research::sat::LinearObjective::_impl_

Definition at line 328 of file boolean_problem.pb.h.

◆ kIndexInFileMessages

int operations_research::sat::LinearObjective::kIndexInFileMessages = 1
staticconstexpr

Definition at line 145 of file boolean_problem.pb.h.


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