Skip to content

Commit

Permalink
Merge pull request #50 from NREL-Sienna/rh/fix_tests
Browse files Browse the repository at this point in the history
Fix tests run
  • Loading branch information
jd-lara authored Dec 19, 2024
2 parents 808b04d + 40f42c5 commit 510bb19
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
GLPK = "60bf3e95-4087-53dc-ae20-288a0d20c6a6"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
HiGHS = "87dc4568-4c63-4d18-b0c0-bb2238e4078b"
HydroPowerSimulations = "fc1677e0-6ad7-4515-bf3a-bd6bf20a0b1b"
InfrastructureSystems = "2cd47ed4-ca9b-11e9-27f2-ab636a7671f1"
Expand Down
4 changes: 0 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ using PowerSimulations
using PowerSystems
using JuMP
using HiGHS
using GLPK
using Dates

const IS = InfrastructureSystems
Expand Down Expand Up @@ -44,9 +43,6 @@ HiGHS_optimizer = JuMP.optimizer_with_attributes(
"log_to_console" => false,
)

GLPK_optimizer =
JuMP.optimizer_with_attributes(GLPK.Optimizer, "msg_lev" => GLPK.GLP_MSG_OFF)

"""
Copied @includetests from https://github.com/ssfrr/TestSetExtensions.jl.
Ideally, we could import and use TestSetExtensions. Its functionality was broken by changes
Expand Down
4 changes: 2 additions & 2 deletions test/test_storage_simulation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,14 @@ end
template_uc,
sys_uc;
name="UC",
optimizer=GLPK_optimizer,
optimizer=HiGHS_optimizer,
store_variable_names=true,
),
DecisionModel(
template_ed,
sys_ed;
name="ED",
optimizer=GLPK_optimizer,
optimizer=HiGHS_optimizer,
store_variable_names=true,
),
],
Expand Down
4 changes: 2 additions & 2 deletions test/test_utils/mock_operation_models.jl
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ function create_simulation_build_test_problems(
)
return SimulationModels(;
decision_models=[
DecisionModel(template_uc, sys_uc; name="UC", optimizer=GLPK_optimizer),
DecisionModel(template_ed, sys_ed; name="ED", optimizer=GLPK_optimizer),
DecisionModel(template_uc, sys_uc; name="UC", optimizer=HiGHS_optimizer),
DecisionModel(template_ed, sys_ed; name="ED", optimizer=HiGHS_optimizer),
],
)
end
Expand Down

0 comments on commit 510bb19

Please sign in to comment.