OR-Tools  9.6
operations_research::math_opt::internal Namespace Reference

Classes

class  SosConstraintData
 
class  ArrowOperatorProxy
 
struct  VariablesEquality
 

Functions

template<typename SosConstraint >
std::string SosConstraintToString (SosConstraint constraint, absl::string_view sos_type_name)
 
absl::Status CheckIdsRangeAndStrictlyIncreasing2 (absl::Span< const int64_t > ids)
 
template<typename DataProto >
absl::Status UpdateBiMapFromMappedData (const absl::Span< const int64_t > deleted_ids, const google::protobuf::Map< int64_t, DataProto > &proto_map, IdNameBiMap &bimap)
 
absl::Status ValidateInitArgs (const Solver::InitArgs &init_args, const SolverTypeProto solver_type)
 
absl::Status CheckModelStorage (const ModelStorage *const storage, const ModelStorage *const expected_storage)
 
template<typename LeftIterable , typename RightIterable , typename Expression >
void AddInnerProduct (const LeftIterable &left, const RightIterable &right, Expression &expr)
 
template<typename RowId , typename ColumnId >
SparseDoubleMatrixProto EntriesToMatrixProto (std::vector< std::tuple< RowId, ColumnId, double >> entries)
 

Variables

std::atomic< int64_t > debug_num_solver = 0
 
constexpr absl::string_view kMessageCallbackNotSupported
 
constexpr absl::string_view kKeyHasNullModelStorage
 
constexpr absl::string_view kObjectsFromOtherModelStorage
 
constexpr absl::string_view kInputFromInvalidModelStorage
 
constexpr absl::string_view kModelIsDestroyed
 
constexpr double kZerosCleanup = 1.0 / 3.0
 

Function Documentation

◆ AddInnerProduct()

void operations_research::math_opt::internal::AddInnerProduct ( const LeftIterable &  left,
const RightIterable &  right,
Expression &  expr 
)

Definition at line 1600 of file variable_and_expressions.h.

◆ CheckIdsRangeAndStrictlyIncreasing2()

absl::Status CheckIdsRangeAndStrictlyIncreasing2 ( absl::Span< const int64_t >  ids)

Definition at line 41 of file model_summary.cc.

◆ CheckModelStorage()

absl::Status operations_research::math_opt::internal::CheckModelStorage ( const ModelStorage *const  storage,
const ModelStorage *const  expected_storage 
)
inline

Definition at line 69 of file key_types.h.

◆ EntriesToMatrixProto()

SparseDoubleMatrixProto EntriesToMatrixProto ( std::vector< std::tuple< RowId, ColumnId, double >>  entries)

Definition at line 275 of file sparse_matrix.h.

◆ SosConstraintToString()

std::string SosConstraintToString ( SosConstraint  constraint,
absl::string_view  sos_type_name 
)

Definition at line 42 of file math_opt/constraints/sos/util.h.

◆ UpdateBiMapFromMappedData()

absl::Status operations_research::math_opt::internal::UpdateBiMapFromMappedData ( const absl::Span< const int64_t >  deleted_ids,
const google::protobuf::Map< int64_t, DataProto > &  proto_map,
IdNameBiMap bimap 
)

Definition at line 243 of file model_summary.h.

◆ ValidateInitArgs()

absl::Status ValidateInitArgs ( const Solver::InitArgs init_args,
const SolverTypeProto  solver_type 
)

Definition at line 192 of file solver.cc.

Variable Documentation

◆ debug_num_solver

std::atomic< int64_t > debug_num_solver = 0

Definition at line 23 of file solver_debug.cc.

◆ kInputFromInvalidModelStorage

constexpr absl::string_view kInputFromInvalidModelStorage
inlineconstexpr
Initial value:
=
"the input does not belong to the same model"

Definition at line 62 of file key_types.h.

◆ kKeyHasNullModelStorage

constexpr absl::string_view kKeyHasNullModelStorage
inlineconstexpr
Initial value:
=
"The input key has null .storage()."

Definition at line 52 of file key_types.h.

◆ kMessageCallbackNotSupported

constexpr absl::string_view kMessageCallbackNotSupported
inlineconstexpr
Initial value:
=
"This solver does not support message callbacks."

Definition at line 43 of file solver_interface.h.

◆ kModelIsDestroyed

constexpr absl::string_view kModelIsDestroyed
constexpr
Initial value:
=
"can't call this function after the associated model has been destroyed"

Definition at line 109 of file update_tracker.h.

◆ kObjectsFromOtherModelStorage

constexpr absl::string_view kObjectsFromOtherModelStorage
inlineconstexpr
Initial value:
=
"The input objects belongs to another model."

Definition at line 57 of file key_types.h.

◆ kZerosCleanup

constexpr double kZerosCleanup = 1.0 / 3.0
constexpr

Definition at line 257 of file sparse_matrix.h.