Open jchodera opened 7 years ago
This is probably the case. The first scheme I implemented was optimized but a little ugly. @Lnaden suggested the current scheme which is way more readable since we were still debugging back then, but I think there's good room for performance improvement.
Another possibility: Once we move to using a transparent System
cache, we can add an option to have alchemy
to create an unmodified System
(no CustomForce
objects) with scaled charges if appropriate. This will be just as fast as the standard unmodified System
for many of the alchemical intermediates.
As in add all alchemical electrostatic interactions as exceptions through the standard NonbondedForce
?
This would be an alternative to the "alchemical state is controllable via context parameters" approach.
We should investigate whether reworking some of the alchemical states can speed up simulations.
cc: https://github.com/choderalab/yank/issues/577#issuecomment-277737517