JuliaSmoothOptimizers / JuliaSmoothOptimizers/NLPModels.jl
Should AbstractBatchNLPModel be a subtype of AbstractNLPModel?
Open
- 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
Assessment
This issue has not been assessed yet.