Bushido Pora
- 合計アクティビティ 8
- 前回のアクティビティ
- メンバー登録日
- フォロー 0ユーザー
- フォロワー 0ユーザー
- 投票 0
- サブスクリプション 2
アクティビティの概要
Bushido Poraさんの最近のアクティビティ-
Bushido Poraさんがコメントを作成しました:
Hello, My bad for not giving more contexts, I'm modelling a problem similar to the aircraft allocation problem : x(i,j) = {1 if flight i takes place in aircraft j, 0 otherwise} let INC(i) denote th...
-
Bushido Poraさんがコメントを作成しました:
Hi, No, x is binary and has quite a large size (20000,500) thats why the for loop is huge, it performs 20k²*500 = 200000000000 iterations which is intractable. That is why I need a matrix form, T...
-
Bushido Poraさんが投稿を作成しました:
Vectorized constraint
回答済みHello, Im trying to encode a constraint in a vectorized way because for loops are far too slow Here is the classic constraint : for i in range(10): for i_tilde in range(10): for j in r...
-
Bushido Poraさんがコメントを作成しました:
Thanks a lot.
-
Bushido Poraさんがコメントを作成しました:
Hello, Thank you for your answer. Indeed using Vars directly was a solution however I now have a scalar expressed as a vector Matrix vector product in the objective and cant manage to make it work...
-
Bushido Poraさんが投稿を作成しました:
Error in the objective functionsyn
回答済みIm trying to add a quadratic expression to my objective function but fail. Here's the code x = model.addMVar((a, b), vtype=GRB.BINARY, name = "x_{i,j}") qexpr = gp.QuadExpr(0) for s in range(s):...