IDEAS home Printed from https://ideas.repec.org/a/jas/jasssj/2016-170-4.html
   My bibliography  Save this article

Efficient and Effective Pair-Matching Algorithms for Agent-Based Models

Author

Abstract

Microsimulations and agent-based models across various disciplines need to match agents into relationships. Some of these models need to repeatedly match different pairs of agents, for example microsimulations of sexually transmitted infection epidemics. We describe the requirements for pair-matching in these types of microsimulations, and present several pair-matching algorithms: Brute force (BFPM), Random (RPM), Random k (RKPM), Weighted shuffle (WSPM), Cluster shuffle (CSPM), and Distribution counting (DCPM). Using two microsimulations, we empirically compare the speeds, and pairing quality of these six algorithms. For models which execute pair-matching many thousands or millions of times, BFPM is not usually a practical option because it is slow. On the other hand, RPM is fast but chooses poor quality pairs. Nevertheless both algorithms are used, sometimes implicitly, in many models. Here we use them as yardsticks for upper and lower bounds for speed and quality. In these tests CSPM offers the best trade-off of speed and effectiveness. In general, CSPM is fast and produces stochastic, high quality pair-matches, which are often desirable characteristics for pair-matching in discrete time step microsimulations. Moreover it is a simple algorithm that can be easily adapted for the specific needs of a particular domain. However, for some models, RKPM or DCPM would be as fast as CSPM with matches of similar quality. We discuss the circumstances under which this would happen.

Suggested Citation

  • Nathan Geffen & Stefan Scholz, 2017. "Efficient and Effective Pair-Matching Algorithms for Agent-Based Models," Journal of Artificial Societies and Social Simulation, Journal of Artificial Societies and Social Simulation, vol. 20(4), pages 1-8.
  • Handle: RePEc:jas:jasssj:2016-170-4
    as

    Download full text from publisher

    File URL: https://www.jasss.org/20/4/8/8.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Sabine Zinn, 2012. "A Mate-Matching Algorithm for Continuous-Time Microsimulation Models," International Journal of Microsimulation, International Microsimulation Association, vol. 5(1), pages 31-51.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Susan M. Rogers & James Rineer & Matthew D. Scruggs & William D. Wheaton & Phillip C. Cooley & Douglas J. Roberts & Diane K. Wagener, 2014. "A Geospatial Dynamic Microsimulation Model for Household Population Projections," International Journal of Microsimulation, International Microsimulation Association, vol. 7(2), pages 119-146.
    2. Sebastian Dräger & Johannes Kopp & Ralf Münnich & Simon Schmaus, 2022. "Die zukünftige Entwicklung der Grundschulversorgung im Kontext ausgewählter Wanderungsszenarien [The future development of primary school demand in the context of selected migration scenarios]," AStA Wirtschafts- und Sozialstatistisches Archiv, Springer;Deutsche Statistische Gesellschaft - German Statistical Society, vol. 16(1), pages 51-77, March.
    3. Maria Winkler-Dworak & Eva Beaujouan & Paola Di Giulio & Martin Spielauer, 2019. "Simulating Family Life Courses: An Application for Italy, Great Britain, and Scandinavia," VID Working Papers 1908, Vienna Institute of Demography (VID) of the Austrian Academy of Sciences in Vienna.
    4. Anna Klabunde & Frans J. Willekens & Sabine Zinn & Matthias Leuchter, 2015. "An agent-based decision model of migration, embedded in the life course - Model description in ODD+D format," MPIDR Working Papers WP-2015-002, Max Planck Institute for Demographic Research, Rostock, Germany.
    5. Maria Winkler-Dworak & Eva Beaujouan & Paola Di Giulio & Martin Spielauer, 2021. "Simulating family life courses: An application for Italy, Great Britain, Norway, and Sweden," Demographic Research, Max Planck Institute for Demographic Research, Rostock, Germany, vol. 44(1), pages 1-48.
    6. Gál, Róbert Iván & Törzsök, Árpád, 2015. "Háztartás-formálódás a MIDAS modellben [Household formation in the MIDAS-HU model]," Közgazdasági Szemle (Economic Review - monthly of the Hungarian Academy of Sciences), Közgazdasági Szemle Alapítvány (Economic Review Foundation), vol. 0(12), pages 1343-1358.
    7. Sebastian Dräger & Johannes Kopp & Ralf Münnich & Simon Schmaus, 2021. "Analyse der Grundschulversorgung in Trier mit Hilfe kleinräumiger Mikrosimulationsmodelle," Research Papers in Economics 2021-01, University of Trier, Department of Economics.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:jas:jasssj:2016-170-4. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Francesco Renzini (email available below). General contact details of provider: .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.