Skip to main content

How to write sum starting from 5

Answered

Comments

1 comment

  • Ryuta Tamura
    Gurobi Staff Gurobi Staff

    Hi Laynufar,

    To get a more accurate answer, we recommend that you provide the smallest example that can reproduce the error by itself.
    Please see: Tutorial: Preparing a Minimal Reproducible Example

    The following is a response based on my guess, and these are matters related to Python, not Gurobi:

    • "TypeError: 'numpy.float64' object cannot be interpreted as an integer":
      Your code contains numpy.float64 (possibly T). 
    • Writing sum starting from 5:
      You can use range(5,N). 

    Regards,
    Ryuta

     

    1

Please sign in to leave a comment.