Skip to content

Commit

Permalink
Fix typo in SQP solver that stopped example from running.
Browse files Browse the repository at this point in the history
  • Loading branch information
cgeoga committed May 24, 2024
1 parent c3760d2 commit 2f8d76a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Vecchia"
uuid = "8d73829f-f4b0-474a-9580-cecc8e084068"
authors = ["Chris Geoga <christopher.geoga@rutgers.edu>"]
version = "0.9.11"
version = "0.9.12"

[deps]
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
Expand Down
2 changes: 1 addition & 1 deletion example/example_estimate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ const cfg = Vecchia.kdtreeconfig(sim, # your simulated data, a Matrix{Float64}.
# Now just compute the estimator and let autodiff and Ipopt take care of the rest!
# Note that you can provide kwargs here for the optimizer. But if you're
# providing your own optimizer you're probably customizing more than that anyway.
#const estimator = vecchia_estimate(cfg, init[1:3], warn_box=false)
const estimator = vecchia_estimate(cfg, init[1:3], warn_box=false)

4 changes: 2 additions & 2 deletions src/sqp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ end
# cheap by comparison. So it is my hope/expectation, which has been sort of born
# out through my own ad-hoc testing, that it can save at least a few iterations
# total to do this exactly.
function solve_qp(xk, gk, hk::Symmetric, delta,
function solve_qp(xk, gk, hk::Hermitian, delta,
box_lower, box_upper, iter)
try
n = length(xk)
Expand Down Expand Up @@ -98,7 +98,7 @@ function sqptr_optimize(f, init;
catch er
return failureresult(:FGH_ERROR, x0, j, er)
end
mk = LocalQuadraticApprox(fk, gk, Symmetric(hk))
mk = LocalQuadraticApprox(fk, gk, Hermitian(hk))
rho = 0.0
while rho < args[:eta]
vrb && print(".")
Expand Down

0 comments on commit 2f8d76a

Please sign in to comment.