Veda2.0 Released!


How to adjust the VTRUN.cmd in Parametric Runs
#1
Dear All, 
 
I would like to perform parametric runs with different CPLEX options. 
To this end I try to instruct the VTRun.cmd to create an option file by using CmdF_top attribute which before the GAMS call will add something like:
 
timeout /t 10 /nobreak
REM create/overwrite cplex.opt in current working directory for Parametric
echo * BA120-7 > cplex.opt
echo advind 0 >> cplex.opt
echo baralg 1 >> cplex.opt
echo barcrossalg 2 >> cplex.opt
echo barepcomp 1e-11 >> cplex.opt
 
for this purpose.
 
I have tested the use CmdF_top with a regular scenario and works fine, however it doesn’t work in parametric scenario, 
as in all cases the VTRun.cmds are not aware of any additional line.
 
Is this behavior expected or do I miss something?
Is there an alternative way to perform Cplex options parametric runs?
I attach my parametric scenario.
 
Thank you
Philip Siakkis


Attached Files
.xlsx   Scen_Par-Cplex_Options.xlsx (Size: 17.83 KB / Downloads: 2)
Reply
#2
I am not a VEDA developer, but as there is no response from VEDA support, I can maybe suggest trying to use SFCmd_top / SFCmd_bot instead of CmdF_top. Just write the commands creating the cplex.opt file into the parametric scenario DD file, using GAMS syntax, e.g. the following lines:

$onecho > cplex.opt
  * BA120-7
  advind 0
  baralg 1
  barcrossalg 2
  barepcomp 1e-11
  $offecho


I think it should work like this, just the syntax being a bit different.
I tested it, but only directly with GAMS (modifying a parscen DD file), and that worked well. So, what would remain to be tested is that using SFCmd_top / SFCmd_bot will indeed write those lines out.
[+] 1 user Likes Antti-L's post
Reply
#3
Ahh... it appears that neither SFCmd_Top / SFCmd_Bot nor CmdF_Top / CmdF_Bot appears to work with Scen_Par* files, but RFCmd_BOT does work. Actually, I had made that conclusion already earlier on the Forum, but had forgotten about that. But anyway, I tested with RFCmd_BOT now, and it worked fully as expected, and like I understood you were wishing. And Cplex did indeed use the cplex.opt written out by those GAMS statements for each parametric case.
[+] 1 user Likes Antti-L's post
Reply
#4
(22-03-2026, 11:51 PM)Antti-L Wrote: Ahh... it appears that neither SFCmd_Top / SFCmd_Bot nor CmdF_Top / CmdF_Bot appears to work with Scen_Par* files, but RFCmd_BOT does work. Actually, I had made that conclusion already earlier on the Forum, but had forgotten about that. But anyway, I tested with RFCmd_BOT now, and it worked fully as expected, and like I understood you were wishing. And Cplex did indeed use the cplex.opt written out by those GAMS statements for each parametric case.

Dear Antti,
Thank you for your suggestions.
RFCmd_BOT works fine and the user must be careful when ordering the lines to be added.
I can verify that RFCmd_DD works also fine in parametric runs.

Please allow me to share with other users a Parametric scenario template for using diferrent cplex options.

I still cannot introduce a timebreak between parscen runs, but I hope that in the future CmdF_top will work in parscen mode.

Thank You
Philip


Attached Files
.xlsx   Scen_Par-Cplex_Options_via_RFCmd.xlsx (Size: 17.1 KB / Downloads: 5)
[+] 2 users Like philip's post
Reply
#5
https://www.dropbox.com/scl/fi/xp97zu9agro1oklmltotr/Veda2.0_localhost_4.3.2.1.zip?rlkey=44wbsm95ck3x0a7384cy8kh0p&dl=0

This version supports all cmd attributes in parscen.

it will be released as the next production version soon.
[+] 1 user Likes AKanudia's post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Runs status from run manager lbtermansen 1 247 23-03-2026, 06:49 PM
Last Post: Ravinder
  Subject: How to prevent VEDA from generating vd-files during model runs? KristofferEML 4 792 22-08-2025, 11:48 AM
Last Post: KristofferEML
  Excel formulas in parametric scenarios till 5 1,244 16-05-2025, 10:36 AM
Last Post: kanbee
  Q about parametric runs Antti-L 16 2,794 01-03-2025, 08:30 AM
Last Post: AKanudia
  parametric case name VictorG 21 3,948 26-02-2025, 02:11 PM
Last Post: AKanudia
  Optimizing solver-opt files for stochastic runs LucasRM 4 1,599 13-01-2025, 08:18 PM
Last Post: LucasRM
  Is there a way to adjust to the VTrun.cmd file generated when pressing solve in Veda? kristofferand 24 15,469 22-05-2024, 09:20 AM
Last Post: AKanudia
  Problem in setting Max Runs vahid.aryanpur 2 3,748 30-06-2021, 08:55 PM
Last Post: vahid.aryanpur

Forum Jump:


Users browsing this thread: 1 Guest(s)