Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove SlackModel increment! #67

Merged
merged 1 commit into from
Aug 10, 2022
Merged

Remove SlackModel increment! #67

merged 1 commit into from
Aug 10, 2022

Conversation

tmigot
Copy link
Member

@tmigot tmigot commented Aug 10, 2022

This is another bug, SlackModel do not have counters so increment!(nlp, :neval_cons_lin) will count another one for nlp.model.

@codecov
Copy link

codecov bot commented Aug 10, 2022

Codecov Report

Merging #67 (d597065) into main (a10ec90) will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main      #67      +/-   ##
==========================================
- Coverage   96.26%   96.23%   -0.04%     
==========================================
  Files           6        6              
  Lines         804      796       -8     
==========================================
- Hits          774      766       -8     
  Misses         30       30              
Impacted Files Coverage Δ
src/slack-model.jl 93.18% <ø> (-0.14%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@dpo
Copy link
Member

dpo commented Aug 10, 2022

Isn't that what we want though?

@tmigot
Copy link
Member Author

tmigot commented Aug 10, 2022

cons_lin(nlp::SlackModel, x) already calls cons_lin(nlp.model, x) (which increments the counters), so there is no need to have the increment! in cons_lin(nlp::SlackModel, x) as well.

@dpo
Copy link
Member

dpo commented Aug 10, 2022

Ah I see! Thank you.

@github-actions
Copy link
Contributor

Package name latest stable
ADNLPModels.jl
AmplNLReader.jl
CUTEst.jl
CaNNOLeS.jl
DCI.jl
JSOSolvers.jl
LLSModels.jl
NLPModelsIpopt.jl
NLPModelsJuMP.jl
NLPModelsTest.jl
Percival.jl
QuadraticModels.jl
SolverBenchmark.jl
SolverTools.jl

@tmigot tmigot merged commit 1a4f133 into main Aug 10, 2022
@tmigot tmigot deleted the remove-slack-counters branch August 10, 2022 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants