Lukas Meier

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

Activity overview

Latest activity by Lukas Meier
  • Lukas Meier commented,

    I probably should have tested more cases, but setting repeat to 1 results in "MVars takes 908.07% of the time.", for anything above 1 MVars is significantly faster. At 2 it's 14.58%, starting at 10...

  • Lukas Meier commented,

    Hey Riley, thanks for the answer. I tried using your code as well as @np.ones instead of np.sum in my own code.I noticed that while @np.ones is in fact faster, at a low number of timesteps and/or r...

  • Lukas Meier created a post,

    Performance of MVar vs. list of Var

    Answered

    Getting more familiar with gurobi I recently updated my variable initialization in a complex model from lists of vars vars = []for _ in range(timesteps): vars.append(model.addVar()) to using MVar...

  • Lukas Meier commented,

    Thank you so much for your answer Jaromil, I think I' ve got the gist of it. In case somebody finds this with the same problem you can define the transformation function through constraints. In the...

  • Lukas Meier created a post,

    Trouble with using a transforming function on a variable

    Answered

    Hey, I am currently trying to optimize a model with parameteres that are influenced by economy of scale. Depending on the current value of the variable it is multiplied with the result of a transf...