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-
Re-optimization with a partial solution and new constraints
AnsweredHello all, I'm testing a re-optimization method that goes as follows. Initialize model model.solve() --> solution stored as model.sol Edit model.sol by removing solutions to some variables (incl. ...
-
Multiple callbacks question
AnsweredI want to know if I can create a MIPSOL callback routine like the one below. Where MIPSOL: Add a lazy constraint to the model, Check if the incumbent solution is still feasible, If feasible: get t...
-
General tips for using Lazy constraints
AnsweredDear all, I want to start this thread to share tips/ suggestions for using lazy constraints (using the attribute or callback). Below I share some of my experiences on this, and I would like if othe...
-
About MemLimit
AnsweredDear all, I'm trying to use MemLimit parameter e = Env("gurobi.log", params={'MemLimit': 31, 'PreSparsify': 1, 'MIPFocus': 3, ...
-
Constraint for a max, number of overlapping tasks
OngoingI'm trying to write a constraint (for a task scheduling problem) where I want to say "a maximum of n tasks can overlap". I have the following variables, x(i, j): Task j follows task i (variable) T(...
-
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 ...