The aivika-gpss package

[ Tags: bsd3, library, simulation ] [ Propose Tags ]

This package allows defining simulation models in terms of a GPSS-like domain specific language, which can be useful if you are going to translate your models from GPSS into Aivika [1, 2].

Note that the GPSS-like domain specific language is not equivalent to the original GPSS language, but it may return very similar results in some cases, while it can also return quite different results in other cases.

The package implements the most of GPSS simulation blocks, but the main difference is as follows.

Like GPSS, the package tries to treat the transact priorities properly within each block. Here it works in a very similar way even for such non-trivial blocks as PREEMPT, GATHER and ASSEMBLE. But unlike GPSS, the blocks behave independently from each other, where the transact priorities are not used when deciding which of the blocks will be activated next. The order of activating the blocks is unpredictable.

There is a layer of emulation. The package creates a new discontinuous process for each new transact. Then that process becomes fully responsible for processing the transact by the blocks. Therefore, the speed of simulation is slower than it could be when implementing the same model but based on using the standard Aivika facilities.

The rough estimation is that this particular package is slower in 2-3 times than the existent GPSS simulators in case of sequential simulation. But the point is that you can combine GPSS with discontinuous processes, events and even agents within the same model. Moreover, you can use GPSS in parallel and distributed simulation models.

Finally, you can use the following prepared example [3].

[1] http://hackage.haskell.org/package/aivika

[2] http://hackage.haskell.org/package/aivika-transformers

[3] https://github.com/dsorokin/aivika-gpss-test

Properties

Versions 0.3, 0.4
Dependencies aivika (>=5.3), aivika-transformers (>=5.3), base (>=4.2 && <6), containers (>=0.4.0.0), hashable (>=1.2.0.0), mtl (>=1.1.0.2), unordered-containers (>=0.1.0.0) [details]
License BSD3
Copyright (c) 2017. David Sorokin <david.sorokin@gmail.com>
Author David Sorokin
Maintainer David Sorokin <david.sorokin@gmail.com>
Category Simulation
Home page http://www.aivikasoft.com
Source repository head: git clone https://github.com/dsorokin/aivika-gpss
Uploaded Sat Sep 30 07:16:59 UTC 2017 by DavidSorokin
Distributions NixOS:0.3
Downloads 89 total (39 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-09-30 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees