Veda2.0 Released!


TIMES-Macro-MSA MSADDF.DD file UNDF
#1
Hi!

I was trying out one of the 2017 advanced demos on the TIMES-Macro-MSA implementation. (starting from the link I found in another post on the forum: https://forum.kanors-emr.org/showthread.php?tid=299&highlight=macro)
I copied all the files from the demo, synced and did the following:
1) Ran with the CSA switch and the SMA_parameters scenario file activated
2) Ran with the MSA switch and the SMA_parameters scenario file deactivated
However, I did not manage to reproduce the results, I am getting errors in the MSA run.

Two things I noticed:
1) The contents of the MSADDF.DD file look weird to me: some parameter value equal 'UNDF'. It seems only the last period is interpreted correctly. (see text below)
2) I get a similar looking MSADDF.DD file when comparing in VEDA 1 and VEDA 2 (including UNDF values) but the PARAMETER TM_DDF(R,ALLYEAR,C) is empty in VEDA 2. (and UNDF in VEDA 1) I suppose this could be due to the demo model version that is not compatible with VEDA 2? Or is the TIMES-Macro-MSA feature not yet operational in VEDA 2?

Thanks in advance!


PARAMETER TM_GROWV(R,ALLYEAR) /
REG1.2005          UNDF
REG1.2006          UNDF
REG1.2010          UNDF
REG1.2015          UNDF
REG1.2020          UNDF
REG1.2025          UNDF
REG1.2030          UNDF
REG1.2035          UNDF
REG1.2040          UNDF
REG1.2045          UNDF
REG1.2050      0.8000000
REG2.2005          UNDF
REG2.2006          UNDF
REG2.2010          UNDF
REG2.2015          UNDF
REG2.2020          UNDF
REG2.2025          UNDF
REG2.2030          UNDF
REG2.2035          UNDF
REG2.2040          UNDF
REG2.2045          UNDF
REG2.2050      1.1500000
Reply
#2
Interesting issue.

I just tested that DemoS_Adv (I found a VEDA2 version of it in my archives), with the CSA switch (MSA calibration), and got no such problem.  The convergence of the algorithm was also quite good.  The run completed normally and MSADDF.DD looked fine to me.  So, the reasons to the issues you see remain undisclosed to me.
Reply
#3
The listing file (*.LST) could disclose some useful information about your issue, if the problem persists. One can include such files to posts here as attachments (zipped).
Reply
#4
(13-12-2024, 02:54 PM)Antti-L Wrote: The listing file (*.LST) could disclose some useful information about your issue, if the problem persists. One can include such files to posts here as attachments (zipped).

Here I attached the *.LST and the MSADDF.DD file!


Attached Files
.zip   veda_forum.zip (Size: 37.88 KB / Downloads: 2)
Reply
#5
Ok, the listing file shows that Conopt finds the calibration model infeasible in the very first round.

** Infeasible solution. The Preprocessor has determined that the model is infeasible.

Such does not happen in my run, and so your model is in some way behaving badly. I can see that the initial LP run nonetheless solves to optimality:

**** MODEL STATUS      1 Optimal
**** OBJECTIVE VALUE          499835.4619


However, that objective value is vastly different from what I am getting:

**** MODEL STATUS      1 Optimal                 
**** OBJECTIVE VALUE        25302357.9221

This latter objective value is neither identical to the old documented value for this case, but it is quite close to it. Anyway, your objective value for the initial LP is only 2% of the old documented value, which indicates some major problem in your model.  Maybe it has indeed not been converted to VEDA2 correctly. Perhaps Amit could tell where the correct VEDA2 version is available (I cannot recall where I found a converted version, it was back in 2020).
Reply
#6
Hi! Thank you for your support so far, I am getting closer to figuring this out!

Small update and a new question:
I retried the procedure on another version of one of the demo models, as I no longer trust the version I was using.
I used the demo model DemoS_007 and included the SMA_parameters scenario file (adapted for the new period definition).
The MDADDF.DD file now looks good after the calibration step! (all values are there, and nothing is UNDF)
So it seems like the demo version I was using was indeed somehow faulty.

But, now a new issue arises in the MSA step... I can see the following in the *msa.run file:

*** Error 282 in D:\VEDA2\GAMS_SrcTIMES.v4.6.8\preppm.msa
    Unable to open include file
      Hint: Does the filename need to be quoted?


I attached the *csa.lst and *msa.lst files here again. 
It shows a similar message for the MSA step.

**** LINE    96 INPUT      D:\VEDA2\Gams_Wrk_TIMESxMacro\DemoS_007-MSA\demos_007-msa.RUN
**** 282  Unable to open include file
****        Hint: Does the filename need to be quoted?


Do you know what could cause this error?

Thanks in advance!
Enya


Attached Files
.zip   veda_forum_2.0.zip (Size: 54.17 KB / Downloads: 2)
Reply
#7
> Do you know what could cause this error?

I guess so.  VEDA2 tends to create a separate working folder for all cases, and then the MSADDF.DD created by the CSA (calibration) run may not be found when running in the MSA folder. 

Try copying it from the CSA folder into the MSA run folder, and see if that helps.
Reply
#8
(16-12-2024, 05:57 PM)Antti-L Wrote: > Do you know what could cause this error?

I guess so.  VEDA2 tends to create a separate working folder for all cases, and then the MSADDF.DD created by the CSA (calibration) run may not be found when running in the MSA folder. 

Try copying it from the CSA folder into the MSA run folder, and see if that helps.

It works! Thank you so much for the quick reply!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  TIMES-Macro-MSA and gdx behaviour Enya 3 330 27-01-2025, 07:09 PM
Last Post: Antti-L
  Running TIMES model on linux HPC cluster LucasRM 7 3,029 21-01-2025, 11:13 PM
Last Post: AKanudia
  Subres File [email protected] 1 257 10-12-2024, 08:51 AM
Last Post: KanORS-AssistGPT
  A question about EU-TIMES [email protected] 1 344 19-08-2024, 12:07 AM
Last Post: Antti-L
  One question about EU-TIMES seanli12354 0 425 09-06-2024, 06:54 PM
Last Post: seanli12354
  An error when I read JRC-EU-TIMES Lee 7 2,392 03-06-2024, 05:28 PM
Last Post: Lee
  One question of EU-TIMES: CO2 emissions for gas/oil production/transmission process [email protected] 1 611 30-05-2024, 02:58 PM
Last Post: Antti-L
  Is there a way to adjust to the VTrun.cmd file generated when pressing solve in Veda? kristofferand 24 11,421 22-05-2024, 09:20 AM
Last Post: AKanudia
  The potential mistake exists in the EU-TIMES [email protected] 11 3,358 09-05-2024, 03:42 PM
Last Post: wnijs
  Optimization problem: TIMES code caicedoeng 1 737 12-02-2024, 11:32 AM
Last Post: Ravinder

Forum Jump:


Users browsing this thread: 1 Guest(s)