5 ms·
I suspect you know this, but either way: you should initialize your arrays in R to the proper length-- dynamically growing them within a for-loop as you do with
by computer 13y ago
I suspect you know this, but either way: you should initialize your arrays in R to the proper length-- dynamically growing them within a for-loop as you do with values, func and results in optimxWrapper is extremely slow in R, as it creates a new array every loop, copying the old one.