In practice, these correction potentials are constructed using the local-elevation umbrellasampling (LEUS) approach, where they are represented as a weighted sum of local basis functions. A first local-elevation 103 (LE) phase involves the non-equilibrium build-up of the correction potential. A second umbrella-sampling (US) phase 104 involves the equilibrium sampling of the system using a frozen correction potential. Note that these potentials are expected to be specific to a given AdSoS setup, i.e. system geometry, choice of solvent, value of s max , sizes of the box compartments, and choice of the s-function. Here, cubic B-splines are used as basis functions, 105,106 namely