Skip to content

Commit

Permalink
remove not used code
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Feb 12, 2024
1 parent 57ac73a commit 3f38cfc
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 186 deletions.
1 change: 0 additions & 1 deletion docs/src/get_test_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ set_services_template!(
)

op_results = solve!(operation_problem)
re_results = PSI.run_economic_dispatch(system; optimizer = solver, use_parameters = true)
13 changes: 0 additions & 13 deletions src/PowerSimulations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ export template_agc_reserve_deployment
export EconomicDispatchProblem
export UnitCommitmentProblem
export AGCReserveDeployment
export run_economic_dispatch
export run_unit_commitment
export set_device_model!
export set_service_model!
export set_network_model!
Expand Down Expand Up @@ -548,9 +546,6 @@ include("network_models/network_constructor.jl")
# Templates for Operation Problems
include("operation/operation_problem_templates.jl")

# Operations Decision Problems
include("operation/decision_problems.jl")

# Utils
include("utils/printing.jl")
include("utils/file_utils.jl")
Expand All @@ -562,12 +557,4 @@ include("utils/recorder_events.jl")
include("utils/datetime_utils.jl")
include("utils/generate_valid_formulations.jl")

# TODO: These exist for backward compatibility and need to be deprecated and removed.
read_aux_variables_with_keys(args...; kwargs...) =
read_results_with_keys(args...; kwargs...)
read_duals_with_keys(args...; kwargs...) = read_results_with_keys(args...; kwargs...)
read_expressions_with_keys(args...; kwargs...) = read_results_with_keys(args...; kwargs...)
read_parameters_with_keys(args...; kwargs...) = read_results_with_keys(args...; kwargs...)
read_variables_with_keys(args...; kwargs...) = read_results_with_keys(args...; kwargs...)

end
152 changes: 0 additions & 152 deletions src/operation/decision_problems.jl

This file was deleted.

20 changes: 0 additions & 20 deletions test/test_model_decision.jl
Original file line number Diff line number Diff line change
Expand Up @@ -134,26 +134,6 @@ end
end
end

@testset "Default Decisions Constructors" begin
c_sys5 = PSB.build_system(PSITestSystems, "c_sys5")
model_ed =
EconomicDispatchProblem(
c_sys5;
output_dir = mktempdir(),
optimizer = HiGHS_optimizer,
)
moi_tests(model_ed, 120, 0, 120, 120, 24, false)
model_uc =
UnitCommitmentProblem(c_sys5; output_dir = mktempdir(), optimizer = HiGHS_optimizer)
moi_tests(model_uc, 480, 0, 240, 120, 144, true)
ED_output =
run_economic_dispatch(c_sys5; output_dir = mktempdir(), optimizer = HiGHS_optimizer)
UC_output =
run_unit_commitment(c_sys5; output_dir = mktempdir(), optimizer = HiGHS_optimizer)
@test ED_output == RunStatus.SUCCESSFUL
@test UC_output == RunStatus.SUCCESSFUL
end

@testset "Test Locational Marginal Prices between DC lossless with PowerModels vs PTDFPowerModel" begin
networks = [DCPPowerModel, PTDFPowerModel]
sys = PSB.build_system(PSITestSystems, "c_sys5")
Expand Down

0 comments on commit 3f38cfc

Please sign in to comment.