Displaying 1 result from an estimated 1 matches for "suceedeed".
Did you mean:
suceeded
2003 Oct 31
1
Optimization of objective function with generic number of arguments (R-Extension with C code)
...nal(MyOptimC(par, fn1,new.env()))
...
}
#My C function
__declspec (dllexport) SEXP MyOptimC(SEXP args)
{
args = CDR(args); SEXP par = CAR(args);
args = CDR(args); SEXP fn = CAR(args);
rho = CDR(args); SEXP rho = CAR(args);
SEXP fminfn = lang2(fn, R_NilValue));
...
}
I suceedeed only for objective functions with a specific number of
arguments, while for the problem at hand I tried to replicate the code in
optim.c and related files but without any result. Is there someone on the
list who can me give me some insight, piece of source code or material
explaining how to do...