Skip to content

Allow more autodiff backends when using internal optimization solvers #379

@ErikQQY

Description

@ErikQQY

Currently, the autodiff backend in internal optimization solver can only be AutoFiniteDiff(), because the value update in EvalSol after collocation equation evaluation in loss function __mirk_loss!, however, such operation prevent proper sparsity detection with SparseConnectivityTracer.jl. We need to restruct the loss funtion being passed to optimization solver so that more autodiff backends can be used.

This issue can affect #374

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