Bushido Pora
- Total activity 8
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 2
Activity overview
Latest activity by Bushido Pora-
Bushido Pora commented,
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 commented,
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 created a post,
Vectorized constraint
AnsweredHello, 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 commented,
Thanks a lot.
-
Bushido Pora commented,
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 created a post,
Error in the objective functionsyn
AnsweredIm 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):...