Skip to main content

All Questions

0 votes
0 answers
2k views

mclapply warnings: scheduled cores ... did not deliver results, all values of the jobs will be affected

I am trying to optimize my R code using "foreach" and "doParallel" package. My code is running in the serial version without any warnings and errors, but I get this error while ...
Maryam's user avatar
  • 97
2 votes
3 answers
596 views

What is the fastest way to perform an exhaustive search in R

I am implementing a version of the Very Large Scale Relieff algorithm detailed here. Simply put, Very Large Scale Relieff split the set of features N into several random subsets Ns where Ns << N....
fednem's user avatar
  • 127
0 votes
1 answer
39 views

Use %dopar% for nested for loops to find smallest distance in R

I'm currently try to match all the zip codes in the US with some zip codes I have, by the smallest distance. The code currently like this: for (i in 1:nrow(Haversine_Zip_Match)){ # Reset the ...
joyjoyhappyjoy's user avatar
2 votes
2 answers
119 views

Parallelization/Optimization of R loops containing *apply

I am working on implementing an algorithm where I try to find 5 vectors out of 20 which are "furthest apart", using some measure. To do that i use combnPrime where I get a list of some 77000 vectors ...
life_steal's user avatar
2 votes
1 answer
463 views

Solving univariate optimization problems simultaneously in R

I am going to use a very simple example to explain my problem (the real problem concerns a very complex univariate function). Consider the following univariate function f <- function(x, p){ 10 - (...
Student1981's user avatar