Skip to content

Commit

Permalink
full path
Browse files Browse the repository at this point in the history
  • Loading branch information
tinatorabi committed Aug 27, 2024
1 parent 6747520 commit a2a6589
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/solvers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ ASP(; P = I) = ASP(P)

function solve(solver::ASP, A, y; kwargs...)
AP = A / solver.P
tracer = asp_homotopy(AP, y; loglevel=0, kwargs...)
tracer = asp_homotopy(AP, y; loglevel=0, traceFlag=true, kwargs...)
xs = tracer[end][1]
x_f = solver.P \ Array(xs)
println("done.")
return Dict{String, Any}("C" => x_f)
return Dict{String, Any}("C" => x_f, "tracer" =>tracer)
end
2 changes: 2 additions & 0 deletions test/test_linearsolvers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ C = results["C"]
solver = ACEfit.ASP(P = P)
results = ACEfit.solve(solver, A, y)
C = results["C"]
full_path = results["tracer"]
@show norm(A * C - y)
@show norm(C)
@show norm(C - c_ref)

0 comments on commit a2a6589

Please sign in to comment.