stics_eval_opti: Objective function to optimize

stics_eval_optiR Documentation

Objective function to optimize

Description

Function evaluated for parameter optimization. This function is only provided for informative value, but should not be used by the user. It is called by optimi_stics().

Usage

stics_eval_opti(
  x,
  USM_path,
  obs_name,
  param,
  weight = NULL,
  Plant,
  type = NULL
)

Arguments

x

The starting parameter values

USM_path

The path to the USM

obs_name

The observation file name

param

The parameter names (in same order than x)

weight

The weight used for each variable (see details)

Plant

The plant (i.e. Principal or associated) for which the parameters will be set (only for plant or technical parameters in mixed crop simulations) Set to NULL if using STICS in sole crop

type

The type of the parameter (only used if integers are required)

Details

If weight is not provided by the user, the selection criteria is computed using the equation 5 from Wallach et al. (2011). If they are provided, the equation 6 is used instead.

Value

The weighted product of squares (selection criteria)

References

Wallach, D., Buis, S., Lecharpentier, P., Bourges, J., Clastre, P., Launay, M., … Justes, E. (2011). A package of parameter e00stimation methods and implementation for the STICS crop-soil model. Environmental Modelling & Software, 26(4), 386–394. doi:10.1016/j.envsoft.2010.09.004


VEZY/sticRs documentation built on Oct. 26, 2023, 7:37 a.m.