Skip to content

Should AbstractBatchNLPModel be a subtype of AbstractNLPModel? #559

@sshin23

Description

@sshin23

I think the batched problem can be solved as a monolithic NLP problem, and in that regard, should we make AbstractBatchNLPModel a subtype of AbstractNLPModel? For example, an obj can be implemented simply by

function NLPModels.obj(m::AbstractBatachNLPModel, x)

# query nx and ns from the proper place

    return sum(NLPModels.obj(m, reshape(x, nx, ns)))
end

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