-
Notifications
You must be signed in to change notification settings - Fork 15
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
Replace V(undef, nvar)
by similar(nlp.meta.x0)
in TrunkSolver
?
#135
Comments
You're right. We should be using |
V(undef, nvar)
by similar(nlp.meta.x0
in TrunkSolver
?V(undef, nvar)
by similar(nlp.meta.x0)
in TrunkSolver
?
Hi @paraynaud ! Could you open a PR to fix this? We now have a solver structure for all the solvers, so this issue might appear not only in |
I spoke with @amontoison since the same problem appears in KrylovSolvers, the way AbstractVectors are defined (with If everyone is okay with the Anyway, I will have to define my own TrunkSolver constructor dedicated to PartiallySeparableNLPModels, since the implementation of PartitionedVectors has become quite complex (similar is not enough unfortunately). |
I don't use |
Looks good to me, I checked and only |
Should we extract the Krylov mechanism out of Krylov so it can be used here too? |
It can be used here already :) |
Hey guys (@dpo @tmigot), I was wondering why the
AbstractVector
required byTrunkSolver
are defined withV(undef, nvar)
and not withsimilar(nlp.meta.x0)
?JSOSolvers.jl/src/trunk.jl
Line 84 in 15550bd
I'm currently working on PartitionedStructures.jl and PartiallySeparableNLPModels.jl to make solvers (starting with trunk) exploit fully the partially separable structure.
I'm defining
PartitionedVector<:AbstractVector
in PartitionedStructure.jl, and my plan is to setnlp.meta.x0
as a partitioned vector.This way, any object similar to
x0
keeps the same partitioned structure.In addition, I will overload all operations required by
trunk()
(andcg()
) onPartitionedVector
s.Defining vectors with
V(undef, nvar)
prevents any use of the partitioned structure.The text was updated successfully, but these errors were encountered: