Tooba Khan

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

Activity overview

Latest activity by Tooba Khan
  • Tooba Khan commented,

    Thank you. The solution worked for me. Although I am using the sum of x_{i}'s as the optimisation function. But Gurobi does not seem to do it correctly. For instance, I want the sum to be minimum a...

  • Tooba Khan commented,

    The variables are continuous.

  • Tooba Khan created a post,

    Atmost k constraint in Gurobipy.

    Awaiting user input

    How can I add an atmost k constraint in Gurobipy? I have an array of gurobi variable, I want atmost 5 of these variables to have non zero values.

  • Tooba Khan created a post,

    Error in addition of absolute values of variables.

    Answered

    Hi, I am trying to add the absolute values of 16 variables. But gurobipy is throwing the following error: TypeError: unsupported operand type(s) for +: 'GenExprAbs' and 'GenExprAbs' How can I sum u...