Simon Hoof

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

Posts

Recent activity by Simon Hoof Recent activity Votes
  • m.getAttr('X', x) gives warning

    Answered

    I'm solving the following MWE:  import gurobipy as gpfrom gurobipy import GRB# ParameterN = (1, 2)M = (1, 2)c = {'x': {1:  2, 2:  1},     'y': {1:  3, 2: -1},}A = {'x': {(1, 1):  1, (1, 2):  2,    ...

  • tupledict.select() does not work as expected

    Answered

    Consider the following MWE: import gurobipy as gpd = gp.tupledict([    ((('AT','CH'),('BE','AT')), 1),    ((('AT','CH'),('BE','DE')), 2),    ((('AT','DE'),('BE','DE')), 3),   ])   print(d.select((...

  • Is a bound a constraint?

    Answered

    Let \(T \subset \mathbb N\) denote time, and \(x : T \to \mathbb R\) a function (the variable). For some subset  \(T_0 \subseteq T\), I require \(x(t) = 0\) for all \(t \in T_0\). I was wondering i...