C++ Reference

C++ Reference: Linear solver

MPSolutionResponse

Detailed Description

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

Public Types

enum  : int {
  kVariableValueFieldNumber = 3, kDualValueFieldNumber = 4, kReducedCostFieldNumber = 6, kStatusStrFieldNumber = 7,
  kObjectiveValueFieldNumber = 2, kBestObjectiveBoundFieldNumber = 5, kStatusFieldNumber = 1
}
 

Public Member Functions

 MPSolutionResponse ()
 
virtual ~MPSolutionResponse ()
 
 MPSolutionResponse (const MPSolutionResponse &from)
 
 MPSolutionResponse (MPSolutionResponse &&from) noexcept
 
MPSolutionResponseoperator= (const MPSolutionResponse &from)
 
MPSolutionResponseoperator= (MPSolutionResponse &&from) noexcept
 
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields () const
 
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields ()
 
void Swap (MPSolutionResponse *other)
 
MPSolutionResponseNew () const final
 
MPSolutionResponseNew (::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 MPSolutionResponse &from)
 
void MergeFrom (const MPSolutionResponse &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
 
int variable_value_size () const
 
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 ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > & variable_value () const
 
::PROTOBUF_NAMESPACE_ID::RepeatedField< double > * mutable_variable_value ()
 
int dual_value_size () const
 
void clear_dual_value ()
 
double dual_value (int index) const
 
void set_dual_value (int index, double value)
 
void add_dual_value (double value)
 
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > & dual_value () const
 
::PROTOBUF_NAMESPACE_ID::RepeatedField< double > * mutable_dual_value ()
 
int reduced_cost_size () const
 
void clear_reduced_cost ()
 
double reduced_cost (int index) const
 
void set_reduced_cost (int index, double value)
 
void add_reduced_cost (double value)
 
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > & reduced_cost () const
 
::PROTOBUF_NAMESPACE_ID::RepeatedField< double > * mutable_reduced_cost ()
 
bool has_status_str () const
 
void clear_status_str ()
 
const std::string & status_str () const
 
void set_status_str (const std::string &value)
 
void set_status_str (std::string &&value)
 
void set_status_str (const char *value)
 
void set_status_str (const char *value, size_t size)
 
std::string * mutable_status_str ()
 
std::string * release_status_str ()
 
void set_allocated_status_str (std::string *status_str)
 
bool has_objective_value () const
 
void clear_objective_value ()
 
double objective_value () const
 
void set_objective_value (double value)
 
bool has_best_objective_bound () const
 
void clear_best_objective_bound ()
 
double best_objective_bound () const
 
void set_best_objective_bound (double value)
 
bool has_status () const
 
void clear_status ()
 
::operations_research::MPSolverResponseStatus status () const
 
void set_status (::operations_research::MPSolverResponseStatus value)
 

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 MPSolutionResponsedefault_instance ()
 
static void InitAsDefaultInstance ()
 
static const MPSolutionResponseinternal_default_instance ()
 

Static Public Attributes

static constexpr int kIndexInFileMessages
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : int
Enumerator
kVariableValueFieldNumber 
kDualValueFieldNumber 
kReducedCostFieldNumber 
kStatusStrFieldNumber 
kObjectiveValueFieldNumber 
kBestObjectiveBoundFieldNumber 
kStatusFieldNumber 

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

Constructor & Destructor Documentation

◆ MPSolutionResponse() [1/3]

◆ ~MPSolutionResponse()

virtual ~MPSolutionResponse ( )
virtual

◆ MPSolutionResponse() [2/3]

◆ MPSolutionResponse() [3/3]

MPSolutionResponse ( MPSolutionResponse &&  from)
inlinenoexcept

Definition at line 3786 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

◆ add_dual_value()

void add_dual_value ( double  value)
inline

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

◆ add_reduced_cost()

void add_reduced_cost ( double  value)
inline

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

◆ add_variable_value()

void add_variable_value ( double  value)
inline

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

◆ best_objective_bound()

double best_objective_bound ( ) const
inline

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

◆ ByteSizeLong()

size_t ByteSizeLong ( ) const
final

◆ Clear()

PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear ( )
final

◆ clear_best_objective_bound()

void clear_best_objective_bound ( )
inline

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

◆ clear_dual_value()

void clear_dual_value ( )
inline

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

◆ clear_objective_value()

void clear_objective_value ( )
inline

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

◆ clear_reduced_cost()

void clear_reduced_cost ( )
inline

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

◆ clear_status()

void clear_status ( )
inline

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

◆ clear_status_str()

void clear_status_str ( )
inline

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

◆ clear_variable_value()

void clear_variable_value ( )
inline

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

◆ CopyFrom() [1/2]

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

◆ CopyFrom() [2/2]

void CopyFrom ( const MPSolutionResponse from)

◆ default_instance()

static const MPSolutionResponse& default_instance ( )
static

◆ descriptor()

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

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

◆ dual_value() [1/2]

const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > & dual_value ( ) const
inline

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

◆ dual_value() [2/2]

double dual_value ( int  index) const
inline

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

◆ dual_value_size()

int dual_value_size ( ) const
inline

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

◆ GetCachedSize()

int GetCachedSize ( ) const
inlinefinal

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

◆ GetDescriptor()

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

Definition at line 3814 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 3817 of file linear_solver.pb.h.

◆ has_best_objective_bound()

bool has_best_objective_bound ( ) const
inline

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

◆ has_objective_value()

bool has_objective_value ( ) const
inline

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

◆ has_status()

bool has_status ( ) const
inline

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

◆ has_status_str()

bool has_status_str ( ) const
inline

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

◆ InitAsDefaultInstance()

static void InitAsDefaultInstance ( )
static

◆ internal_default_instance()

static const MPSolutionResponse* internal_default_instance ( )
inlinestatic

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

◆ IsInitialized()

bool IsInitialized ( ) const
final

◆ MergeFrom() [1/2]

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

◆ MergeFrom() [2/2]

void MergeFrom ( const MPSolutionResponse from)

◆ mutable_dual_value()

PROTOBUF_NAMESPACE_ID::RepeatedField< double > * mutable_dual_value ( )
inline

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

◆ mutable_reduced_cost()

PROTOBUF_NAMESPACE_ID::RepeatedField< double > * mutable_reduced_cost ( )
inline

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

◆ mutable_status_str()

std::string * mutable_status_str ( )
inline

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

◆ mutable_unknown_fields()

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

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

◆ mutable_variable_value()

PROTOBUF_NAMESPACE_ID::RepeatedField< double > * mutable_variable_value ( )
inline

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

◆ New() [1/2]

MPSolutionResponse* New ( ) const
inlinefinal

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

◆ New() [2/2]

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

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

◆ objective_value()

double objective_value ( ) const
inline

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

◆ operator=() [1/2]

MPSolutionResponse& operator= ( const MPSolutionResponse from)
inline

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

◆ operator=() [2/2]

MPSolutionResponse& operator= ( MPSolutionResponse &&  from)
inlinenoexcept

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

◆ reduced_cost() [1/2]

const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > & reduced_cost ( ) const
inline

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

◆ reduced_cost() [2/2]

double reduced_cost ( int  index) const
inline

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

◆ reduced_cost_size()

int reduced_cost_size ( ) const
inline

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

◆ release_status_str()

std::string * release_status_str ( )
inline

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

◆ set_allocated_status_str()

void set_allocated_status_str ( std::string *  status_str)
inline

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

◆ set_best_objective_bound()

void set_best_objective_bound ( double  value)
inline

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

◆ set_dual_value()

void set_dual_value ( int  index,
double  value 
)
inline

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

◆ set_objective_value()

void set_objective_value ( double  value)
inline

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

◆ set_reduced_cost()

void set_reduced_cost ( int  index,
double  value 
)
inline

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

◆ set_status()

void set_status ( ::operations_research::MPSolverResponseStatus  value)
inline

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

◆ set_status_str() [1/4]

void set_status_str ( const char *  value)
inline

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

◆ set_status_str() [2/4]

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

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

◆ set_status_str() [3/4]

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

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

◆ set_status_str() [4/4]

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

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

◆ set_variable_value()

void set_variable_value ( int  index,
double  value 
)
inline

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

◆ status()

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

◆ status_str()

const std::string & status_str ( ) const
inline

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

◆ Swap()

void Swap ( MPSolutionResponse other)
inline

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

◆ unknown_fields()

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

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

◆ variable_value() [1/2]

const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > & variable_value ( ) const
inline

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

◆ variable_value() [2/2]

double variable_value ( int  index) const
inline

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

◆ variable_value_size()

int variable_value_size ( ) const
inline

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

Member Data Documentation

◆ kIndexInFileMessages

constexpr int kIndexInFileMessages
staticconstexpr
Initial value:
=
18

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


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