Skip to content

Adjust optimizer update! methods such that no state is needed #139

@benedict-96

Description

@benedict-96

For updating the NewtonOptimizerCache (and others) we still need the NewtonOptimizerState:

function update!(cache::NewtonOptimizerCache, state::OptimizerState, x::AbstractVector)
cache.x .= x
direction(cache) .= cache.x - state.
cache
end

Note

For the solvers this was tackled in #132.

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