Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include "ortools/math_opt/cpp/sparse_containers.h"
#include <cstdint>
#include <optional>
#include <utility>
#include <vector>
#include "absl/algorithm/container.h"
#include "absl/container/flat_hash_map.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/types/span.h"
#include "google/protobuf/map.h"
#include "ortools/base/status_builder.h"
#include "ortools/base/status_macros.h"
#include "ortools/math_opt/constraints/quadratic/quadratic_constraint.h"
#include "ortools/math_opt/core/sparse_vector_view.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/storage/model_storage.h"
#include "ortools/math_opt/storage/model_storage_types.h"
#include "ortools/math_opt/validators/sparse_vector_validator.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. | |