
Danning Xie
- 合計アクティビティ 14
- 前回のアクティビティ
- メンバー登録日
- フォロー 0ユーザー
- フォロワー 0ユーザー
- 投票 0
- サブスクリプション 4
アクティビティの概要
Danning Xieさんの最近のアクティビティ-
Danning Xieさんがコメントを作成しました:
Hi Maliheh, Thank you for the explanation. However, I don't really understand why such a constraint would affect the value space of variable `x`. Since `d` is not associated with any objective f...
-
Danning Xieさんが投稿を作成しました:
model give different results after adding constraint to a non-used variable
回答済みHello, I found that the model give different results after adding a constraint to a variable which is not used in any objective functions. I am trying to find the optimal value for `x` with 2 ob...
-
Danning Xieさんがコメントを作成しました:
Thank you! It helps. Danning
-
Danning Xieさんが投稿を作成しました:
gurobipy.GurobiError: Divisor must be a constant
回答済みI was trying to add an objective function to maximize the average probability: model.setObjectiveN(-sum(x[i,j]*prob[i][j] for i in range(n) for j in range(m))/x.sum(), index=0) where x is variable ...
-
Danning Xieさんがコメントを作成しました:
Thank you Jonasz and Jaromił. This helps a lot. Danning
-
Danning Xieさんがコメントを作成しました:
Hi, Thank you! I wonder by the design of Gurobi, will these two methods help accelerate the optimization or reduce the search space? Danning
-
Danning Xieさんが投稿を作成しました:
How do I set subset of variables to constant value or disable optimization
回答済みI am trying to find solution for binary variable `x_{i,j}`, where `i =1,2,...,n` and `j=1,2,... m`. x is defined as: x = model.addVars(n,m, vtype=GRB.BINARY) However, I want to disable the optimiz...
-
Danning Xieさんがコメントを作成しました:
Hi, Thank you so much for the explanation. I found where the problem is. If I define the `d` as this : d = m.addVars(2, vtype=GRB.BINARY)for i in range(2): m.addGenConstrIndicator(d[i], True, ...
-
Danning Xieさんがコメントを作成しました:
Hi Maliheh, Thanks for the clarification. For the variable `d`, the formal definition is: `d_i = 1 if \sum_{1\leq j \leq m} x_{i,j}\geq 1`, in this case `m=2` `d_i = 0 otherwise` For the de...
-
Danning Xieさんが投稿を作成しました:
model outputs wrong value for some variables
回答済みI am trying to use `gurobipy` to solve a mapping problem with three objective functions. Here is my program: import gurobipy as gpfrom gurobipy import GRBfrom gurobipy import *m = gp.Model()# x: ...