Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
map_filter.h File Reference
#include <initializer_list>
#include <optional>
#include "absl/algorithm/container.h"
#include "absl/container/flat_hash_set.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "ortools/base/status_macros.h"
#include "ortools/math_opt/cpp/key_types.h"
#include "ortools/math_opt/cpp/linear_constraint.h"
#include "ortools/math_opt/cpp/model.h"
#include "ortools/math_opt/cpp/variable_and_expressions.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.

Classes

struct  operations_research::math_opt::MapFilter< KeyType >
 

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< MapFilter< Variable > > operations_research::math_opt::VariableFilterFromProto (const Model &model, const SparseVectorFilterProto &proto)
 
absl::StatusOr< MapFilter< LinearConstraint > > operations_research::math_opt::LinearConstraintFilterFromProto (const Model &model, const SparseVectorFilterProto &proto)
 
absl::StatusOr< MapFilter< QuadraticConstraint > > operations_research::math_opt::QuadraticConstraintFilterFromProto (const Model &model, const SparseVectorFilterProto &proto)
 
template<typename KeyType >
MapFilter< KeyType > operations_research::math_opt::MakeSkipAllFilter ()
 
template<typename KeyType >
MapFilter< KeyType > operations_research::math_opt::MakeSkipZerosFilter ()
 
template<typename Collection , typename ValueType = typename Collection::value_type>
MapFilter< ValueType > operations_research::math_opt::MakeKeepKeysFilter (const Collection &keys)
 
template<typename KeyType >
MapFilter< KeyType > operations_research::math_opt::MakeKeepKeysFilter (std::initializer_list< KeyType > keys)