Veda2.0 Released!

Is there a way to adjust to the VTrun.cmd file generated when pressing solve in Veda?
And then you could also easily add postprocess casename.vd to that cmd.file.

Sorry that I forgot to change one leftover "demo5" in the cmd to the case name. I updated the zip file now.
(04-07-2023, 02:39 PM)VictorG Wrote: Hello

thank you for your answer. It does not meet my need yet. I will try to be more explicit.

My goal is to automate the postprocess of my vd files, I have a python command I want to execute after every run on the newly created vd.

I have few constraints:
-python procedure called after gdx2veda has created the vd file
-be sure it is the newly vd file that is processed and not an older one
-the procedure is linked to the model and the gams_wrk can be executed on different computers with no extra adjustment of the code as long as the computer has the python script

I thought that the attribute CmdF_bot was well suited for my problem because it can store the information of the modification in the dd files and the cmd is modified automatically each time dd files are generated. However there is a small difficulty here because the regular scenarios in excel contain input data while the casename (prefix of the vd)
is linked to the run manager.

The solution that would fit my need is to have an access to the veda variables of the Run manager with the attribute CmdF_bot. I noticed the %1 flag which corresponds to the case name in the VT_GAMS.CMD in the TIMES source code.

A suggestion would be to have an excel file with the following string 'postprocess %1.vd' for CmdF_bot in an excel file and that is interpreted as writing a line after the gdx2veda in the cmd corresponding to: postprocess casename.vd

I hope it is clearer

Dear Victor,

We have released Veda version v2.14.1.1 which allows you access to case name and vd file name in vtrun.cmd file via $case_name and $vd_file_name variables respectively. 
You can use them with CmdF_bot attribute. This version can be downloaded here.
Thank you Antti and Rohit for your help.

I tried both solutions, I have a preference for the one that define the variables in VTRUN.cmd in the first lines because I can keep the date in the name and it does not need an extra file.
Big Grin 
Thanks for the update.  Good the hear that you now have a comfortable solution!  Shy
Following on this thread, would it be possible to implement in veda a new attribute that inserts a line in the VTRUN.cmd before the gams call please ? Something similar to CmdF_bot but that adds a line between the lines that starts with Title and Call. My goal is to do some preprocessing before TIMES starts.
Sure, the next version will support "CmdF_top".
New Veda version supports "CmdF_top" attribute, and can be downloaded here.
(26-07-2023, 10:29 AM)rohit Wrote: New Veda version supports "CmdF_top" attribute, and can be downloaded here.

Thank you for this new feature, I managed to use it.
Dear Forum,

Is there an option under Veda 2.0 enabling to tick or untick the datetime stamp on .vd files, similar to the feature in Veda-FE?

I would consider this feature of putting date stamp on VD file names redundant after introducing the concept of "study".

We will include this option in the next version.
[+] 1 user Likes AKanudia's post

Possibly Related Threads…
Thread Author Replies Views Last Post
  GDX diff fails to find GAMS in VEDA vincedh 2 370 19-04-2024, 06:41 PM
Last Post: vincedh
  Veda online not solving. Getting veda 2.0? frangb99 0 190 17-03-2024, 11:52 PM
Last Post: frangb99
  VEDA Run Manager Module UgurHalden 1 471 21-02-2024, 05:14 PM
Last Post: Ravinder
Photo Installing VEDA in a server without internet acess sergio.vargas.cbba 1 358 06-02-2024, 04:24 PM
Last Post: Ravinder
  Capacity units in gdx/dd files vs veda iris 14 5,156 03-01-2024, 08:04 PM
Last Post: Antti-L
Question VBA code in Veda input files AKanudia 11 2,736 29-12-2023, 09:50 AM
Last Post: AKanudia
  No MIG records generated Antti-L 2 789 29-08-2023, 04:43 PM
Last Post: Antti-L
  ACT_EFF in TIMES and VEDA Attributes olexandr 3 1,056 28-08-2023, 04:52 PM
Last Post: AKanudia
  Connecting to VEDA and synchronizing Kristina.Haaskjold 5 1,672 12-07-2023, 07:32 PM
Last Post: Ravinder
  Veda Models based on regions Saad Awan 9 3,019 12-04-2023, 12:40 PM
Last Post: Saad Awan

Forum Jump:

Users browsing this thread: 1 Guest(s)