Skip to main content

Comparison of RUST and C# as a Tool for Creation of a Large Agent-Based Simulation for Population Prediction of Patients with Alzheimer’s Disease in EU

  • 1649 Accesses

Part of the Lecture Notes in Computer Science book series (LNAI,volume 9876)

Abstract

Introduction: During a creation of an agent based simulation is important to choose appropriate tools suitable for simulated topic. Large scale agent based simulations with a wast number of agents are very demanding on computational resources.

Aim: Aim is to compare two approaches (1) Object oriented written in C# and (2) low level in Rust for creation of agent-based simulation and point out pros and cons of these tools.

Methods: Simulation with over 500 millions agents is created in RUST and C#. Performance results from repeated simulation runs are compared. Runtime, memory consumption, multithreading, random number generation and agent synchronization is discussed.

Results: Significant savings of computational resources were observed in Rust simulation. It’s advanced options of memory management and concurrent programming options resulted in fractional execution time and memory consumption compared to C#. However, implementation in C# took less time to create and can be easily understood by domain experts.

Keywords

  • Agent-based
  • Simulation
  • C#
  • Rust
  • Programming language comparison
  • Alzheimer’s disease

This is a preview of subscription content, access via your institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • DOI: 10.1007/978-3-319-45246-3_24
  • Chapter length: 10 pages
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
eBook
USD   79.99
Price excludes VAT (USA)
  • ISBN: 978-3-319-45246-3
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book
USD   99.99
Price excludes VAT (USA)

References

  1. Programming Rust. Oreilly & Associates Inc (2015)

    Google Scholar 

  2. RUST (2016). https://www.mozilla.org/en-US/research/

  3. RUST ownership (2016). https://doc.rust-lang.org/book/ownership.html

  4. RUST rng library (2016). https://github.com/rust-lang-nursery/rand

  5. Aaby, B.G., Perumalla, K.S., Seal, S.K.: Efficient simulation of agent-based models on multi-gpu and multi-core clusters. In: Proceedings of the 3rd International ICST Conference on Simulation Tools and Techniques, p. 29 (2010)

    Google Scholar 

  6. Albahari, J., Albahari, B.: C# 5.0 in a Nutshell: The Definitive Reference. In a nutshell, O’Reilly Media, Incorporated (2012)

    Google Scholar 

  7. Bakar, N.A., Selamat, A.: Agent-based model checking verification framework. In: 2012 IEEE Conference on Open Systems (ICOS), pp. 1–4. IEEE (2012)

    Google Scholar 

  8. Bakar, N.A., Selamat, A.: Runtime verification of multi-agent systems interaction quality. In: Selamat, A., Nguyen, N.T., Haron, H. (eds.) ACIIDS 2013, Part I. LNCS, vol. 7802, pp. 435–444. Springer, Heidelberg (2013)

    CrossRef  Google Scholar 

  9. Balbaert, I.: Rust Essentials. Packt Publishing Ltd, Birmingham (2015)

    Google Scholar 

  10. Brookmeyer, R., Corrada, M.M., Curriero, F.C., Kawas, C.: Survival following a diagnosis of alzheimer disease. Arch. Neurol. 59(11), 1764–1767 (2002)

    CrossRef  Google Scholar 

  11. EUROSTAT: (2015). http://ec.europa.eu/eurostat/statistics-explained/index.php/People_in_the_EU_E28093_population_projections

  12. Fougères, A.J.: Modelling and simulation of complex systems: an approach based on multi-level agents. arXiv preprint (2012). arXiv:1201.3880

  13. Ganguli, M., Dodge, H.H., Shen, C., Pandav, R.S., DeKosky, S.T.: Alzheimer disease and mortality: a 15-year epidemiological study. Arch. Neurol. 62(5), 779–784 (2005)

    CrossRef  Google Scholar 

  14. Grigoryev, I.: AnyLogic 6 in three days: a quick course in simulation modeling. AnyLogic North America (2012)

    Google Scholar 

  15. Klimova, B., Maresova, P., Valis, M., Hort, J., Kuca, K.: Alzheimer’s disease and language impairments: social intervention and medical treatment. Clin. Interv. Aging 10, 1401–1407 (2015). http://europepmc.org/articles/PMC4555976

    Google Scholar 

  16. Maresova, P., Mohelska, H., Dolejs, J., Kuca, K.: Socio-economic aspects of alzheimer’s disease. Curr. Alzheimer Res. 12(9), 903–911 (2015)

    CrossRef  Google Scholar 

  17. Mohelska, H., Maresova, P., Kuča, K.: Economic and managerial aspects of alzheimer’s disease in the czech republic. Procedia Soc. Behav. Sci. 109, 674–678 (2014)

    CrossRef  Google Scholar 

  18. MSDN: (2016). https://msdn.microsoft.com/en-us/library/w0x726c2%28v=vs.110%29.aspx

  19. MSDN: (2016). https://msdn.microsoft.com/en-us/library/system.threading.tasks.parallel.foreach%28v=vs.110%29.aspx

  20. MSDN: (2016). https://msdn.microsoft.com/en-us/library/system.random.aspx

  21. MSDN: (2016). https://msdn.microsoft.com/en-us/library/system.security.cryptography.rngcryptoserviceprovider.aspx

  22. Silberschatz, A., Galvin, P.B., Gagne, G., Silberschatz, A.: Operating System Concepts, vol. 4. Wesley, Reading (1998)

    MATH  Google Scholar 

  23. Stellman, A., Greene, J.: Head First C#, 1st edn. O’Reilly, Sebastopol (2007)

    Google Scholar 

  24. Tomášková, H., Kühnová, J., Cimler, R., Doležal, O.: Prediction of population with alzheimers disease in eu using system dynamics model. Neuropsychiatric Dis. Treat. 12, 1589 (2016)

    CrossRef  Google Scholar 

  25. Troelsen, A.: Pro C# 5.0 and the.NET 4.5 Framework. Apress, Berkely (2012)

    CrossRef  Google Scholar 

Download references

Acknowledgment

The support of the grant project GAČR #14-02424S and the specific research project SPEV at FIM UHK is gratefully acknowledged.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Richard Cimler .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and Permissions

Copyright information

© 2016 Springer International Publishing Switzerland

About this paper

Cite this paper

Cimler, R., Doležal, O., Pscheidl, P. (2016). Comparison of RUST and C# as a Tool for Creation of a Large Agent-Based Simulation for Population Prediction of Patients with Alzheimer’s Disease in EU. In: Nguyen, N., Iliadis, L., Manolopoulos, Y., Trawiński, B. (eds) Computational Collective Intelligence. ICCCI 2016. Lecture Notes in Computer Science(), vol 9876. Springer, Cham. https://doi.org/10.1007/978-3-319-45246-3_24

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-45246-3_24

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-45245-6

  • Online ISBN: 978-3-319-45246-3

  • eBook Packages: Computer ScienceComputer Science (R0)