AlphaDQPSettings

org.appliedtopology.tda4j.AlphaDQPSettings
final case class AlphaDQPSettings(rankTolerance: Double = ..., feasibilityTolerance: Double = ..., zeroTolerance: Double = ..., equalityTolerance: Double = ..., maxIterationsPerQP: Int = ..., workingSetCapacity: Int = ..., enforceMonotonicity: Boolean = ..., parallel: Boolean = ..., verbose: Boolean = ..., rescueRankTolerance: Double = ..., keepWitnesses: Boolean = ...)

Settings of the quadratic programs. All tolerances are relative, so they survive rescaling the points.

Value parameters

enforceMonotonicity

make each value at least the largest of its facets', and equal to it within solver accuracy (see clampMonotone): the values are monotone mathematically, and the persistence algorithms need it exactly.

equalityTolerance

consistency threshold for dependent equality constraints (relative to max|U|).

feasibilityTolerance

a constraint counts as violated when its slack exceeds this fraction of max|U|.

keepWitnesses

compute and keep the witness map Phi of every simplex (AlphaComplexDQP.witness), one row of the ambient dimension per simplex. The alpha streams (AlphaShapes with DQP) never read it and turn it off.

maxIterationsPerQP

iteration cap per QP; 0 means 20n + 200.

parallel

run the per-vertex loop on the common ForkJoinPool. Output is deterministic. Default: on, where there are threads to share the work (the JVM; a Scala.js program has one).

rankTolerance

a constraint counts as linearly dependent on the working set when its Schur complement falls below this fraction of B_jj. Values between 1e-7 and 1e-5 work; smaller lets nearly singular factorizations through (non-convergence or wrong answers), larger rejects real directions. A candidate ruled out for this reason gets a second attempt (rescueRankTolerance).

rescueRankTolerance

a candidate that rankTolerance rules out because of a small pivot is solved again with this smaller tolerance and kept if the multipliers it ends with satisfy the optimality conditions of the dual against the data. In high ambient dimension many valid simplices are that ill-conditioned. 0 turns the second attempt off.

verbose

print a line to stderr whenever a candidate is left out because its QP did not converge.

workingSetCapacity

max active set size; 0 means "ambient dimension + 2", which is a hard bound since the active rows live in R^m. Raise it only if you hit the corresponding exception.

zeroTolerance

threshold on multipliers in the ratio tests.

Attributes

Experimental
true
Source
AlphaComplexDQP.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala