Mouhamad Obeid

  • Gurobi-versary
  • First Comment
  • First Question
  • Total activity 3
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 1

Activity overview

Latest activity by Mouhamad Obeid
  • Mouhamad Obeid commented,

    So this is my code below I am trying to fix the indexing in the addContrs. How should I go about doing my list to generate such constraints with different indices. import gurobipy as gp # parameter...

  • Mouhamad Obeid created a post,

    Indexing

    Answered

    m.addConstrs((x[i] + y[i-1] + z[i+1] == demands[i] + y[i] + z[i] for i in range(num_periods)), name="sdsd") how should I fix my indexing problem in the addConstrs function