Charitha Buddhika Heendeniya
- 合計アクティビティ 61
- 前回のアクティビティ
- メンバー登録日
- フォロー 0ユーザー
- フォロワー 0ユーザー
- 投票 0
- サブスクリプション 18
投稿
Charitha Buddhika Heendeniyaによる最近のアクティビティ-
Re-optimization with a partial solution and new constraints
回答済みHello 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
回答済みI 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
回答済みDear 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
回答済みDear 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
進行中I'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?
回答済みDear 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
進行中Dear 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
ユーザーの入力を待っています。I 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
ユーザーの入力を待っています。Dear 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
回答済みDear 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 ...