Veda2.0 Released!


Optimizing solver-opt files for stochastic runs
#1
Dear forum members,

I am currently running a few stochastic models, and I was wondering if there is any optimal/good solver configuration for stochastic models in Veda? I have so far been using the CPLEX solver with solver-option BA121-7. 

I am using a laptop with an AMD Ryzen 7 5800U processor with 8-core/16 thread, and I can see in my SolverOptFiles that I have the thread count set to 7. I assume setting it to -1, leaving only one core free, would make the program run faster.

Does anyone have any input on this or any suggestions for other things I could change?
If I need to give more information let me know. Thank you!
Reply
#2
This is a very nice presentation about cplex options in TIMES https://iea-etsap.org/webinar/CPLEX%20op...models.pdf

Multithreading lowers cpu clocks speed, so using more threads doesn't necessarily improve solution time. In my personal experience, one should never exceed the number of physical cores.
[+] 3 users Like MakRacz's post
Reply
#3
(07-01-2025, 04:02 PM)MakRacz Wrote: This is a very nice presentation about cplex options in TIMES https://iea-etsap.org/webinar/CPLEX%20op...models.pdf

Just popping in here again to say thank you, this presentation was super helpful, and helped in reducing my runtimes Smile
Reply
#4
(09-01-2025, 06:02 PM)LucasRM Wrote:
(07-01-2025, 04:02 PM)MakRacz Wrote: This is a very nice presentation about cplex options in TIMES https://iea-etsap.org/webinar/CPLEX%20op...models.pdf

Just popping in here again to say thank you, this presentation was super helpful, and helped in reducing my runtimes Smile

Could you please briefly explain which specific actions reduced computation time ?
Reply
#5
(13-01-2025, 07:39 PM)VictorG Wrote: Could you please briefly explain which specific actions reduced computation time ?

For me setting predual = -1, in the cplex.opt file cut my runtime down. In one of my model cases it went from 2 hours to 45 min. This is likely due to the fact that my model contains a lot of variables compared to constraints. 
Apart from that my relevant settings are: 
barorder 0 (also recommended)
baralg 1 (The fastest would likely be 3, but I have kept 1 for the solution quality)

I have not used barcolnz yet, and haven't had time to go into depth with the other options either.
[+] 2 users Like LucasRM's post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Q about parametric runs Antti-L 16 729 01-03-2025, 08:30 AM
Last Post: AKanudia
  Stochastic properties group and interpolation LucasRM 4 608 18-12-2024, 07:16 PM
Last Post: LucasRM
  Run Manager - Base files Dmytror 5 1,843 31-01-2024, 03:58 PM
Last Post: Ravinder
  Capacity units in gdx/dd files vs veda iris 14 6,499 03-01-2024, 08:04 PM
Last Post: Antti-L
Question VBA code in Veda input files AKanudia 11 3,850 29-12-2023, 09:50 AM
Last Post: AKanudia
  Reducing files Ceas19 14 6,527 10-05-2023, 12:59 PM
Last Post: Ceas19
  Selected files do not contain any Tag(s) which can be read with veda vangelis 5 3,009 10-03-2023, 12:10 PM
Last Post: AKanudia
  How to Install CPLEX Solver Iram Shahzadi 6 3,898 15-12-2022, 08:59 PM
Last Post: Antti-L
  About exporting LP files siyuan 4 3,239 13-09-2022, 09:56 AM
Last Post: siyuan
  CPLEX-error with stochastic run [email protected] 1 1,792 07-02-2022, 02:22 AM
Last Post: Antti-L

Forum Jump:


Users browsing this thread: 1 Guest(s)