MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
solver.cpp File Reference
#include "pbqp/solver.h"
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <algorithm>
#include <numeric>
#include <optional>
#include <queue>
#include <ranges>
#include <thread>
#include <utility>
#include <fe/arena.h>
#include <fe/container.h>
#include <fe/vector.h>
Include dependency graph for solver.cpp:

Go to the source code of this file.

Namespaces

namespace  pbqp

Macros

#define PBQP_DISPATCH

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.

Macro Definition Documentation

◆ PBQP_DISPATCH

#define PBQP_DISPATCH

Definition at line 31 of file solver.cpp.