Danning Xie
- 合計アクティビティ 14
- 前回のアクティビティ
- メンバー登録日
- フォロー 0ユーザー
- フォロワー 0ユーザー
- 投票 0
- サブスクリプション 4
投稿
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...
-
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 ...
-
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...
-
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: ...