Skip to content

Problem with optimization with Optim.GradientDescent #1018

@STaherpour

Description

@STaherpour

Hi, I'm trying to use Optim.jl in Optimization of a State-to-State Transfer in a Two-Level-System.

Actually I want to learn working with Optim.jl and my main issue is working with Optim.GradientDescent.

When I use
`opt_result_OptimGD = QuantumControlBase.optimize(

problem,
method = :grape,
info_hook = chain_infohooks(
    QuantumControl.GRAPE.print_table,
    store_pulses
),
optimizer = Optim.GradientDescent(;
    #alphaguess=LineSearches.InitialStatic(alpha=0.2),
    alphaguess = LineSearches.InitialPrevious(alphamin=0.2),
    linesearch = LineSearches.HagerZhang(alphamax=2.0)
)

);`

I face with this error: type GradientDescentState has no field g_previous, and I don't know why it happens. There is no g_previous in the Optim.GradientDescent.

Would you please help me in this regard?

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