Skip to main content
. Author manuscript; available in PMC: 2021 Aug 20.
Published in final edited form as: Multiscale Model Simul. 2020 May 6;18(2):646–673. doi: 10.1137/18m1212100

Algorithm 5.2.

Optimizing the bins.

Choose an initial collection B of bins. Define an objective function on the bin space,
O(B)=uBVar(K˜h˜|u), (5.5)
where K˜h˜|u is the restriction of K˜h˜ to {pMB:pu}, and Var(K˜h˜|u) is the usual vector population variance. Choose an annealing parameter α > 0, set Bopt=B, and iterate the following for a user-prescribed number of steps:
 1. Perturb B to get new bins B.
  (Say by moving a microbin from one bin to another bin.)
 2. With probability min{1,exp[α(O(B)O(B))]}, set B=B.
 3. If O(B)<O(Bopt), then update Bopt=B. Return to step 1.
Once the bin search is complete, the output is B=Bopt.