Compute the sum of squared errors

dts_maximize_gof(
  data,
  model,
  F_obs,
  get_par,
  put_par,
  F_gof,
  Tmax = 365,
  dt = 1,
  tol = 1e-08
)

Arguments

data

a set of observations

model

a model

F_obs

a function to return the predicted observations from the model

get_par

a function to get the parameters to be fitted

put_par

a function to put the parameters to be fitted

F_gof

a function to compute the goodness of fit

Tmax

the maximum runtime

dt

the time step

tol

the desired accuracy

Value

the sum of squared errors