Charitha Buddhika Heendeniya
- Total activity 61
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 18
Posts
Recent activity by Charitha Buddhika Heendeniya-
What is phase 1 solution?
AnsweredDear community, Below is a screenshot of a section of the log produced by Gurobi. I want to understand what this means, especially what a phase-1 solution is, and how I can use that information. I ...
-
VRP problem with time constraints
OngoingDear community, I'm trying to model a very basic VRP problem with time constraints. In the code below, please check the time constraint I wrote in two different ways. The constraint in the comment ...
-
IndexError solved by reordering constraints
Awaiting user inputI came across an interesting behavior of Gurobi. After writing down a series of constraints, I received "IndexError: invalid index to scalar variable." I was able to fix this error just by reorderi...
-
Defining a constraint on time when time is an index to other variables
Awaiting user inputDear Community, I have defined the following variables. # Binary indicator variable: 1 if bus b is leaving node i at time t, else 0n0 = model.addVars(n_cars, n_nodes, time_steps, vtype=GRB.BINARY, ...
-
Indicator constraint for multiplying two binary variables
AnsweredDear community, I have a constraint of the form: if x(i, j, k) == 1: sum (over t) {p(i, j, k, t) * u(i, j, t)} == 1 Could you please advise me on how to model it using Gurobi? Here x, u, and t are ...