Skip to content

Commit

Permalink
ADD: Random to extra deps
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudocubic committed Aug 1, 2024
1 parent 0ca9ea9 commit fd28b7d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ Ipopt = "b6b21f68-93f8-5de0-b562-5493be1d77c9"
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
Juniper = "2ddba703-00a4-53a7-87a5-e8b9971dde84"
PowerModelsDistribution = "d7431456-977f-11e9-2de3-97ff7677985e"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test", "HiGHS", "Ipopt", "JSON", "Juniper", "PowerModelsDistribution"]
test = ["Test", "HiGHS", "Ipopt", "JSON", "Juniper", "PowerModelsDistribution", "Random"]
2 changes: 1 addition & 1 deletion test/robust_eval.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function randomize_partition_config(
part_config = Dict{String,Any}()

switch_keys = collect(keys(case["switch"]))
shuffled_keys = shuffle(switch_keys)
shuffled_keys = Random.shuffle(switch_keys)
closed_switches = shuffled_keys[1:num_closed_switches]

# Set the status of the selected switches to "CLOSED" and the rest to "OPEN"
Expand Down
3 changes: 3 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import Juniper
import Ipopt
import HiGHS

import Random
Random.seed!(21)

minlp_solver = optimizer_with_attributes(
Juniper.Optimizer,
"nl_solver" => optimizer_with_attributes(Ipopt.Optimizer, "tol"=>1e-6, "print_level"=>0),
Expand Down

0 comments on commit fd28b7d

Please sign in to comment.