swat_objective_function_rch: An example objective function for calibrating SWAT2005 model.

Description Usage Arguments Value Author(s)

Description

An example objective function for calibrating SWAT2005 model.

Usage

1
swat_objective_function_rch(x, calib_range, calib_params, flowgage, rch, save_results = F)

Arguments

x

Numeric vector similar to change_params$current defining the scalar states of the parameters to be optimized.

calib_range

2 place vector of begin and end dates for calibration.

calib_params

Dataframe in the format of change_params limited to those rows of parameters desired to calibrate. See change_params.

flowgage

list of the format of the list returned by the function get_usgs_gage.

rch

Number of the reach in the output.rch file you desire to calibrate against

save_results

Logical to express if you want to copy the optimial solution to the current directory, overwriting the swat input files.

Value

abs\(NS - 1\) as needed to be able to minimize to optimal as needed for DEoptim function.

Author(s)

Daniel R. Fuka


EcoHydRology documentation built on May 2, 2019, 8:28 a.m.