Vaibhav Dixit

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

Activity overview

Latest activity by Vaibhav Dixit
  • Vaibhav Dixit commented,

    Hi, I have three constraints say constr1 : gp.quicksum(P[1,t] for t in range(1,n)) >= 1) constr2 : gp.quicksum(x[i,1] + x[i,2] for i in lst) == len(lst)) constr3 : gp.quicksum(x[i,2] for i in lst) ...

  • Vaibhav Dixit commented,

    Hi, Thanks, its working now. So basically to ensure  that "gp.quicksum(x[i] for i in lst)"  is odd , the aux variable takes its values ​​accordingly, there is no need to add more constraints corres...

  • Vaibhav Dixit created a post,

    How to add modulo constraints in gurobi

    Answered

    Hi Gurobi Community, I'm trying to add a constrains which represents that \sum( x[i] for i in lst) is odd. I have approached it in two ways but in both ways I have found errors. First way: mo...

  • Vaibhav Dixit commented,

    Hi, Thanks, it's working now. I have another doubt, till now I only worked on quadratic equations something like $ \sum_{j=0}^{n-1}P[i,j]* (\sum_{ (k \in lst[i]) } m[k,0] ) == 0 $ for each i in ra...

  • Vaibhav Dixit commented,

    Hi Riley, Thanks for your reply. It is not showing complete errors. KeyError Traceback (most recent call last) /tmp/ipykernel_770156/583479396.py in <module> 18 # model.addConstr((y[i] == 0) >>(...

  • Vaibhav Dixit created a post,

    adding quadratic expression in indicator constraints

    Answered

    Hi Gurobi Community, I am trying to add a conditional indicator constraint as follows: model = gp.Model()n = 3pa=[i for i in range(n)]P=model.addVars(len(pa), len(pa), vtype=GRB.BINARY, name="P")x ...