Skip to content
Closed
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 src/PowerOperationsModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,6 @@ export InitialEnergyLevel
export build!
export get_initial_conditions
export serialize_outputs
export serialize_optimization_model
export solve!
export run!
export set_device_model!
Expand Down
7 changes: 0 additions & 7 deletions src/operation/decision_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ keyword arguments to that function.
- `console_level = Logging.Error`:
- `file_level = Logging.Info`:
- `disable_timer_outputs = false` : Enable/Disable timing outputs
- `export_optimization_problem::Bool = true`: If true, serialize the model to a file to allow re-execution later.

# Examples

Expand All @@ -140,7 +139,6 @@ function solve!(
console_level = Logging.Error,
file_level = Logging.Info,
disable_timer_outputs = false,
export_optimization_problem = true,
kwargs...,
)
build_if_not_already_built!(
Expand Down Expand Up @@ -181,11 +179,6 @@ function solve!(
current_time,
)
end
if export_optimization_problem
TimerOutputs.@timeit RUN_OPERATION_MODEL_TIMER "Serialize" begin
serialize_optimization_model(model)
end
end
TimerOutputs.@timeit RUN_OPERATION_MODEL_TIMER "Outputs processing" begin
outputs = OptimizationProblemOutputs(model)
serialize_outputs(outputs, IOM.get_output_dir(model))
Expand Down
7 changes: 0 additions & 7 deletions src/operation/emulation_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ keyword arguments to that function.
- `export_problem_outputs::Bool`: If true, export OptimizationProblemOutputs DataFrames to CSV files.
- `output_dir::String`: Required if the model is not already built, otherwise ignored
- `enable_progress_bar::Bool`: Enables/Disable progress bar printing
- `export_optimization_model::Bool`: If true, serialize the model to a file to allow re-execution later.

# Examples

Expand All @@ -185,7 +184,6 @@ function run!(
console_level = Logging.Error,
file_level = Logging.Info,
disable_timer_outputs = false,
export_optimization_model = true,
enable_progress_bar = _progress_meter_enabled(),
kwargs...,
)
Expand Down Expand Up @@ -223,11 +221,6 @@ function run!(
)
IOM.set_run_status!(model, RunStatus.SUCCESSFULLY_FINALIZED)
end
if export_optimization_model
TimerOutputs.@timeit RUN_OPERATION_MODEL_TIMER "Serialize" begin
serialize_optimization_model(model)
end
end
TimerOutputs.@timeit RUN_OPERATION_MODEL_TIMER "Outputs processing" begin
outputs = OptimizationProblemOutputs(model)
serialize_outputs(outputs, IOM.get_output_dir(model))
Expand Down
Loading