
Erik Breuer
- Total activity 18
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 3
Activity overview
Latest activity by Erik Breuer-
Erik Breuer commented,
Hi Jaromil, are my variable names not unique: for k in inst.clusters():for i in inst.nodes(k):for j in inst.nodes(k):if i != j:for t in range(0, T + 1):if inst.distance(i, j) <= t:x[i, j, t] = m.ad...
-
Erik Breuer commented,
Hi Jaromil, I actually have follow-up question, if you don't mind.I am used to accessing the solution values of variables via the X variable, but how would I access/extract only the t in my x[i, j,...
-
Erik Breuer commented,
Hi Jaromil, thank you for your explanation (I have 0 experience in C++). My clusters did indeed need a 0 denoting the depot in each of them. The sets in the Code suggested as much.I am running the ...
-
Erik Breuer commented,
Hi Jaromil, sorry for the confusion. Same model, different use case. The clusters correspond to the orders set in the C++ Code. You could help me understand the following lines in the code: public...
-
Erik Breuer commented,
It always shows a KeyError in which either i or j equals 0.Could it be that my clusters_nodes_depot need to include a depot in every cluster? I included the depot ("0") in both clusters and now the...
-
Erik Breuer commented,
Ok I have tried printing the whole set of x variables and it becomes pretty clear that t should'nt be the 'evil' dimension. The output with a reduced T (once T = 100, later T = 50) always iterates ...
-
Erik Breuer commented,
Hi Jaromil, I already started the while True loop at t = 42 as that is the value of the rounded euclidean distance between node 0 and 3 (x_0 = -5, y_0 = -5; x_3 = 32, y_3 = 15). No matter where I s...
-
Erik Breuer commented,
Hi Jaromil, len(x) equals 3890 for T = 400 (maximum time). When I try to retrieve the length of the t dimension with either of your suggested methods I get a KeyError with t = 0, ,because t needs ...
-
Erik Breuer commented,
Hi Jaromil, how do I print its length in each dimension? Does the Gurobi API have a method for this? Best regards, Erik
-
Erik Breuer commented,
Hi Jaromil, I tried casting it to integer but the key error stays the same (except it shows a 42 instead of the float 42.0 in the x variables):-/ Thanks Erik