Skip to main content

A Domain-Specific Language to Process Causal Loop Diagrams with R

  • Conference paper
  • First Online:
Operations Research Proceedings 2019

Part of the book series: Operations Research Proceedings ((ORP))

Abstract

Causal Loop Diagrams (CLDs) are a flexible and valuable tool for diagramming the feedback structure of systems. In strategic decision-making and management, we use CLDs to structure and explore complex decision-making situations, to foster learning, as a basis for simulation models, and to communicate simulation results. However, the crucial dissemination of CLDs and the possible learnings beyond the project-team is challenging.

To overcome this problem, we developed a Domain-Specific Language that allows modeling experts with little programming experience to generate visual representations of CLDs that (1) replace the most complicated CLD elements with a step-by-step explanation and (2) strive to lower the barriers to learning while addressing a broader target audience.

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

Access this chapter

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

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    At the moment we support Vensim. Support for Stella, the other major SD tool, is planned for a future release.

  2. 2.

    The DSL source code and further instructions are hosted at https://github.com/ims-fhs/cld.

  3. 3.

    Relatively flexible languages like R let you bend the rules a little bit using non-standard evaluation and meta-programming [15].

  4. 4.

    The notation is a simplified version (with only two operators) of the Backus-Naur form.

  5. 5.

    Import covers two cases here: (1) the case, where we import a CLD; (2) the case, where we select an already imported CLD.

  6. 6.

    This is an application of the Expression Builder pattern in combination with the Method Chaining pattern [14] exploiting R’s possibilities to define custom infix operators [15] and doing non-standard evaluation in combination with meta-programming [13, 15].

  7. 7.

    The colors are adjusted to grey tones for better printing results.

  8. 8.

    More information on the on-going project can be found at https://www.fhsg.ch/de/forschung-dienstleistungen/institute-zentren/institut-fuer-modellbildung-simulation/care-system-design/verbesserte-planung-der-langzeitpflege/.

References

  1. Forrester, J.W.: Industrial Dynamics. M.I.T. Press, Cambridge (1961)

    Google Scholar 

  2. Richardson, G.P.: Reflections on the foundations of system dynamics. Syst. Dyn. Rev. 27, 219 (2011)

    Google Scholar 

  3. Torres, J.P., Kunc, M., O’Brien, F.: Supporting strategy using system dynamics. Eur. J. Oper. Res. 260, 1081–1094 (2017)

    Google Scholar 

  4. Lane, D.C.: Modelling as learning: a consultancy methodology for enhancing learning in management teams. Eur. J. Oper. Res. 59, 64–84 (1992)

    Google Scholar 

  5. Vennix, J.A.M.: Group model-building: tackling messy problems. Syst. Dyn. Rev. 15(4), 379–401 (1999)

    Google Scholar 

  6. Paich, M., Sterman, J.D.: Boom, bust, and failures to learn in experimental markets. Manag. Sci. 39, 1439–1458 (1993)

    Google Scholar 

  7. Senge, P.M.: The Fifth Discipline: The Art and Practice of the Learning Organization. Doubleday/Currency, New York (1990)

    Google Scholar 

  8. Lane, D.C.: The emergence and use of diagramming in system dynamics: a critical account. Syst. Res. Behav. Sci. 25, 3–23 (2008)

    Google Scholar 

  9. Sterman, J.: Business Dynamics: Systems Thinking and Modeling for a Complex World. Irwin/McGraw-Hill, New Delhi (2000)

    Google Scholar 

  10. Wolstenholme, E.F.: Qualitative vs quantitative modelling: the evolving balance. J. Oper. Res. Soc. 50, 422 (1999)

    Google Scholar 

  11. Hovmand, P.S.: Community Based System Dynamics. Springer, New York (2014)

    Google Scholar 

  12. Ihaka, R., Gentleman, R.: R: A language for data analysis and graphics. J. Comput. Graph. Stat. 5, 299 (1996)

    Google Scholar 

  13. Wickham, H.: Advanced R (CRC Press, Boca Raton, 2015)

    Google Scholar 

  14. Fowler, M.: Domain-Specific Languages (Addison-Wesley, Boston, 2011)

    Google Scholar 

  15. Mailund, T.: Domain-Specific Languages in R: Advanced Statistical Programming. Apress, New York (2018)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Adrian Stämpfli .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 The Editor(s) (if applicable) and The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Stämpfli, A. (2020). A Domain-Specific Language to Process Causal Loop Diagrams with R . In: Neufeld, J.S., Buscher, U., Lasch, R., Möst, D., Schönberger, J. (eds) Operations Research Proceedings 2019. Operations Research Proceedings. Springer, Cham. https://doi.org/10.1007/978-3-030-48439-2_79

Download citation

Publish with us

Policies and ethics