# Config the default fitter(minimizer) in histgram or graph fitting

**URL:** <https://root-forum.cern.ch/t/config-the-default-fitter-minimizer-in-histgram-or-graph-fitting/49207>\
**Category:** Newbie\
**Tags:** hist\
**Created:** [March 16, 2022, 9:44am UTC](https://root-forum.cern.ch/t/config-the-default-fitter-minimizer-in-histgram-or-graph-fitting/49207 "2022-03-16T09:44:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![whyaqmhbu](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/a9adbd/32.png) [@whyaqmhbu](https://root-forum.cern.ch/u/whyaqmhbu)\
**Post date:** [March 16, 2022, 9:44am UTC](https://root-forum.cern.ch/t/config-the-default-fitter-minimizer-in-histgram-or-graph-fitting/49207/1 "2022-03-16T09:44:46Z")

</div>

Hi all,

May I ask for your help about how to change the minimizer strategy?  
I am using gragh-\>Fit() to perform the fit with ROOT 5.34.  
The defalt strategy is 1, while I would like to change that to 2.  
Thanks.

_ROOT Version:_ 5.34  
_Platform:_ linux  
_Compiler:_ gcc

* * *

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [March 16, 2022, 10:02am UTC](https://root-forum.cern.ch/t/config-the-default-fitter-minimizer-in-histgram-or-graph-fitting/49207/2 "2022-03-16T10:02:41Z")

</div>

Try: `ROOT::Math::MinimizerOptions::SetDefaultStrategy(2);`
