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

remove not used code #1054

Merged
merged 1 commit into from
Feb 13, 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
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
Loading