Shiyao Bian
- Total activity 5
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 1
- Subscriptions 1
Activity overview
Latest activity by Shiyao Bian-
Shiyao Bian commented,
Hi Eli, Thank you so much for you reply! I do appologize for typos in code and type settings. We are trying to find out how to type latex here. For your first question regarding to the dimension ...
-
Shiyao Bian commented,
We have already tried: m.addConstrs((((quicksum(x[i, j] * A[j, :] for i, j in feasible_arcs)) >= rhs)), name='slow_constraint' ) m.addConstrs(((((np.dot(x[i, j] , A[j, :]) for i, j in feasible_arcs...
-
Shiyao Bian created a post,
Efficient way of adding large number of constraints
AnsweredI am experiencing slowness using for loop within addConstrs method. The python code is as followed: from gurobipy import Model, quicksum, GRBimport numpy as np m = Model('sparse_decision_variables'...