dot-ga_compare: Compare two individuals rank-by-rank

.ga_compareR Documentation

Compare two individuals rank-by-rank

Description

Compares the score-sorted subnetwork scores position by position; the first strict difference decides. If one score vector is a prefix of the other, the individual with more subnetworks wins.

Usage

.ga_compare(a, b)

Arguments

a, b

GA individuals.

Value

1 if a is better, -1 if b is better, 0 if they are equivalent.


pathfindR documentation built on July 2, 2026, 1:06 a.m.