Skip to content

Commit 8faa6bd

Browse files
committed
Add references
1 parent ba43bbb commit 8faa6bd

4 files changed

Lines changed: 910 additions & 719 deletions

File tree

R/select.diversity.R

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,40 @@
1212
#' multiple candidate subsets are sampled randomly and the subset with the
1313
#' highest trait diversity according to either pooled or mean diversity index
1414
#' estimate is retained. The quality of the solution improves with increasing
15-
#' \code{n.iter} but is not guaranteed to find the global optimum.
15+
#' \code{n.iter} but is not guaranteed to find the global optimum
16+
#' \insertCite{anatoly_zhigljavsky_stochastic_2008}{SampleCore}.
1617
#' }
1718
#'
1819
#' \subsection{Greedy search with 1-opt}{This method builds a solution
1920
#' incrementally by adding the accession that maximises the diversity score at
2021
#' each step, starting from the \code{always.selected} accessions (or a single
2122
#' randomly drawn accession when there are no accessions specified in
22-
#' \code{always.selected} present in the particular cluster/group ). The
23-
#' 'greedy' solution is then refined by a 1-opt local search controlled by
24-
#' \code{local.search} and \code{max.iter}. Greedy search is deterministic
25-
#' given a fixed \code{always.selected} set; when there are no accessions
26-
#' specified in \code{always.selected} present in the particular cluster/group
27-
#' results may vary across runs due to the random initialisation.
23+
#' \code{always.selected} present in the particular cluster/group )
24+
#' \insertCite{nemhauser_analysis_1978,fisher_analysis_1978,cormen_introduction_2022}{SampleCore}.
25+
#' The 'greedy' solution is then refined by a 1-opt local search controlled by
26+
#' \code{local.search} and \code{max.iter}
27+
#' \insertCite{lin_computer_1965}{SampleCore}. Greedy search is deterministic
28+
#' given a fixed \code{always.selected} set; when there are no accessions
29+
#' specified in \code{always.selected} present in the particular cluster/group
30+
#' results may vary across runs due to the random initialisation.
2831
#'
29-
#' \code{local.search = "best.improvement"} scans all possible single swaps
30-
#' in each pass and applies the one yielding the greatest improvement before
31-
#' restarting. his guarantees the steepest ascent at each pass but requires
32-
#' evaluating all \mjseqn{k \times (n - k)} swap pairs per pass, where
33-
#' \mjseqn{k} is the number of swappable accessions and \mjseqn{n - k} is the
34-
#' size of the candidate pool.
32+
#' \code{local.search = "best.improvement"} scans all possible single swaps
33+
#' in each pass and applies the one yielding the greatest improvement before
34+
#' restarting. his guarantees the steepest ascent at each pass but requires
35+
#' evaluating all \mjseqn{k \times (n - k)} swap pairs per pass, where
36+
#' \mjseqn{k} is the number of swappable accessions and \mjseqn{n - k} is the
37+
#' size of the candidate pool
38+
#' \insertCite{papadimitriou_combinatorial_1998}{SampleCore}.
3539
#'
36-
#' \code{local.search = "first.improvement"} applies the first swap that
37-
#' improves the score and immediately restarts the search. This typically
38-
#' requires fewer score evaluations per pass and converges faster, but may
39-
#' find a different local optimum than \code{"best.improvement"}.
40+
#' \code{local.search = "first.improvement"} applies the first swap that
41+
#' improves the score and immediately restarts the search. This typically
42+
#' requires fewer score evaluations per pass and converges faster, but may
43+
#' find a different local optimum than \code{"best.improvement"}
44+
#' \insertCite{papadimitriou_combinatorial_1998}{SampleCore}.
4045
#'
41-
#' Both strategies terminate when no improving swap exists (local optimum)
42-
#' or when \code{max.iter} passes have been completed.
43-
#'
44-
#' }
46+
#' Both strategies terminate when no improving swap exists (local optimum)
47+
#' or when \code{max.iter} passes have been completed.
48+
#' }
4549
#'
4650
#'
4751
#' Entries listed as \code{always.selected} are mandatorily included in the

0 commit comments

Comments
 (0)