Skip to content

Commit

Permalink
clearer benchmark controls
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Sep 13, 2023
1 parent 4d197f9 commit 980a25d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion benchmarks/OptimizationFrameworks/optimal_powerflow.jmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@ before getting to the benchmarks.

```julia
PRINT_LEVEL = 0

# This is a soft upper limit to the time of each optimization.
# If times go above this, they will halt early
MAX_CPU_TIME = 100.0

# Maximum number of variables in an optimization problem for the benchmark
# Anything with more variables is rejected and not run
# This is for testing. 100 is a good size for running a test of changes
# Should be set to typemax(Int) to run the whole benchmark
SIZE_LIMIT = 100
```

```julia
Expand Down Expand Up @@ -2062,7 +2071,7 @@ res
```julia
using DataFrames, PrettyTables

function multidata_multisolver_benchmark(dataset_files; sizelimit = 100)
function multidata_multisolver_benchmark(dataset_files; sizelimit = SIZE_LIMIT)

cases = String[]
vars = Int[]
Expand Down

0 comments on commit 980a25d

Please sign in to comment.