pan class="p">:</span>
            <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;No annealings have converged. Run failed.&quot;</span><span class="p">)</span>
            <span class="k">return</span> <span class="kc">None</span>

        <span class="c1"># If annealing values are larger than the default. </span>
        <span class="c1"># Can happen for long time series and high dimensionality</span>
        <span class="n">min_obj_val</span> <span class="o">=</span> <span cl