fit_fb4_optim: Fit FB4 model using optim()

View source: R/14.2.3-strategy-optim.R

fit_fb4_optimR Documentation

Fit FB4 model using optim()

Description

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

Usage

fit_fb4_optim(
  target_value,
  fit_type,
  processed_simulation_data,
  method = "Brent",
  oxycal = 13560,
  lower = 0.01,
  upper = 5,
  hessian = FALSE,
  verbose = FALSE
)

Arguments

target_value

Target value to fit

fit_type

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

processed_simulation_data

Complete processed simulation data

method

Optimization method, default "Brent"

oxycal

Oxycalorific coefficient (J/g O2), default 13560

lower

Lower bound for p_value search, default 0.01

upper

Upper bound for p_value search, default 5.0

hessian

Whether to compute Hessian for standard errors, default FALSE

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.