Skip to content

Commit 03e1f1e

Browse files
committed
fix another julia typo
1 parent 15cd84c commit 03e1f1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/julia/overview-simple.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function generate_mixed_qp(n, seed=1)
2626
P += (np.abs(s) + 1e-02) * spa.eye(n)
2727
P = spa.coo_matrix(P)
2828
q = np.random.randn(n)
29-
A = spa.random(m, n, density=0.15, data_rvs=np.random.randn, format="csc").toarray()
29+
A = spa.random(m, n, density=0.15, data_rvs=np.random.randn, format="csc")
3030
v = np.random.randn(n) # Fictitious solution
3131
delta = np.random.rand(m) # To get inequality
3232
u = A * v
@@ -44,7 +44,7 @@ n_in = C.shape[1]
4444
# solve it
4545
qp = proxsuite.proxqp.dense.QP(n, n_eq, n_in)
4646
qp.settings.eps_abs = EPS
47-
qp.init(H, g, A, b, C, u, l)
47+
qp.init(H, g, A.toarray(), b, C.toarray(), u, l)
4848
qp.solve()
4949

5050
x_res = qp.results.x

0 commit comments

Comments
 (0)