MIDACO Parallelization in C# (Parallel.ForEach)

 

Running MIDACO in serial and parallel on a cpu-time expensive objective function.

 

  

Example_parallel.cs

 

Midaco.cs  [ parallel version ]

 

Serial Mode (P=1) Parallel Mode (P=2) Parallel Mode (P=4)
Total Time: 32.36 Seconds Total Time: 15.52 Seconds Total Time: 9.74 Seconds
 Original: x1 Speed Up:  x2.0 
Speed Up:  x3.3 

 

The results can be reproduced with the limited MIDACO version (available here).