Panggah Prabawa
 Total activity 17
 Last activity
 Member since
 Following 0 users
 Followed by 0 users
 Votes 6
 Subscriptions 3
Activity overview
Latest activity by Panggah Prabawa
Panggah Prabawa created a post,
Convex vs SOCP Constraint
AnsweredHello, I am constructing a problem which includes a convex constraint: \( l_{ij} * u_{i} \geq p_{ij}^2 + q_{i,j}^2 \) which I coded as follows (with additional dimension \( t \) ): Ohm_law = m.addC...

Panggah Prabawa commented,
Thank you for your answers, Jaromil and Riley.I will test the creation speeds of those options. Very interesting.

Panggah Prabawa commented,
Thank you for your response. I know that is a way to do that.Let's say that the index is a tuple (i,j,t), where t < T.I maintain parameter coeff to have 2 key lengths to avoid iterating coeff over ...

Panggah Prabawa created a post,
tupledict.prod() with partial dictionary key
AnsweredHi, Similar to that in the documentation, suppose that I have 3D variable x: # My trial:x = m.addVars([(1,2,0), (1,3,0), (2,3,0)]) # The indices are generated from tuplelist, in which the last i...

Panggah Prabawa commented,
I think I found the culprit which is not related to Gurobi at all. The R(net,i,j) and X(net,i,j) are basically very simple functions, yet takes a little while to call. The R and X are set to a con...

Panggah Prabawa commented,
Hi, David.Thank you for your reply. VoltageDifference = { (i, j, t): m.addConstr( ( v_sq[i, t]  v_sq[j, t] == 2 * (R(net, i, j) * p_line[i, j, t] + X(net, i, j...

Panggah Prabawa commented,
Hi, Jaromił.Thank you for your reply. They may matter. It is best to always use the latest Gurobi version if possible. To see which Python version is supported, please refer to Support Platforms. ...

Panggah Prabawa created a post,
Time needed to create gurobi constraints is too long
AnsweredHi, I recently stumbled on the creation time of constraints using model.addConstrs(). p_line = {(i,j,t): m.addVar(vtype=GRB.CONTINUOUS, lb=100, ub=100, name='P_line({}{}),t={}'.format(i,j,t)) fo...