You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uses golden section search to optimize all branches recursively, maintaining the integrity of the messages.
95
+
Uses golden section search, or optionally Brent's method, to optimize all branches recursively, maintaining the integrity of the messages.
94
96
Requires felsenstein!() to have been run first.
95
97
models can either be a single model (if the messages on the tree contain just one Partition) or an array of models, if the messages have >1 Partition, or
96
98
a function that takes a node, and returns a Vector{<:BranchModel} if you need the models to vary from one branch to another.
97
99
partition_list (eg. 1:3 or [1,3,5]) lets you choose which partitions to run over (but you probably want to optimize branch lengths with all models).
98
-
tol is the tolerance for the golden section search.
100
+
tol is the absolute tolerance for the bl_optimizer which defaults to golden section search, and has Brent's method as an option by setting bl_optimizer=BrentsMethodOpt().
99
101
"""
100
-
functionbranchlength_optim!(tree::FelNode, models; partition_list =nothing, tol =1e-5)
102
+
functionbranchlength_optim!(tree::FelNode, models; partition_list =nothing, tol =1e-5, bl_optimizer::UnivariateOpt=GoldenSectionOpt())
0 commit comments