title: Python deprecation warning about sum function
body: <p>I coded an algorithm and it worked properly till 2 weeks ago. I get this warning and I cannot understand why I get it. The warning is:</p>
  
  <blockquote>
    <p>"C:/Users/Administrator/Documents/Python/sezg_1_diffne.py:147:
    DeprecationWarning: Calling np.sum(generator) is deprecated, and in
    the future will give a different result. Use
    np.sum(np.from_iter(generator)) or the python sum builtin instead.
    obje_1=detmas.objVal+sum(hopen[i]*fixedCost for i in Fset)"</p>
  </blockquote>
  
  <p>A part of my code is:</p>
  
  <pre><code>obje_1=detmas.objVal+sum(hopen[i]*fixedCost for i in Fset)
  </code></pre>
  
  <p>I tried something which I found in internet such as removing numpy and reinstall it. However these solutions did not work for my code. How I can solve it? Thanks in advance...</p>