[R] optimize integer function parameters

Christof Kluß ckluss at email.uni-kiel.de
Tue Jul 23 08:37:07 CEST 2013


I have "observations" obs <- (11455, 11536, 11582, 11825, 11900,  ...)

and a simulation function f(A,B,C,D,E,F), so sim <- f(A,B,C,D,E,F)

e.g. sim = c(11464, 11554, 11603, 11831, 11907, ...)

now I would like to fit A,B,C,D,E,F such that "obs" and f(A,B,C,D,E,F) 
match as well as possible. A,..,F should be integers and have bounds.

How would you solve this problem without bruteforce in an acceptable time?


More information about the R-help mailing list