util

Callback that stop algorithm in R

Today I was making a little programming using the mathematical software R (very useful for statistics, by the way), for a little test. I’m one of the authors of a Cran package (Rmalschains) for continuous optimization, and I was testing another packages to compare results. Comparing a particular package I realise that the API doesn’t give me enough control for the comparisons. Briefly, to compare different algorithms all of them should stop when the same number of solutions is achieved.