# Price input format When running Prodrisk from the command line, price input is given by a combination of three files: - **PRISREKKE.PRI/PRISREKKE.CSV** - **PRISAVSNITT.DATA** - **PRISREKKE.PRISMOD** ## PRISREKKE.PRI The file **PRISREKKE.PRI** should contain spot market prices for all weeks in all historical years. Within each week, prices are given with price period [](../time_resolution/time_resolution.md) resolution. The file structure is presented below. **';.'** - Seperator and decimal sign **2;'';;'';'';** **3;'';'';'';** **3;3;0;10;** - 3, 3, (0=Parallell, 1=Serial), Number of weeks **10;1;10;** - Number of weeks, start week, end week **2;1901;1902;** - Number of historical years, historical years **4;25;89;40;14;** - Number of price periods, hours per price period (should add up to 168) **;;1;2;3;4;5;6;7;8;9;10;** - Index for each week **1901;1;...** - Historical year, price period, (price week 1), (price week 2), etc **1901;2;...** **1901;3;...** **1901;4;...** **1902;1;...** **1902;2;...** **1902;3;...** **1902;4;...** Starting with the price time series file **PRISREKKE.PRI**, **PRISREKKE.CSV** or any other **pricefilename.csv**, as described below, *genpris* can be run. In *genpris*, the number of price nodes is decided: ![](./genpris.png) *genpris* generates the file **PRISREKKE.PRISMOD** (or **pricefilename.PRISMOD**). ## PRISAVSNITT.DATA The file **PRISAVSNITT.DATA** must correspond to the number of price periods in the price time series. The file is auto generated in the program *ltm*, see *LTM* documentation for further information. However, the price periods in the two files (**pricefilename.PRI** and **PRISAVSNITT**) must be consistent. **PRISAVSNITT.DATA** controls the coupling between individual hours of the week and the chosen price periods [](../time_resolution/time_resolution.md)-->. The file structure is presented below. **1,** - deprecated, write "1," **4,** - number of price periods **1, 'pricePeriod1 ',** - price period index and name **2, 'pricePeriod2 ',** **3, 'pricePeriod3 ',** **4, 'pricePeriod4 ',** **3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,Mon** - corresponding price period for each hour **3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,Tue** **3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,Wed** **3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,Thu** **3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,Fri** **2, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,Sat** **2, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,Sun** ## PRISREKKE.PRISMOD The file **PRISREKKE.PRISMOD** contains price nodes and transition probabilities for the price model used during backwards recursion. It is generated by the program _*genpris.exe* which takes **PRISREKKE.PRI** and **PRISAVSNITT.DATA** as input. If the price input is changed between Prodrisk runs, *genpris.exe* should be run such that PRISREKKE.PRISMOD correctly represents the edited price input. ![](./price_node_probabilities.png)