Skip to main content

How to write sum starting from 5

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support.
  • Ryuta Tamura
    • 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

Post is closed for comments.