#include <cstddef>#include <optional>#include <fe/bitset.h>#include <fe/span.h>#include "pbqp/graph.h"Go to the source code of this file.
Classes | |
| struct | pbqp::Statistics |
| How often solve applied each reduction. More... | |
| struct | pbqp::Solution |
| A complete assignment of options to nodes. More... | |
Namespaces | |
| namespace | pbqp |
Functions | |
| Cost | pbqp::evaluate (const Graph &graph, fe::View< OptionId > choices) |
| All solver functions are safe to call concurrently on a graph that nobody mutates meanwhile. | |
| fe::Bitset | pbqp::conflicts (const Graph &graph, fe::View< OptionId > choices) |
| Nodes whose choice is Cost::inf in their cost vector or, given the neighbour's choice, in an incident matrix. | |
| Solution | pbqp::solve (const Graph &graph, fe::View< size_t > rn_priority={}) |
| Heuristic PBQP solver. | |
| std::optional< Solution > | pbqp::solve_exhaustive (const Graph &graph, size_t max_combinations=10 '000 '000, unsigned num_threads=0) |
| Brute-force optimum, useful to cross-check small instances. | |