Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests run #50

Merged
merged 2 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading