This is project for Modelling and simulation subject. It models crude oil imports to Czech Republic and its consequent processing towards demand. It is used for simulation of cut and decrease of crude oil to Czechia and potential scenarios.
First, you need to install simlib library. It is included here.
- $ cd simlib
- $ make
- $ sudo make install
Then compile in the main directory with make.
The whole model is controlled via console. User can manage it with following commands
- next / n computes another day
- status [facility] prints status
- demand / d [comodity []] manages demand
- import / i [comodity []] manages import
- break / b [facility] breaks facility
- fix / f [facility] fixes facility
- quit / q / exit exits
Comodity might be one of following three
- benzin: benzin / b
- diesel: naphta / nafta / diesel / d / n
- asphalt: asphalt / asfalt / a
Available facilities are these:
- druzba: druzba / druzhba / d
- ikl: ikl / i
- kralupy: kralupy / k
- litvinov: litvinov / l
Number, as a third parameter, is set as new value for demand of the chosen comodity, for example (>> demand benzin 5).