Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
sparse_containers.h File Reference
#include <cstdint>
#include "absl/container/flat_hash_map.h"
#include "ortools/base/logging.h"
#include "ortools/math_opt/constraints/quadratic/quadratic_constraint.h"
#include "ortools/math_opt/cpp/basis_status.h"
#include "ortools/math_opt/cpp/linear_constraint.h"
#include "ortools/math_opt/cpp/objective.h"
#include "ortools/math_opt/cpp/variable_and_expressions.h"
#include "ortools/math_opt/solution.pb.h"
#include "ortools/math_opt/sparse_containers.pb.h"
#include "ortools/math_opt/storage/model_storage.h"

Go to the source code of this file.

Namespaces

namespace  operations_research
 In SWIG mode, we don't want anything besides these top-level includes.
 
namespace  operations_research::math_opt
 An object oriented wrapper for quadratic constraints in ModelStorage.
 

Functions

absl::StatusOr< VariableMap< double > > operations_research::math_opt::VariableValuesFromProto (const ModelStorage *const model, const SparseDoubleVectorProto &vars_proto)
 
absl::StatusOr< VariableMap< int32_t > > operations_research::math_opt::VariableValuesFromProto (const ModelStorage *model, const SparseInt32VectorProto &vars_proto)
 
SparseDoubleVectorProto operations_research::math_opt::VariableValuesToProto (const VariableMap< double > &variable_values)
 Returns the proto equivalent of variable_values.
 
absl::StatusOr< absl::flat_hash_map< Objective, double > > operations_research::math_opt::AuxiliaryObjectiveValuesFromProto (const ModelStorage *const model, const google::protobuf::Map< int64_t, double > &aux_obj_proto)
 
google::protobuf::Map< int64_t, double > operations_research::math_opt::AuxiliaryObjectiveValuesToProto (const absl::flat_hash_map< Objective, double > &aux_obj_values)
 
absl::StatusOr< LinearConstraintMap< double > > operations_research::math_opt::LinearConstraintValuesFromProto (const ModelStorage *const model, const SparseDoubleVectorProto &lin_cons_proto)
 
SparseDoubleVectorProto operations_research::math_opt::LinearConstraintValuesToProto (const LinearConstraintMap< double > &linear_constraint_values)
 Returns the proto equivalent of linear_constraint_values.
 
absl::StatusOr< absl::flat_hash_map< QuadraticConstraint, double > > operations_research::math_opt::QuadraticConstraintValuesFromProto (const ModelStorage *const model, const SparseDoubleVectorProto &quad_cons_proto)
 
SparseDoubleVectorProto operations_research::math_opt::QuadraticConstraintValuesToProto (const absl::flat_hash_map< QuadraticConstraint, double > &quadratic_constraint_values)
 Returns the proto equivalent of quadratic_constraint_values.
 
absl::StatusOr< VariableMap< BasisStatus > > operations_research::math_opt::VariableBasisFromProto (const ModelStorage *const model, const SparseBasisStatusVector &basis_proto)
 
SparseBasisStatusVector operations_research::math_opt::VariableBasisToProto (const VariableMap< BasisStatus > &basis_values)
 Returns the proto equivalent of basis_values.
 
absl::StatusOr< LinearConstraintMap< BasisStatus > > operations_research::math_opt::LinearConstraintBasisFromProto (const ModelStorage *const model, const SparseBasisStatusVector &basis_proto)
 
SparseBasisStatusVector operations_research::math_opt::LinearConstraintBasisToProto (const LinearConstraintMap< BasisStatus > &basis_values)
 Returns the proto equivalent of basis_values.