deblais
Exact optimal transport between point clouds
Loading...
Searching...
No Matches
deblais::TuneOptions Struct Reference

Bounds of the search of tune(). More...

#include <deblais/tune.hpp>

Public Attributes

double max_seconds = 0
 Time after which no new configuration is tried, in seconds. 0: no limit.
double margin = 0.03
 A configuration replaces the best one when it is faster by at least this fraction.

Detailed Description

Bounds of the search of tune().

Member Data Documentation

◆ max_seconds

double deblais::TuneOptions::max_seconds = 0

Time after which no new configuration is tried, in seconds. 0: no limit.

The automatic mode is always timed; the search stops between two configurations, so the bound can be exceeded by one solve.

◆ margin

double deblais::TuneOptions::margin = 0.03

A configuration replaces the best one when it is faster by at least this fraction.

It keeps the noise of the timings from choosing between equivalent configurations. Fewer threads are kept as long as the time does not grow by more than this fraction: they free the rest of the machine.