bo_o
- 合計アクティビティ 8
- 前回のアクティビティ
- メンバー登録日
- フォロー 0ユーザー
- フォロワー 0ユーザー
- 投票 1
- サブスクリプション 3
投稿
bo_oによる最近のアクティビティ-
AttributeError: Unable to retrieve attribute 'ObjVal'
回答済みThe modeling is feasible but AttributeError: Unable to retrieve attribute 'ObjVal'. The optimization problem are shown as follows. The code is shown as follows. # _*_coding:utf-8 _*_from __future...
-
Some constraints are not implemented
回答済み# constraint (1.4)for k in range(data.vehicleNum): expr1 = LinExpr(0) expr2 = LinExpr(0) for j in range(1, 6): expr1.addTerms(1, X[0][j][k]) for i in range(1, 6): expr...
-
TypeError: 'int' object does not support item assignment
回答済みI try to get the solution class Solution: ObjVal = 0 X = [[[]]] Y = [[[[]]]] C = [[]] Ct = [[]] Vl = [[[]]] Vr = [[[]]] T = [[[]]] t = [[[[]]]] route_Truck =...
-
list index out of range when adding variables
回答済みThis is my code for adding variables: for k in range(0, data.vehicleNum - 1): for d in range(0, data.droneNum - 1): name1 = 'P_' + str(k) + '_' + str(d) P[k][d] = model.addVar(0, 1...