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

Detailed Description

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

#include <linear_solver.pb.h>

Inheritance diagram for operations_research::MPSolution:

Classes

class  _Internal

Public Types

enum  : int { kVariableValueFieldNumber = 2 , kObjectiveValueFieldNumber = 1 }
 nested types -------------------------------------------------— More...

Public Member Functions

 MPSolution ()
 ~MPSolution () PROTOBUF_FINAL
template<typename = void>
PROTOBUF_CONSTEXPR MPSolution (::google::protobuf::internal::ConstantInitialized)
 MPSolution (const MPSolution &from)
 MPSolution (MPSolution &&from) noexcept
MPSolutionoperator= (const MPSolution &from)
MPSolutionoperator= (MPSolution &&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 (MPSolution *PROTOBUF_NONNULL other)
void UnsafeArenaSwap (MPSolution *PROTOBUF_NONNULL other)
MPSolution *PROTOBUF_NONNULL New (::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
 implements Message -------------------------------------------—
void CopyFrom (const MPSolution &from)
void MergeFrom (const MPSolution &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 variable_value_size () const
 repeated double variable_value = 2 [packed = true];
void clear_variable_value ()
double variable_value (int index) const
void set_variable_value (int index, double value)
void add_variable_value (double value)
const ::google::protobuf::RepeatedField< double > & variable_value () const
::google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL mutable_variable_value ()
bool has_objective_value () const
 optional double objective_value = 1;
void clear_objective_value ()
double objective_value () const
void set_objective_value (double value)
template<typename>
PROTOBUF_CONSTEXPR MPSolution (::_pbi::ConstantInitialized)

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

Static Public Attributes

static constexpr int kIndexInFileMessages = 19

Protected Member Functions

 MPSolution (::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
 MPSolution (::google::protobuf::Arena *PROTOBUF_NULLABLE arena, const MPSolution &from)
 MPSolution (::google::protobuf::Arena *PROTOBUF_NULLABLE arena, MPSolution &&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_2flinear_5fsolver_2flinear_5fsolver_2eproto
void swap (MPSolution &a, MPSolution &b)

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : int

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

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

Enumerator
kVariableValueFieldNumber 
kObjectiveValueFieldNumber 

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

Constructor & Destructor Documentation

◆ MPSolution() [1/8]

operations_research::MPSolution::MPSolution ( )
inline

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

◆ ~MPSolution()

operations_research::MPSolution::~MPSolution ( )

@protoc_insertion_point(destructor:operations_research.MPSolution)

Definition at line 7846 of file linear_solver.pb.cc.

◆ MPSolution() [2/8]

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

◆ MPSolution() [3/8]

operations_research::MPSolution::MPSolution ( const MPSolution & from)
inline

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

◆ MPSolution() [4/8]

operations_research::MPSolution::MPSolution ( MPSolution && from)
inlinenoexcept

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

◆ MPSolution() [5/8]

operations_research::MPSolution::MPSolution ( ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
explicitprotected

@protoc_insertion_point(arena_constructor:operations_research.MPSolution)

Definition at line 7802 of file linear_solver.pb.cc.

◆ MPSolution() [6/8]

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

@protoc_insertion_point(copy_constructor:operations_research.MPSolution)

Definition at line 7819 of file linear_solver.pb.cc.

◆ MPSolution() [7/8]

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

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

◆ MPSolution() [8/8]

template<typename>
PROTOBUF_CONSTEXPR operations_research::MPSolution::MPSolution ( ::_pbi::ConstantInitialized )

Definition at line 173 of file linear_solver.pb.cc.

Member Function Documentation

◆ _InternalSerialize()

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

@protoc_insertion_point(serialize_to_array_start:operations_research.MPSolution)

optional double objective_value = 1;

repeated double variable_value = 2 [packed = true];

@protoc_insertion_point(serialize_to_array_end:operations_research.MPSolution)

Definition at line 7970 of file linear_solver.pb.cc.

◆ add_variable_value()

void operations_research::MPSolution::add_variable_value ( double value)
inline

@protoc_insertion_point(field_add:operations_research.MPSolution.variable_value)

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

◆ ByteSizeLong()

size_t operations_research::MPSolution::ByteSizeLong ( ) const
final

@protoc_insertion_point(message_byte_size_start:operations_research.MPSolution)

Prevent compiler warnings about cached_has_bits being unused

repeated double variable_value = 2 [packed = true];

Definition at line 8005 of file linear_solver.pb.cc.

◆ Clear()

PROTOBUF_NOINLINE void operations_research::MPSolution::Clear ( )

@protoc_insertion_point(message_clear_start:operations_research.MPSolution)

Prevent compiler warnings about cached_has_bits being unused

Definition at line 7951 of file linear_solver.pb.cc.

◆ clear_objective_value()

void operations_research::MPSolution::clear_objective_value ( )
inline

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

◆ clear_variable_value()

void operations_research::MPSolution::clear_variable_value ( )
inline

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

◆ CopyFrom()

void operations_research::MPSolution::CopyFrom ( const MPSolution & from)

@protoc_insertion_point(class_specific_copy_from_start:operations_research.MPSolution)

Definition at line 8051 of file linear_solver.pb.cc.

◆ default_instance()

const MPSolution & operations_research::MPSolution::default_instance ( )
inlinestatic

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

◆ descriptor()

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

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

◆ GetCachedSize()

int operations_research::MPSolution::GetCachedSize ( ) const
inline

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

◆ GetClassData()

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

Definition at line 7906 of file linear_solver.pb.cc.

◆ GetDescriptor()

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

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

◆ GetMetadata()

google::protobuf::Metadata operations_research::MPSolution::GetMetadata ( ) const

Definition at line 8067 of file linear_solver.pb.cc.

◆ GetReflection()

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

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

◆ has_objective_value()

bool operations_research::MPSolution::has_objective_value ( ) const
inline

optional double objective_value = 1;

MPSolution.

optional double objective_value = 1;

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

◆ InternalGenerateClassData_()

auto operations_research::MPSolution::InternalGenerateClassData_ ( )
staticconstexpr

Definition at line 7878 of file linear_solver.pb.cc.

◆ InternalNewImpl_()

auto operations_research::MPSolution::InternalNewImpl_ ( )
staticconstexprprotected

Definition at line 7862 of file linear_solver.pb.cc.

◆ IsInitialized()

bool operations_research::MPSolution::IsInitialized ( ) const
inline

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

◆ MergeFrom()

void operations_research::MPSolution::MergeFrom ( const MPSolution & from)
inline

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

◆ mutable_unknown_fields()

inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL operations_research::MPSolution::mutable_unknown_fields ( )
inline

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

◆ mutable_variable_value()

google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL operations_research::MPSolution::mutable_variable_value ( )
inline

@protoc_insertion_point(field_mutable_list:operations_research.MPSolution.variable_value)

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

◆ New()

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

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

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

◆ objective_value()

double operations_research::MPSolution::objective_value ( ) const
inline

@protoc_insertion_point(field_get:operations_research.MPSolution.objective_value)

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

◆ operator=() [1/2]

MPSolution & operations_research::MPSolution::operator= ( const MPSolution & from)
inline

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

◆ operator=() [2/2]

MPSolution & operations_research::MPSolution::operator= ( MPSolution && from)
inlinenoexcept

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

◆ PlacementNew_()

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

Definition at line 7857 of file linear_solver.pb.cc.

◆ set_objective_value()

void operations_research::MPSolution::set_objective_value ( double value)
inline

@protoc_insertion_point(field_set:operations_research.MPSolution.objective_value)

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

◆ set_variable_value()

void operations_research::MPSolution::set_variable_value ( int index,
double value )
inline

@protoc_insertion_point(field_set:operations_research.MPSolution.variable_value)

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

◆ Swap()

void operations_research::MPSolution::Swap ( MPSolution *PROTOBUF_NONNULL other)
inline

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

◆ unknown_fields()

const ::google::protobuf::UnknownFieldSet & operations_research::MPSolution::unknown_fields ( ) const
inline

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

◆ UnsafeArenaSwap()

void operations_research::MPSolution::UnsafeArenaSwap ( MPSolution *PROTOBUF_NONNULL other)
inline

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

◆ variable_value() [1/2]

const::google::protobuf::RepeatedField< double > & operations_research::MPSolution::variable_value ( ) const
inline

@protoc_insertion_point(field_list:operations_research.MPSolution.variable_value)

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

◆ variable_value() [2/2]

double operations_research::MPSolution::variable_value ( int index) const
inline

@protoc_insertion_point(field_get:operations_research.MPSolution.variable_value)

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

◆ variable_value_size()

int operations_research::MPSolution::variable_value_size ( ) const
inline

repeated double variable_value = 2 [packed = true];

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

◆ ::google::protobuf::Arena

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

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

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

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

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

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

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

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

◆ ::google::protobuf::MessageLite

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

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

◆ ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto

◆ swap

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

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

Member Data Documentation

◆ _impl_

Impl_ operations_research::MPSolution::_impl_

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

◆ kIndexInFileMessages

int operations_research::MPSolution::kIndexInFileMessages = 19
staticconstexpr

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


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