Skip to main content

GUI-Based, Efficient Genetic Programming and AI Planning for Unity3D

  • Chapter
  • First Online:

Part of the book series: Genetic and Evolutionary Computation ((GEVO))

Abstract

We present a GUI-driven and efficient Genetic Programming (GP) and AI Planning framework designed for agent-based learning research. Our framework, ABL-Unity3D, is built in Unity3D, a game development environment. ABL-Unity3D addresses challenges entailed in co-opting Unity3D: making the simulator serve agent learning rather than humans playing a game, lowering fitness evaluation time to make learning computationally feasible, and interfacing GP with an AI Planner to support hybrid algorithms. We achieve this by developing a Graphical User Interface (GUI) using the Unity3D editor’s programmable interface and performance optimizations. These optimizations result in at least a 3x speedup. In addition, we describe ABL-Unity3D by explaining how to use it for an example experiment using GP and AI Planning. We benchmark ABL-Unity3D by measuring the performance and speed of the AI Planner alone, GP alone, and the AI Planner with GP.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD   169.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

References

  1. Guerci, E., Hanaki, N.: Learning Agent and Agent-Based Modeling, pp. 1765–1766. Springer US, Boston, MA (2012). https://doi.org/10.1007/978-1-4419-1428-6_545

  2. Abar, S., Theodoropoulos, G.K., Lemarinier, P., O’Hare, G.M.: Agent based modelling and simulation tools: a review of the state-of-art software. Comput Sci Rev 24, 13–33 (2017)

    Article  Google Scholar 

  3. Gunaratne, C., Reyes, R., Hemberg, E., O’Reilly, U.M.: Evaluating efficacy of indoor non-pharmaceutical interventions against covid-19 outbreaks with a coupled spatial-sir agent-based simulation framework. Sci. Rep. 12(1), 1–11 (2022)

    Article  Google Scholar 

  4. O’Reilly, U.M., Toutouh, J., Pertierra, M., Sanchez, D.P., Garcia, D., Luogo, A.E., Kelly, J., Hemberg, E.: Adversarial genetic programming for cyber security: a rising application domain where gp matters. Genet. Program. Evol. Mach. 21(1), 219–250 (2020)

    Article  Google Scholar 

  5. Unity Technologies: Unity3d (2020). https://unity3d.com

  6. Juliani, A., Berges, V.P., Teng, E., Cohen, A., Harper, J., Elion, C., Goy, C., Gao, Y., Henry, H., Mattar, M., Lange, D.: Unity: a general platform for intelligent agents (2018). https://arxiv.org/abs/1809.02627. (10.48550/)

  7. Koza, J.R.: Genetic programming as a means for programming computers by natural selection. Stat. Comput. 4(2), 87–112 (1994). https://doi.org/10.1007/BF00175355

  8. Fikes, R.E., Nilsson, N.J.: Strips: A new approach to the application of theorem proving to problem solving. Artif. Intell. 2(3), 189–208 (1971). https://doi.org/10.1016/0004-3702(71)90010-5

  9. Gold, R., Haydn Grant, A., Hemberg, E., Gunaratne, C., O’Reilly, U.M.: ABL-Unity3D (2022). https://github.com/ALFA-group/ABL-Unity3D

  10. Unity Gaming Report (2022). https://create.unity.com/gaming-report-2022

  11. Unity Documentation. https://docs.unity3d.com/ScriptReference/

  12. Quick guide to the Unity Asset Store. https://unity3d.com/quick-guide-to-unity-asset-store

  13. Aron Granberg: A* pathfinding project. https://www.arongranberg.com/astar/

  14. Montana, D.J.: Strongly typed genetic programming. Evol. Comput. 3(2), 199–230 (1995). http://vishnu.bbn.com/papers/stgp.pdf

  15. Georgievski, I., Aiello, M.: An overview of hierarchical task network planning (2014). https://arxiv.org/abs/1403.7426. (10.48550/)

  16. Potter, M.A., Jong, K.A.D.: A cooperative coevolutionary approach to function optimization. In: PPSN (1994)

    Google Scholar 

Download references

Acknowledgments

This research was, in part, funded by the U.S. Government. The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the U.S. Government.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Robert Gold .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Gold, R., Grant, A.H., Hemberg, E., Gunaratne, C., O’Reilly, UM. (2023). GUI-Based, Efficient Genetic Programming and AI Planning for Unity3D. In: Trujillo, L., Winkler, S.M., Silva, S., Banzhaf, W. (eds) Genetic Programming Theory and Practice XIX. Genetic and Evolutionary Computation. Springer, Singapore. https://doi.org/10.1007/978-981-19-8460-0_3

Download citation

  • DOI: https://doi.org/10.1007/978-981-19-8460-0_3

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-19-8459-4

  • Online ISBN: 978-981-19-8460-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics