Skip to content

[Docs] OptimizationFunction is-in-place parameter unclear #853

@dnadlinger

Description

@dnadlinger

Currently, the OptimizationFunction docs don't really explain the boolean type parameter (iip).

The only mention is

iip: In-Place vs Out-Of-Place

For more details on this argument, see the ODEFunction documentation.

This is not very illuminiating in the OptimizationFunction case, especially as the cost function there is usually a scalar function, which would be straightforwardly considered to be out-of-place, just going by the signature – yet, as mentioned in #852, the type parameter appears to actually influence (mostly?) the form of gradients, etc. as e.g. generated by AD.

To phrase it a different way: Because OptimizationFunction is a general interface type, I'd expect iip to be meant to describe the objective function I supply, rather than to influence whatever AD/… later make of the code internally to the solvers.

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