deblais
Exact optimal transport between point clouds
Loading...
Searching...
No Matches
certificate.hpp File Reference

Independent check of a plan: marginals, duality gap and dual feasibility. More...

#include <algorithm>
#include <cmath>
#include <cstddef>
#include <limits>
#include <stdexcept>
#include <vector>
#include "detail/cost.hpp"
#include "detail/parallel.hpp"
#include "plan.hpp"

Classes

struct  deblais::Certificate
 Measured optimality of a plan, as returned by certify(). More...

Namespaces

namespace  deblais
 Public interface of the library.

Functions

template<int D>
Certificate deblais::certify (const Cloud &source, const Cloud &target, const Plan &plan, bool all_pairs=true)
 Certifies a plan against the problem it is meant to solve.

Detailed Description

Independent check of a plan: marginals, duality gap and dual feasibility.

A plan that passes is optimal, whatever produced it.