Skip to content

Commit

Permalink
replace :success by :first_order in tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
tmigot committed Oct 15, 2021
1 parent 88c1edd commit 3ace202
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/src/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,13 @@ This does not take into account that the solvers have failed for a few problems
(according to column :status). The next profile takes that into account.

```@setup ex1
cost(df) = (df.status .!= :success) * Inf + df.t
cost(df) = (df.status .!= :first_order) * Inf + df.t
p = performance_profile(stats, cost)
Plots.svg(p, "profile2")
```

```
cost(df) = (df.status .!= :success) * Inf + df.t
cost(df) = (df.status .!= :first_order) * Inf + df.t
p = performance_profile(stats, cost)
Plots.svg(p, "profile2")
```
Expand All @@ -273,15 +273,15 @@ profiles, accepting multiple costs and doing 1 vs 1 comparisons in addition to t
traditional performance profile.

```@setup ex1
solved(df) = (df.status .== :success)
solved(df) = (df.status .== :first_order)
costs = [df -> .!solved(df) * Inf + df.t, df -> .!solved(df) * Inf + df.iter]
costnames = ["Time", "Iterations"]
p = profile_solvers(stats, costs, costnames)
Plots.svg(p, "profile3")
```

```
solved(df) = (df.status .== :success)
solved(df) = (df.status .== :first_order)
costs = [df -> .!solved(df) * Inf + df.t, df -> .!solved(df) * Inf + df.iter]
costnames = ["Time", "Iterations"]
p = profile_solvers(stats, costs, costnames)
Expand Down

0 comments on commit 3ace202

Please sign in to comment.