We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4012f5e commit 4321dd2Copy full SHA for 4321dd2
1 file changed
bench/bench_linopy_cvxpy.py
@@ -34,8 +34,8 @@ def create_cvxpy_model(N):
34
35
def create_poi_model(Model, N):
36
m = Model()
37
- x = m.add_variables(range(N), range(N))
38
- y = m.add_variables(range(N), range(N))
+ x = m.add_m_variables((N, N))
+ y = m.add_m_variables((N, N))
39
for i in range(N):
40
for j in range(N):
41
m.add_linear_constraint(x[i, j] - y[i, j], poi.Geq, i)
0 commit comments