TDA's rfit: finds the relations with the requested
properties closest to the graph, via linear programming.
Arguments
- d
symmetric matrix (proximities).
- properties
character subset of "reflexive", "symmetric", "antisymmetric", "transitive", "complete".
- max_solutions
cap on the number of equally good relations TDA keeps (
max=, 10). When more exist the fit is refused with an error naming this argument; a linear-order request (antisymmetric, transitive, complete) on a symmetric input has 17 optimal relations for 4 nodes and 491 for 6. What comes back is correct but not always complete: against every relation on 4 nodes enumerated in R (test-gap-wrappers.R, and 30 directed cases in the session-52 notes)rfit's value is always the optimum and every relation it lists is optimal with the properties, but in about one case in five with ties it lists a subset of the tied optima (2 of 4, 4 of 5) – a limit of the CACM 449 enumeration it uses.- variant
"standard" runs rfit; "experimental" runs the rfit1 sibling (same syntax, alternative implementation).
- ...
passed to
tda_run.