Hey guys (@dpo @tmigot), I was wondering why the AbstractVector required by TrunkSolver are defined with V(undef, nvar) and not with similar(nlp.meta.x0)?
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 set nlp.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() (and cg()) on PartitionedVectors.
Defining vectors with V(undef, nvar) prevents any use of the partitioned structure.
Hey guys (@dpo @tmigot), I was wondering why the
AbstractVectorrequired byTrunkSolverare 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<:AbstractVectorin PartitionedStructure.jl, and my plan is to setnlp.meta.x0as a partitioned vector.This way, any object similar to
x0keeps the same partitioned structure.In addition, I will overload all operations required by
trunk()(andcg()) onPartitionedVectors.Defining vectors with
V(undef, nvar)prevents any use of the partitioned structure.