bo_o

  • Gurobi-versary
  • First Comment
  • First Question
  • Total activity 8
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 1
  • Subscriptions 3

Activity overview

Latest activity by bo_o
  • bo_o created a post,

    AttributeError: Unable to retrieve attribute 'ObjVal'

    Answered

    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...

  • bo_o created a post,

    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...

  • bo_o created a post,

    TypeError: 'int' object does not support item assignment

    Answered

    I try to get the solution class Solution: ObjVal = 0 X = [[[]]] Y = [[[[]]]] C = [[]] Ct = [[]] Vl = [[[]]] Vr = [[[]]] T = [[[]]] t = [[[[]]]] route_Truck =...

  • bo_o created a post,

    list index out of range when adding variables

    Answered

    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...