Veda2.0 Released!


Source code for the commodity input/output for each process
#1
Hi,

I'm looking for a source code with the information of commodity input/output for each process.

The purpose of this is to put it into SQL Server to build a database for UKTM runs. Currently we've put the VD file produced from VEDA Front End into SQL Server and it's working well. But it doesn't show the which process has which commodities as inputs and outputs.

It would be great if you could point me in the right direction.

Thank you
Shibo
Reply
#2
I am not sure what you mean by "source code" here. But by reading the documentation, I can see that one can request having the process topology in the *.VD file if you use the option RPT_OPT('FLO','7')=1. It will be reported in the attribute PAR_TOP.

In addition, the documentation also tells me that the *.VDT file produced by VEDA-FE also contains the topology information. And looking at the files produced, I can see that is indeed the case. In addition, the documentation also mentions that the GAMS attributes TOP(r,p,c,io) and RPC_IRE(r,p,c,ie) contain the topology information. The full GDX file produced from each run thus contains the topology information in these GAMS attributes, which you could easily dump out in CSV format.

So, from the documentation, I quickly found at least these options for getting the information showing which process has which commodities as inputs and outputs.
Reply
#3
(09-01-2020, 09:23 PM)Antti-L Wrote: I am not sure what you mean by "source code" here. But by reading the documentation, I can see that one can request having the process topology in the *.VD file if you use the option RPT_OPT('FLO','7')=1. It will be reported in the attribute PAR_TOP.

In addition, the documentation also tells me that the *.VDT file produced by VEDA-FE also contains the topology information. And looking at the files produced, I can see that is indeed the case. In addition, the documentation also mentions that the GAMS attributes TOP(r,p,c,io) and RPC_IRE(r,p,c,ie) contain the topology information. The full GDX file produced from each run thus contains the topology information in these GAMS attributes, which you could easily dump out in CSV format.

So, from the documentation, I quickly found at least these options for getting the information showing which process has which commodities as inputs and outputs.

Hi Antti,

Thank you so much for your reply, that's very helpful.

It's good to know that it would be included in the *.VD file if I change the option. I've found RPT_OPT in the front end, but how can I change the setting to be RPT_OPT('FLO','7')=1?

And also what would be the software to open VDT file and GDX file?

Thank you so much
Shibo
Reply
#4
As far as I can see, the VEDA Attributes master tells that the indexes in RPT_OPT should be specified in Other_Indexes.  The value can be put into AllRegions. Thus, to define RPT_OPT('FLO','7')=1, I think you can put FLO~7 into Other_Indexes and 1 into AllRegions (in a ~TFM_INS table).

The *.VDT files are basically just CSV files (fixed format text files, with comma separated values, see Wikipedia:CSV), which you can directly read into any database system. The GAMS GDX files are binary files, which you can view with the GAMS utilities, and as said, you can easily dump out any attributes into CSV files by using the GDXDUMP utility. Please read the GAMS documentation for details.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Disabling a process in a region Aymane 8 13,716 29-04-2024, 05:32 PM
Last Post: Antti-L
  SHARE-I/O for all process and all time horizon ejin 7 4,116 08-03-2023, 10:55 AM
Last Post: AKanudia
  Ratio between output commodities seb 31 65,807 01-07-2022, 04:06 PM
Last Post: vincedh
  About base year process and New tech guozhi1305 0 1,008 21-05-2022, 04:53 PM
Last Post: guozhi1305
  Addition of process elec from H2 not working srchlela 2 3,298 21-04-2021, 05:11 PM
Last Post: srchlela
  How to set emission factor for each year of a specific process during its lifetime? Xin Wang 14 22,027 06-01-2021, 11:17 PM
Last Post: Antti-L
  Issue with constraint: Error Code 172 NeilGrant 5 7,319 28-05-2020, 02:08 PM
Last Post: NeilGrant
  Storage output without capacity deployment ach 3 4,809 15-05-2020, 03:04 PM
Last Post: Antti-L
  Commodity Names: Maximum length Sandro_Luh 3 5,364 05-03-2020, 07:23 PM
Last Post: Antti-L
  Errors after installation of new TIMES Source code and upgrading my MS office to 2016 Ismail Kimuli 5 8,021 09-01-2020, 04:43 PM
Last Post: Ismail Kimuli

Forum Jump:


Users browsing this thread: 1 Guest(s)