TreeDriftingOptions: Set options for tree drifting

TreeDriftingOptionsR Documentation

Set options for tree drifting

Description

TreeDriftingOptions is an R6 class that defines the set of parameters required for performing tree drift operations in nitro.

Active bindings

iterations

An integer value indicating the number of tree-drifting cycles to perform.

substitutions

An integer value indicating the number of replacements (i.e., accepted tree rearrangements) to perform in the perturbation phase.

max_abs_fit_diff

A numeric value indicating the maximum absolute fit difference.

max_rel_fit_diff

A numeric value indicating the maximum relative fit difference.

reject_factor

A numeric value indicating the rejection factor for suboptimal trees.

autoconstrain_cycles

An integer value indicating the number of autoconstrained cycles to perform.

Methods

Public methods


Method new()

Usage
TreeDriftingOptions$new(
  iterations = 30,
  substitutions = 60,
  max_abs_fit_diff = 1,
  max_rel_fit_diff = 0.2,
  reject_factor = 3,
  autoconstrain_cycles = 0
)
Arguments
iterations

An integer value indicating the number of tree-drifting cycles to perform.

substitutions

An integer value indicating the number of replacements (i.e., accepted tree rearrangements) to perform in the perturbation phase.

max_abs_fit_diff

A numeric value indicating the maximum absolute fit difference.

max_rel_fit_diff

A numeric value indicating the maximum relative fit difference.

reject_factor

A numeric value indicating the rejection factor for suboptimal trees.

autoconstrain_cycles

An integer value indicating the number of autoconstrained cycles to perform.


Method print()

Usage
TreeDriftingOptions$print(...)
Arguments
...

Ignored.


Method queue()

Usage
TreeDriftingOptions$queue(set_only = FALSE)
Arguments
set_only

A logical indicating whether to instruct the command to execute immediately (TRUE) or set the variables for future execution FALSE.


Method clone()

The objects of this class are cloneable with this method.

Usage
TreeDriftingOptions$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


paravian/nitro documentation built on Jan. 17, 2025, 11:21 p.m.