Skip to content

Commit 7d1801e

Browse files
authored
Update solver_specific example due to failure (#155)
* changing example due to failure * adding copilot suggestions * adding failing reset! * Update index.jmd
1 parent 11b9d53 commit 7d1801e

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

tutorials/introduction-to-solverbenchmark/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[deps]
22
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
33
NLPModelsTest = "7998695d-6960-4d3a-85c4-e1bceb8cd856"
4+
NLPModels = "a4795742-8479-5a88-8948-cc11e1c8c1a6"
45
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
56
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
67
PyPlot = "d330b81b-6aea-500a-939a-2ce795aea3ee"
@@ -12,6 +13,7 @@ SolverCore = "ff4d7338-4cf1-434d-91df-b86cb86fb843"
1213

1314
DataFrames = "1.3.4"
1415
NLPModelsTest = "0.9"
16+
NLPModels = "0.20"
1517
Plots = "1.31.7"
1618
PyPlot = "2.10.0"
1719
SolverBenchmark = "0.5.3"

tutorials/introduction-to-solverbenchmark/index.jmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ If a solver's `GenericExecutionStats` contains a `solver_specific` dictionary, t
228228

229229
Here is an example showing how to set a solver-specific flag so that it appears as a column in the resulting stats table and can be used for tabulation:
230230
```julia
231+
import NLPModels: reset!
231232
using NLPModelsTest, DataFrames, SolverCore, SolverBenchmark
232233

233234
function newton(nlp)

0 commit comments

Comments
 (0)