# Multithreading in TMVA::GeneticAlgorithm

**URL:** <https://root-forum.cern.ch/t/multithreading-in-tmva-geneticalgorithm/37039>\
**Category:** TMVA\
**Created:** [December 3, 2019, 3:17pm UTC](https://root-forum.cern.ch/t/multithreading-in-tmva-geneticalgorithm/37039 "2019-12-03T15:17:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jniedzie](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jniedzie/32/19987_2.png) [@jniedzie](https://root-forum.cern.ch/u/jniedzie)\
**Post date:** [December 3, 2019, 3:17pm UTC](https://root-forum.cern.ch/t/multithreading-in-tmva-geneticalgorithm/37039/1 "2019-12-03T15:17:38Z")

</div>

Hi,

I’d like to ask if there is an option to run multithreaded optimization using TMVA::GeneticAlgorithm. I couldn’t find anything in the class reference nor in the user guide.

Thanks!

Jeremi

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [December 4, 2019, 9:10am UTC](https://root-forum.cern.ch/t/multithreading-in-tmva-geneticalgorithm/37039/2 "2019-12-04T09:10:03Z")

</div>

Hi Jeremi,

At the moment we don’t have a multi-thread implementation of the TMVA Genetic algorithm. If you want to contribute to port the current algorithm to multithreads we will be happy to accept your contribution

Cheers

Lorenzo

---

<div class="post-metadata">

**Author:** ![jniedzie](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jniedzie/32/19987_2.png) [@jniedzie](https://root-forum.cern.ch/u/jniedzie)\
**Post date:** [December 4, 2019, 3:00pm UTC](https://root-forum.cern.ch/t/multithreading-in-tmva-geneticalgorithm/37039/3 "2019-12-04T15:00:39Z")

</div>

Thank you Lorenzo!

If it turns out to be necessary I may try to implement parallel version, but for the time being I’ll just stick with the single-threaded one.

Cheers,  
Jeremi
