Veda2.0 Released!


Is there a way to adjust to the VTrun.cmd file generated when pressing solve in Veda?
#16
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.
Reply
#17
(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.
Reply
#18
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.
Reply
#19
Big Grin 
Thanks for the update.  Good the hear that you now have a comfortable solution!  Shy
Reply
#20
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.
Reply
#21
Sure, the next version will support "CmdF_top".
Reply
#22
New Veda version 2.16.1.1 supports "CmdF_top" attribute, and can be downloaded here.
Reply
#23
(26-07-2023, 10:29 AM)rohit Wrote: New Veda version 2.16.1.1 supports "CmdF_top" attribute, and can be downloaded here.

Thank you for this new feature, I managed to use it.
Reply
#24
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?

Lucas
Reply
#25
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  TIMES-Macro-MSA MSADDF.DD file UNDF Enya 7 436 16-12-2024, 06:06 PM
Last Post: Enya
  Subres File [email protected] 1 183 10-12-2024, 08:51 AM
Last Post: KanORS-AssistGPT
  Controversial handling of CG indexes by VEDA Antti-L 16 2,227 06-08-2024, 07:53 AM
Last Post: AKanudia
  GDX diff fails to find GAMS in VEDA vincedh 2 658 19-04-2024, 06:41 PM
Last Post: vincedh
  Veda online not solving. Getting veda 2.0? frangb99 0 382 17-03-2024, 11:52 PM
Last Post: frangb99
  VEDA Run Manager Module UgurHalden 1 789 21-02-2024, 05:14 PM
Last Post: Ravinder
Photo Installing VEDA in a server without internet acess sergio.vargas.cbba 1 573 06-02-2024, 04:24 PM
Last Post: Ravinder
  Capacity units in gdx/dd files vs veda iris 14 6,087 03-01-2024, 08:04 PM
Last Post: Antti-L
Question VBA code in Veda input files AKanudia 11 3,519 29-12-2023, 09:50 AM
Last Post: AKanudia
  No MIG records generated Antti-L 2 994 29-08-2023, 04:43 PM
Last Post: Antti-L

Forum Jump:


Users browsing this thread: 1 Guest(s)