Skip to content

Commit

Permalink
P L
Browse files Browse the repository at this point in the history
  • Loading branch information
PharosAbad committed Apr 26, 2023
1 parent 4ec73ed commit adc89ad
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions examples/SpeedAccuracy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ function SpeedAccuracy(aEF, P, QPsolver, M=16)
check = false
st = status > 0
elseif QPsolver == :OSQP
ts = @elapsed y = OpSpQP(P, mu)
ts = @elapsed y = OpSpQP(mu, P)
st = y.info.status_val == 1
elseif QPsolver == :Clarabel
ts = @elapsed y = ClarabelQP(P, mu)
ts = @elapsed y = ClarabelQP(mu, P)
st = Int(y.status) == 1
else
error("Unknown QP solver")
Expand Down Expand Up @@ -204,12 +204,10 @@ function SpeedAccuracyL(aEF, P, aCL, QPsolver, M=16)
ts = @elapsed y, status = fPortfolio(OOQP(P), L) #fPortfolio(P; L) use active-set numerical solver
st = status > 0
elseif QPsolver == :OSQP
#ts = @elapsed y = OpSpQP(P, mu)
ts = @elapsed y = OpSpQP(P; L)
ts = @elapsed y = OpSpQP(P, L)
st = y.info.status_val == 1
elseif QPsolver == :Clarabel
#ts = @elapsed y = ClarabelQP(P, mu)
ts = @elapsed y = ClarabelQP(P; L)
ts = @elapsed y = ClarabelQP(P, L)
st = Int(y.status) == 1
else
error("Unknown QP solver")
Expand Down

0 comments on commit adc89ad

Please sign in to comment.