bo_o

  • Gurobi-versary
  • First Comment
  • First Question
  • 合計アクティビティ 8
  • 前回のアクティビティ
  • メンバー登録日
  • フォロー 0ユーザー
  • フォロワー 0ユーザー
  • 投票 1
  • サブスクリプション 3

アクティビティの概要

bo_oさんの最近のアクティビティ
  • 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...

  • bo_oさんが投稿を作成しました:

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

  • bo_oさんが投稿を作成しました:

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

  • bo_oさんが投稿を作成しました:

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