Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unreduced + inertia-free fix #159

Merged
merged 1 commit into from
Mar 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/interiorpointsolver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ function InteriorPointSolver{KKTSystem}(nlp::AbstractNLPModel, opt::Options;

aug_vec_length = is_reduced(kkt) ? n+m : n+m+nlb+nub

_w1 = Vector{Float64}(undef,aug_vec_length)
_w1 = zeros(aug_vec_length) # fixes the random failure for inertia-free + Unreduced
_w1x= view(_w1,1:n)
_w1l= view(_w1,n+1:n+m)
_w1zl = is_reduced(kkt) ? nothing : view(_w1,n+m+1:n+m+nlb)
Expand All @@ -457,13 +457,14 @@ function InteriorPointSolver{KKTSystem}(nlp::AbstractNLPModel, opt::Options;
_w2zl = is_reduced(kkt) ? nothing : view(_w2,n+m+1:n+m+nlb)
_w2zu = is_reduced(kkt) ? nothing : view(_w2,n+m+nlb+1:n+m+nlb+nub)

_w3 = Vector{Float64}(undef,aug_vec_length)
_w3 = zeros(aug_vec_length) # fixes the random failure for inertia-free + Unreduced
_w3x= view(_w3,1:n)
_w3l= view(_w3,n+1:n+m)
_w4 = zeros(aug_vec_length) # need to initialize to zero due to mul!
_w4x= view(_w4,1:n)
_w4l= view(_w4,n+1:n+m)


jacl = zeros(n) # spblas may throw an error if not initialized to zero

d = Vector{Float64}(undef,aug_vec_length)
Expand Down