JuliaSmoothOptimizers / JuliaSmoothOptimizers/NLPModels.jl

Should AbstractBatchNLPModel be a subtype of AbstractNLPModel?

Open
#559 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
191
Forks
38
PR merge metrics
No merged PRs in 30d

Description

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
```julia
function NLPModels.obj(m::AbstractBatachNLPModel, x)

# query nx and ns from the proper place

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.