Skip to main content

The Stochastic Processes Generation in OpenModelica

  • Conference paper
  • First Online:
Distributed Computer and Communication Networks (DCCN 2016)

Abstract

This paper studies program implementation problem of pseudo-random number generators in OpenModelica. We give an overview of generators of pseudo-random uniform distributed numbers. They are used as a basis for construction of generators of normal and Poisson distributions. The last step is the creation of Wiener and Poisson stochastic processes generators. We also describe the algorithm to call external C-functions from programs written in Modelica. This allows us to use random number generators implemented in the C language.

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 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.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

References

  1. Jmodelica.org. http://www.jmodelica.org/

  2. LAPACKLinear Algebra PACKage. http://www.netlib.org/lapack/

  3. LMS Imagine.Lab Amesim. http://www.plm.automation.siemens.com/en_us/products/lms/imagine-lab/amesim/index.shtml

  4. MapleSim - High Performance Physical Modeling and Simulation - Technical Computing Software. http://www.maplesoft.com/products/maplesim/index.aspx

  5. Modelica and the Modelica Association Official Site. https://www.modelica.org/

  6. Multi-Engineering Modeling and Simulation - Dymola - CATIA. http://www.3ds.com/products-services/catia/products/dymola

  7. OpenModelica Official Site. https://www.openmodelica.org/

  8. SciLab Official Site. http://www.scilab.org/

  9. SuiteSparse: A Suite of Sparse Matrix Software. http://faculty.cse.tamu.edu/davis/suitesparse.html

  10. Wolfram SystemModeler. http://www.wolfram.com/system-modeler/index.html

  11. Using GNU Fortran (2015). https://gcc.gnu.org/onlinedocs/

  12. Python 3.5.1 Documentation, March 2016. https://docs.python.org/3/

  13. Ahrens, J.H., Dieter, U.: Computer methods for sampling from gamma, beta, poisson and bionomial distributions. Computing 12(3), 223–246 (1974)

    Article  MathSciNet  MATH  Google Scholar 

  14. Ahrens, J.H., Dieter, U.: Computer generation of poisson deviates from modified normal distributions. ACM Trans. Math. Softw. 8(2), 163–179 (1982)

    Article  MathSciNet  MATH  Google Scholar 

  15. Bell, J.R.: Algorithm 334: normal random deviates. Commun. ACM 11(7), 498 (1968)

    Article  Google Scholar 

  16. Box, G.E.P., Muller, M.E.: A note on the generation of random normal deviates. Ann. Math. Stat. 29(2), 610–611 (1958)

    Article  MATH  Google Scholar 

  17. Brown, R.G., Eddelbuettel, D., Bauer, D.: Dieharder: A Random Number Test Suite (2013). http://www.phy.duke.edu/~rgb/General/rand_rate.php

  18. Collier, A.M., Hindmarsh, A.C., Serban, R., Dward, C.S.W.: User Documentation for KINSOL v2.8.2 (2015). http://computation.llnl.gov/sites/default/files/public/kin_guide.pdf

  19. Devroye, L.: Non-Uniform Random Variate Generation. Springer-Verlag, New York (1986)

    Book  MATH  Google Scholar 

  20. Galassi, M., Gough, B., Jungman, G., Theiler, J., Davies, J., Booth, M., Rossi, F.: The GNU Scientific Library Reference Manual (2015). https://www.gnu.org/software/gsl/manual/gsl-ref.pdf

  21. Klckner, A., van der Linden, F.L.J., Zimmer, D.: Noise generation for continuous system simulation. In: Proceedings of the 10th International Modelica Conference, Lund, Sweden, pp. 837–846 (2014)

    Google Scholar 

  22. Kloeden, P.E., Platen, E.: Numerical Solution of Stochastic Differential Equations, 2nd edn. Springer, Heidelberg (1995)

    MATH  Google Scholar 

  23. Knop, R.: Remark on algorithm 334 [g5]: normal random deviates. Commun. ACM 12(5), 281 (1969)

    Article  Google Scholar 

  24. Knuth, D.E.: The Art of Computer Programming, Volume 2 (3rd Ed.): Seminumerical Algorithms, vol. 2. Addison-Wesley Longman Publishing Co. Inc., Boston (1997)

    Google Scholar 

  25. L’Ecuyer, P.: Combined multiple recursive random number generators. Oper. Res. 44(5), 816–822 (1996)

    Article  MATH  Google Scholar 

  26. L’Ecuyer, P.: Tables of linear congruential generators of different sizes and good lattice structure. Math. Comput. 68(225), 249–260 (1999)

    Article  MathSciNet  MATH  Google Scholar 

  27. L’Ecuyer, P., Blouin, F., Couture, R.: A search for good multiple recursive random number generators. ACM Trans. Modeling Comput. Simul. (TOMACS) 3(2), 87–98 (1993)

    Article  MATH  Google Scholar 

  28. L’Ecuyer, P., Simard, R.: Testu01: AC library for empirical testing of random number generators. ACM Trans. Mathe. Softw. (TOMS) 33(4), 22 (2007)

    Article  MathSciNet  Google Scholar 

  29. Marsaglia, G.: Xorshift RNGs. J. Stat. Softw. 8(1), 1–6 (2003)

    Google Scholar 

  30. Matsumoto, M., Nishimura, T.: Mersenne twister: A 623-dimensionally equidistributed uniform pseudo-random number generator. ACM Trans. Model. Comput. Simul. 8(1), 3–30 (1998)

    Article  MATH  Google Scholar 

  31. Nishida, A., Fujii, A., Oyanagi, Y.: Lis: Library of Iterative Solvers for Linear Systems. http://www.phy.duke.edu/~rgb/General/rand_rate.php

  32. Øksendal, B.: Stochastic Differential Equations: An Introduction with Applications, 6th edn. Springer, Heidelberg (2003)

    Book  MATH  Google Scholar 

  33. Panneton, F., L’Ecuyer, P.: On the xorshift random number generators. ACM Trans. Model. Comput. Simul. 15(4), 346–361 (2005)

    Article  Google Scholar 

  34. Platen, E., Bruti-Liberati, N.: Numerical Solution of Stochastic Differential Equations with Jumps in Finance. Springer, Heidelberg (2010)

    Book  MATH  Google Scholar 

  35. Rose, G.: Kiss: A Bit Too Simple (2011). https://eprint.iacr.org/2011/007.pdf

Download references

Acknowledgments

The work is partially supported by RFBR grants No’s 14-01-00628, 15-07-08795, and 16-07-00556. Also the publication was supported by the Ministry of Education and Science of the Russian Federation (the Agreement No. 02.a03.21.0008).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Leonid A. Sevastianov .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer International Publishing AG

About this paper

Cite this paper

Gevorkyan, M. et al. (2016). The Stochastic Processes Generation in OpenModelica. In: Vishnevskiy, V., Samouylov, K., Kozyrev, D. (eds) Distributed Computer and Communication Networks. DCCN 2016. Communications in Computer and Information Science, vol 678. Springer, Cham. https://doi.org/10.1007/978-3-319-51917-3_46

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-51917-3_46

  • Published:

  • Publisher Name: Springer, Cham

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

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

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics