Wl MK

Gurobi-versary
Conversationalist
First Question
  • Total activity 16
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 4
  • Subscriptions 2

Activity overview

Latest activity by Wl MK
  • Wl MK commented,

    Zed Dean here is what I got: channels:  - https://conda.anaconda.org/gurobi  - http://conda.anaconda.org/gurobi  - defaults

  • Wl MK commented,

    Hi Zed Dean, I did exactly what you suggested, but I'm getting this: (my_gurobi950) C:\Users\Hp>conda install -c gurobi gurobi=9.5.0 -yCollecting package metadata (current_repodata.json): doneSolvi...

  • Wl MK commented,

    Thank you very much Maliheh.

  • Wl MK commented,

    Thank you, I tried with both  python -m pip install gurobipy and  python setup.py install but always getting: --------------------------------------------------------------------------- ImportError...

  • Wl MK commented,

    This code generates the same error: A=[0,4,3,2,8]B=[7,9,4,5,2]model = gp.Model("name")Var = model.addVars(5, lb=0, ub=sqrt(2), vtype=GRB.CONTINUOUS, name="var")xmin = model.addVar(lb=0, ub=sqrt(2)...

  • Wl MK commented,

    Thank you Maliheh When runing the code it raises an error: TypeError: unsupported operand type(s) for -: 'GenExprMax' and 'GenExprMin' at this line: m.addQConstr(y[i]*(xmax - xmin) == h[i] - xmin, ...

  • Wl MK created a post,

    Install Gurobi into Anaconda

    Ongoing

    Hi,I have installed a Gurobi (9.5.0) license, and when I want to Install Gurobi into Anaconda I faced this issue: (base) C:\Users\Hp>conda install gurobiCollecting package metadata (current_repodat...

  • Wl MK commented,

    So I should proceed as: model = gp.Model('name')Var = m.addVars(len(A), vtype=GRB.CONTINUOUS, name='var')xmin=m.addVars(1, vtype=GRB.CONTINUOUS, name='xmin')xmax=m.addVars(1, vtype=GRB.CONTINUOUS, ...

  • Wl MK commented,

    Hi Maliheh,The decision variables in the objective function are a binary type (0 or 1), and the variable Var is a Euclidean distance between points in a graph that has the x and y-axis bounded betw...

  • Wl MK created a post,

    How can I normalize a variable?

    Answered

    How can I normalize a variable added as a constraint that is been updated by the model? I need to have all values in the dictionary to be normalized at each update. model = gp.Model('name')Var = m....