fitByDDS {hydromad} | R Documentation |
Fit a hydromad model using DDS (Dynamically Dimensioned Search) algorithm.
fitByDDS(MODEL, objective = hydromad.getOption("objective"), control = hydromad.getOption("dds.control"), save = NULL)
MODEL |
a model specification created by |
objective |
objective function to maximise, given as a |
control |
settings for the DDS algorithm. These are the arguments to |
save |
Optional |
This function depends on the ppso
package, available from
http://www.rforge.net/ppso/.
For alternative optimisation algorithms, consider fitBySCE
.
the best model from those sampled, according to the given
objective
function. Also, these extra elements are inserted:
fit.result |
the result from |
objective |
the |
funevals |
total number of evaluations of the model simulation function. |
timing |
timing vector as returned by |
Joseph Guillaume josephguillaume@gmail.com
Tolson, B. A., and C. A. Shoemaker (2007) Dynamically dimensioned search algorithm for computationally efficient watershed model calibration, Water Resour. Res., 43, W01413, doi:10.1029/2005WR004723. http://www.agu.org/journals/wr/wr0701/2005WR004723/
optim_dds
,fitBySCE
data(Cotter) x <- Cotter[1:1000] ## IHACRES CWI model with power law unit hydrograph modx <- hydromad(x, sma = "cwi", routing = "powuh") modx ## run with cut-down settings (for a speedy example only!) foo <- fitByDDS(modx, control = list( max_number_function_calls=100, logfile=NULL, projectfile=NULL, load_projectfile="no" )) summary(foo) ## return value from DDS: str(foo$fit.result)