bo_o
- Total activity 8
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 1
- Subscriptions 3
Posts
Recent activity by bo_o-
AttributeError: Unable to retrieve attribute 'ObjVal'
AnsweredThe 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
Answered# 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
AnsweredI 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
AnsweredThis 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...