Hello to all!
I have a doubt about using start values in variables.
My hypothesis was that could speed up the execution time if I provide most of the values in variable vector already in optimum position.
In my problem I have a constraint that consumes a lot of processing time. When I run the model without this constrait, I got a very quick solutin output. So I Think I could use it to speed up processing considering that not all variables are suitable to changes when the restriction is applied
But my benchmark results show that it isnt affecting the processing time at all. Should I do something additional to achieve this time reduction? Or my hiphotesis doesnt make sense?
Here the benchmarks for the optimiztion without the constraint (t0); with constraint but no startup (t1) and with constraint initializated with (t10 ← t0)
BenchmarkTools.Trial: 100 samples with 1 evaluation.
Range (min … max): 12.752 ms … 38.410 ms ┊ GC (min … max): 0.00% … 57.62%
Time (median): 14.630 ms ┊ GC (median): 0.00%
Time (mean ± σ): 15.587 ms ± 3.695 ms ┊ GC (mean ± σ): 3.68% ± 9.27%
▂█▁ ▁
▃▆▄███▅▄▄█▇▄▃▁▁▃▃▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▃▃ ▃
12.8 ms Histogram: frequency by time 34 ms <
Memory estimate: 4.80 MiB, allocs estimate: 67712.
BenchmarkTools.Trial: 100 samples with 1 evaluation.
Range (min … max): 1.307 s … 1.647 s ┊ GC (min … max): 0.00% … 0.00%
Time (median): 1.333 s ┊ GC (median): 0.00%
Time (mean ± σ): 1.349 s ± 50.825 ms ┊ GC (mean ± σ): 0.23% ± 0.57%
▁█▁▃▁▁
▆██████▅▄▄▆▄▃▄▄▃▄▁▁▁▁▃▁▁▁▄▁▁▃▁▃▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▃ ▃
1.31 s Histogram: frequency by time 1.6 s <
Memory estimate: 18.67 MiB, allocs estimate: 478216.
BenchmarkTools.Trial: 100 samples with 1 evaluation.
Range (min … max): 1.304 s … 1.599 s ┊ GC (min … max): 0.00% … 0.00%
Time (median): 1.334 s ┊ GC (median): 0.00%
Time (mean ± σ): 1.348 s ± 42.970 ms ┊ GC (mean ± σ): 0.22% ± 0.54%
▁▂ ▂█
▃▅▅███▇███▇▃▅▅▄▃▃▄▄█▃▁▃▃▁▁▃▃▁▁▃▁▁▃▁▁▃▁▁▃▃▁▁▁▁▁▁▁▁▃▁▁▁▁▁▁▃ ▃
1.3 s Histogram: frequency by time 1.5 s <
Memory estimate: 18.67 MiB, allocs estimate: 478216.
Code for result replication is in upload area. I’m using Julia 1.8.5.
Thanks in advance and best regards!!!
SHC_MOA.jl (24.2 KB)