Skip to content

GradientGrassmann stuck in a (quasi-) infinite loop #167

@LHerviou

Description

@LHerviou

During groundstate simulations for MPS close to exact analytical state (e.g. SU(2)), the GradientGrassmann can hang in the linesearch function of OptimKit.jl

This is due to the maxiter taking its default value (typemax(Int) = 9223372036854775807) instead of the maxiter argument provided for at least some of the Optim methods.

Here is the result of println(alg) inside find_groundstate in gradient_grassmann.jl

`GradientGrassmann(ConjugateGradient{HagerZhang{Rational{Int64}}, Float64, HagerZhangLineSearch{Rational{Int64}}}(HagerZhang{Rational{Int64}}(2//5, 1//1), 44, 1.0e-12, HagerZhangLineSearch{Rational{Int64}}(1//10, 9//10, 1//1000000, 1//2, 2//3, 5//1, 9223372036854775807, 98), 9223372036854775807, 100), O
ptimKit._finalize!)'

Note the two typemax that are still present.
I do not know enough about the algorithm here to be sure of the fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions