Custom select policy in R is less efficient than any default one #242
-
|
I have implemented some custom selection policy with R code and have started simulation in order to compare the default policies and my own, however from the analysis I have figured out that my R-policy is much less effective than even a "random" policy from default simmer code. In order to get an adequate comparison results I have 2 options:
Do you know how to overcome such development peculiarities in order to get adequate comparison results due to chasm between performance of R code and C code? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
|
Yes, simmer/inst/include/simmer/activity/resource_internal.h Lines 60 to 169 in f58ad54 Before suggesting anything, I have two questions:
|
Beta Was this translation helpful? Give feedback.
Yes,
simmerimplements a set of common policies in C++, but provides an R interface for the general case. Built-in policies are in the internal namespace, because they are not meant to be exposed, and that's why there's no documentation about it. They're here:simmer/inst/include/simmer/activity/resource_internal.h
Lines 60 to 169 in f58ad54