Skip to content

Commit 4321dd2

Browse files
committed
Update benchmark code
1 parent 4012f5e commit 4321dd2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bench/bench_linopy_cvxpy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def create_cvxpy_model(N):
3434

3535
def create_poi_model(Model, N):
3636
m = Model()
37-
x = m.add_variables(range(N), range(N))
38-
y = m.add_variables(range(N), range(N))
37+
x = m.add_m_variables((N, N))
38+
y = m.add_m_variables((N, N))
3939
for i in range(N):
4040
for j in range(N):
4141
m.add_linear_constraint(x[i, j] - y[i, j], poi.Geq, i)

0 commit comments

Comments
 (0)