Mohammed Osman

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

Activity overview

Latest activity by Mohammed Osman
  • Mohammed Osman created a post,

    Gurobi Results display and export

    Answered

    Hello! I have a Gurobi optimization model, which has around 130 binary decision variables, and more than 4000 continuous decision variables. After optimizing the model: How do I retrieve and export...

  • Mohammed Osman commented,

    Hello Maliheh,  Thank you for answering my queries. I'll try these and see how it goes. Best regards,Mohammed.

  • Mohammed Osman commented,

    Hello Maliheh,  You understood it correctly. That's what I'm trying to achieve. m.addConstr(quicksum(i.variable for i in oysters_list if i.face == 'North') == 1, 'oyster_north_const') As you said, ...

  • Mohammed Osman commented,

    Hello Maliheh,  Thank you for the response.  I understand that constraint is applied to exactly one binary variable. But my concern is that I want to apply it to one of each type i.e., I have 2 Nor...

  • Mohammed Osman created a post,

    Constraint modeling

    Answered

    Hello!  I have 4 variables in a list of objects i.e.,oysters_list. My aim is to select just 1 binary variable of each year and face from the Main Objects created in the list and apply the constrain...

  • Mohammed Osman created a post,

    gurobipy.GurobiError: Invalid argument to LinExpr multiplication

    Awaiting user input

    Hello! I'm trying to apply a quicksum function to the following expression. But I'm receiving the following error: gurobipy.GurobiError: Invalid argument to LinExpr multiplication sample_list: {lis...