Krypt

  • Gurobi-versary
  • Investigator
  • Conversationalist
  • Total activity 41
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 3
  • Subscriptions 14

Posts

Recent activity by Krypt Recent activity Votes
  • Adding new columns to existing model

    Hello, I am trying to implement column generation. Right now, I am redefining the model and solving it from scratch every time I generate a new column, this is very inefficient. I am wondering if t...

  • Enforcing arc (a,b)=1 in branch and price algorithm for routing problem

    Answered

    I am trying to solve a vehicle routing problem using a branch and price algorithm. At the restricted master problem  (RMP), we consider two branches: we enforce an arc (a,b)=0 and  (a,b)=1 (I am fo...

  • Modeling variable multiplication and/or divisions

    Answered

    Hi, My optimization model contains constraints with variable multiplications and divisions. For example, I want to add constraints like below: mdl.addConstr(x/y >= (1/z) + epsilon)mdl.addConstr(x/(...

  • How to define user cuts at a branch and bound node?

    Answered

    How do I define user cuts at a branch and bound node similar to lazy constraints in a callback?

  • What is root relaxation in MILP models?

    Answered

    When I see the log of my milp model I see the following line appears: Root relaxation: objective 2.551315e+03, 541 iterations, 0.01 seconds (0.01 work units) What does this mean? How is it differen...

  • Modeling conditional constraints with products of variables inside

    Answered

    Hi, I am trying to model a conditional constraint in Python Gurobi. Here x_e is a binary variable, z and b are continuous variables and r is a parameter. if b[e,i] >=0.8 then z[e,j] >= x_e[e,(i,j)...

  • Variable elimination in Gurobi

    Answered

    I am solving a routing problem where I want to delete an arc x[i,j] (binary variable) if a certain condition is met. How do I efficiently do this? Do I use model.remove? for i in N: for j in N: ...

  • Making MIP converge faster

    Answered

    Hello, I am trying to solve a MIP in Gurobi, but it is taking a long time (see screenshot). I know the exact optimal solution is 31827.39074. As you see, the solution is very close to the exact op...

  • KeyError: addConstr

    Answered

    Hello, I am encountering keyError at the constraint highlighted in bold. The reproducible code is below. I want to have a set of constraints where my binary variables X are summed up to L[i]. I wan...

  • Error in addConstr: KeyError

    Answered

    Hello, I am new to Gurobi. I am having difficulty modeling a constraint in Python-Gurobi. My variable X looks like this: 'x[2_OD2,24]', 'x[2_OD2,234]', 'x[10_OD2,24]', 'x[10_OD2,234]' I want a cons...