fit_fb4_binary_search: Fit FB4 model using binary search

View source: R/14.2.2-strategy-binary-search.R

fit_fb4_binary_searchR Documentation

Description

Coordinates the binary search fitting process for weight or consumption targets, then runs a final detailed simulation with the optimal p_value.

Usage

fit_fb4_binary_search(
  target_value,
  fit_type,
  processed_simulation_data,
  oxycal = 13560,
  tolerance = 0.001,
  max_iterations = 25,
  lower_bound = 0.01,
  upper_bound = 5,
  verbose = FALSE
)

Arguments

target_value

Target value to fit

fit_type

Type of fitting ("weight" or "consumption")

processed_simulation_data

Complete processed simulation data

oxycal

Oxycalorific coefficient (J/g O2), default 13560

tolerance

Tolerance for convergence, default 0.001

max_iterations

Maximum number of iterations, default 25

verbose

Whether to show progress messages, default FALSE

Value

List with fitting results and final simulation


fb4package documentation built on May 8, 2026, 1:07 a.m.