Skip to content

Commit

Permalink
remove SlackModel increment!
Browse files Browse the repository at this point in the history
  • Loading branch information
tmigot authored Aug 10, 2022
1 parent a10ec90 commit d597065
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/slack-model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ end
function NLPModels.cons_lin!(nlp::SlackModels, x::AbstractVector, c::AbstractVector)
@lencheck nlp.meta.nvar x
@lencheck nlp.meta.nlin c
increment!(nlp, :neval_cons_lin)
n = nlp.model.meta.nvar
ns = nlp.meta.nvar - n
jlow, jupp, jrng = nlp.jlow_lin, nlp.jupp_lin, nlp.jrng_lin
Expand All @@ -252,7 +251,6 @@ end
function NLPModels.cons_nln!(nlp::SlackModels, x::AbstractVector, c::AbstractVector)
@lencheck nlp.meta.nvar x
@lencheck nlp.meta.nnln c
increment!(nlp, :neval_cons_nln)
n = nlp.model.meta.nvar
ns = nlp.meta.nvar - n
jlow, jupp, jrng = nlp.jlow_nln, nlp.jupp_nln, nlp.jrng_nln
Expand Down Expand Up @@ -334,7 +332,6 @@ end
function NLPModels.jac_lin_coord!(nlp::SlackModels, x::AbstractVector, vals::AbstractVector)
@lencheck nlp.meta.nvar x
@lencheck nlp.meta.lin_nnzj vals
increment!(nlp, :neval_jac_lin)
n = nlp.model.meta.nvar
lin_nnzj = nlp.model.meta.lin_nnzj
if lin_nnzj > 0
Expand All @@ -347,7 +344,6 @@ end
function NLPModels.jac_nln_coord!(nlp::SlackModels, x::AbstractVector, vals::AbstractVector)
@lencheck nlp.meta.nvar x
@lencheck nlp.meta.nln_nnzj vals
increment!(nlp, :neval_jac_nln)
n = nlp.model.meta.nvar
nln_nnzj = nlp.model.meta.nln_nnzj
if nln_nnzj > 0
Expand All @@ -367,7 +363,6 @@ function NLPModels.jprod_lin!(
# [vₛ]
@lencheck nlp.meta.nvar x v
@lencheck nlp.meta.nlin jv
increment!(nlp, :neval_jprod_lin)
n = nlp.model.meta.nvar
ns = nlp.meta.nvar - n
@views jprod_lin!(nlp.model, x[1:n], v[1:n], jv)
Expand Down Expand Up @@ -399,7 +394,6 @@ function NLPModels.jprod_nln!(
# [vₛ]
@lencheck nlp.meta.nvar x v
@lencheck nlp.meta.nnln jv
increment!(nlp, :neval_jprod_nln)
n = nlp.model.meta.nvar
ns = nlp.meta.nvar - n
@views jprod_nln!(nlp.model, x[1:n], v[1:n], jv)
Expand Down Expand Up @@ -433,7 +427,6 @@ function NLPModels.jtprod_lin!(
# [ -I ] [ -v ]
@lencheck nlp.meta.nvar x jtv
@lencheck nlp.meta.nlin v
increment!(nlp, :neval_jtprod_lin)
n = nlp.model.meta.nvar
jlow, jupp, jrng = nlp.jlow_lin, nlp.jupp_lin, nlp.jrng_lin
nlow, nupp, nrng = length(jlow), length(jupp), length(jrng)
Expand All @@ -456,7 +449,6 @@ function NLPModels.jtprod_nln!(
# [ -I ] [ -v ]
@lencheck nlp.meta.nvar x jtv
@lencheck nlp.meta.nnln v
increment!(nlp, :neval_jtprod_nln)
n = nlp.model.meta.nvar
jlow, jupp, jrng = nlp.jlow_nln, nlp.jupp_nln, nlp.jrng_nln
nlow, nupp, nrng = length(jlow), length(jupp), length(jrng)
Expand Down

0 comments on commit d597065

Please sign in to comment.