Maryam Azani

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

Activity overview

Latest activity by Maryam Azani
  • Maryam Azani commented,

    Thanks, something was wrong with my constraint condition. The name pattern was subscripted correctly.

  • Maryam Azani commented,

    Hi Maliheh,   The issue is that the name pattern is subscripted without considering the if condition in my constraint. I need the name to follow the same conditions as in my constraint (if month >=...

  • Maryam Azani created a post,

    Replace automatic naming in model.addConstrs

    Answered

    Hi, I am trying to code the constraint names based on iterations and a condition which should replace the name automatically created by Gurobi. However, the naming does not replace the automatic na...

  • Maryam Azani created a post,

    objective function with nested sum

    Awaiting user input

    I have an objective function with multiple operations for which I tried nesting with help of quicksum (below): X, I, Y, and B are model variables I have tried the following code which works but th...

  • Maryam Azani commented,

    Thanks, this works.

  • Maryam Azani commented,

    Hi, I have the same problem but the logic is a bit different. I want to model: if I - safety stock >= 0 then X = 1; otherwise X = 0   I have the code as follows but I am not sure if this is correct...

  • Maryam Azani created a post,

    conditional constraint in Gurobi

    Answered

    I am trying to model a conditional constraint in Guuobi python: if a>= b then c == 1, otherwise c == 0 a and c are both model variables and c is binary [assume a = I, b = safetystock, and c = X] I ...