Veda2.0 Released!


VAR_CAP info in vd-file but not in gdx-file, why?
#1
Hi,
 
I am looking for some help in troubleshooting an issue I am having with the gams-solution gdx-file generated after a TIMES solution. When I look at the VAR_CAP parameter within the gdx-file, it does not include capacity-information for all active TIMES processes. This is strange since the information is available in the VEDA output (VD-file) from the same scenario. Any help regarding this issue would be much appreciated? 
 
I would also be delighted if someone could point me to the file in the source code that generates information on VAR_CAP and writes it to the VD-file. 

An observation: It seems that the processes that are not included in the gdx (VAR_CAP) are processes that have been specified in the VT-files using STOCK~region. In contrast, the VT-file-processes where the region is specified in an independent column appears to be present in the GDX -file with var_cap-information. 

Best regards,

Kristoffer
Kristoffer S. Andersen <br />Advisor, Danish Energy Agency
Reply
#2
Are you sure?
1) There is no such parameter as "STOCK" in TIMES; the parameter is called PRC_RESID.
2) The existing capacities defined by using PRC_RESID are reported in the PAR_PASTI parameter, and are subsequently imported into VEDA-BE or VEDA2 results in the VAR_Cap parameter. So they are absolutely both in the VD file and the GDX file and therefore I suspect that you are mistaken. At least I can always see them correctly included in VEDA-BE and VEDA2 VAR_Cap results.

See the vdd file entries:
* VEDA Attr     GAMS             - indexes -
  VAR_Cap       par_capl         r t p
  VAR_Cap       par_pasti        r t p v

As to the model variables VAR_CAP(r,t,p), they are only present in the model when needed. But most users want all capacities reported, whether they are existing or new, or having a VAR_CAP variable or not, and therefore the full capacity is always reported into VEDA in VAR_Cap.
Reply
#3
(18-03-2021, 08:03 PM)Dear Antti, Wrote: Thank you a ton for taking the time to help me :-D

1) Thanks for the clarification on the STOCK (attribute used in VEDA) and PRC_RESID (the parameter in the GDX-file).
2) I was able to extract the information I need from par_capl(r,t,p):"new capacity" and par_pasti(r,t,p,"0"):"residual capacity". 


Best regards,

Kristoffer

N.B. The quest to extract data directly from the GDX-file reflects that I am updating the tool we use at the Danish Energy Agency to: 1) exchange information between a TIMES model and a CGE model; and 2) report results from a TIMES solution. The ultimate goal is to collect all relevant output from a TIME model in one parameter with 12ish dimensions. I will be happy to share and discuss this work with anyone interested, and at some point, provide the gams-code here on the VEDA-forum. 


Are you sure?
1) There is no such parameter as "STOCK" in TIMES; the parameter is called PRC_RESID.
2) The existing capacities defined by using PRC_RESID are reported in the PAR_PASTI parameter, and are subsequently imported into VEDA-BE or VEDA2 results in the VAR_Cap parameter. So they are absolutely both in the VD file and the GDX file and therefore I suspect that you are mistaken. At least I can always see them correctly included in VEDA-BE and VEDA2 VAR_Cap results.

See the vdd file entries:
* VEDA Attr     GAMS             - indexes -
  VAR_Cap       par_capl         r t p
  VAR_Cap       par_pasti        r t p v

As to the model variables VAR_CAP(r,t,p), they are only present in the model when needed. But most users want all capacities reported, whether they are existing or new, or having a VAR_CAP variable or not, and therefore the full capacity is always reported into VEDA in VAR_Cap.
Kristoffer S. Andersen <br />Advisor, Danish Energy Agency
Reply
#4
Thank you for the additional info.

If you want to collect all relevant output from a TIMES model, then I think the vdd file (times2veda.vdd) can best give you the overview of all the TIMES results parameters (stored in the GDX file), from which the VD file results are taken. The VD file is likewise an attempt to present all relevant output from a TIMES model.

And the documentation, Part II, gives some more info on the report parameters in Section 3.3 Report parameters.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  TIMES-Macro-MSA MSADDF.DD file UNDF Enya 7 709 16-12-2024, 06:06 PM
Last Post: Enya
  Subres File [email protected] 1 257 10-12-2024, 08:51 AM
Last Post: KanORS-AssistGPT
  Is there a way to adjust to the VTrun.cmd file generated when pressing solve in Veda? kristofferand 24 11,422 22-05-2024, 09:20 AM
Last Post: AKanudia
  CCS retrofit file documentation ejin 3 2,868 07-07-2022, 04:22 AM
Last Post: Antti-L
  Copying data from B-Y template to new excel file Kristina.Haaskjold 3 3,584 17-09-2021, 04:33 PM
Last Post: Kristina.Haaskjold
  Timeslice order in the ts.dd file DOlih 2 2,907 16-07-2021, 03:36 AM
Last Post: DOlih
  Update a LIFETIME of technology by Scenario file ? JozefO 25 27,209 07-02-2021, 10:24 PM
Last Post: Antti-L
  Import of processes from BY file faulted Lukas 6 6,825 15-10-2020, 02:23 AM
Last Post: Lukas
  results tab not showing same values of the VD file canismajoris 8 8,482 30-09-2020, 09:57 PM
Last Post: AKanudia

Forum Jump:


Users browsing this thread: 1 Guest(s)