For the multivariate optim() function, I am having trouble figuring
out why I am getting the following error message:
optim(par = sval , fn = fkt3...
"Error in fn(par, ...) : argument "y" is missing, with no default"
I do not believe it is a problem in how the f(x) was written, because
I can evaluate fkt3 at some values for x and y. A problem arises when
I try to put it into some function like optim() where I do not
specify some particular x and y.