How to pass 'ADNLPModels.ReverseDiffAD() as the adbackend keyword argument to the ADNLPModel or ADNLSModel constructor.'

Hi @Gummala_Navneeth ,
As @dpo said we rework the constructor for ADNLPModel to make the change of backend more smooth.

using Pkg
Pkg.update()

should update ADNLPModels to the version 0.3.2 (you can check with Pkg.status())

Then, you can follow what is in the updated doc here Reference · ADNLPModels.jl

using ADNLPModels
f(x) = sum(x)
x0 = ones(3)
c(x) = [1x[1] + x[2]; x[2]]
nvar, ncon = 3, 2
ADNLPModel(f, x0, c, zeros(ncon), zeros(ncon)) # uses the default ForwardDiffAD backend.

using ReverseDiff
ADNLPModel(f, x0, c, zeros(ncon), zeros(ncon); backend = ADNLPModels.ReverseDiffAD)

using Zygote
ADNLPModel(f, x0, c, zeros(ncon), zeros(ncon); backend = ADNLPModels.ZygoteAD)