Skip to content
Open
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 src/PowerModels/core/objective.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function expression_pg_cost(pm::AbstractPowerModel; report::Bool = true)
)
else
error(
"Only cost models of types 1 and 2 are supported at this time, given cost model type of $(model) on generator $(i)",
"Only cost models of types 1 and 2 are supported at this time, given cost model type of $(gen["model"]) on generator $(i)",
)
end
end
Expand Down
4 changes: 2 additions & 2 deletions src/operation/decision_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function build!(
IOM.register_recorders!(model, file_mode)
logger = IS.configure_logging(get_internal(model), IOM.PROBLEM_LOG_FILENAME, file_mode)
if store_system_in_results
@warn "store_system_in_results for $(model) is set to true. This will do nothing unless a Simulation is being built."
@warn "store_system_in_results is set to true. This will do nothing unless a Simulation is being built."
end
try
Logging.with_logger(logger) do
Expand Down Expand Up @@ -151,7 +151,7 @@ function solve!(
kwargs...,
)
if store_system_in_results
@warn "store_system_in_results for $(model) is set to true. This will do nothing unless a Simulation is being built."
@warn "store_system_in_results is set to true. This will do nothing unless a Simulation is being built."
end
build_if_not_already_built!(
model;
Expand Down
4 changes: 2 additions & 2 deletions src/operation/emulation_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function build!(
file_mode,
)
if store_system_in_results
@warn "store_system_in_results for $(model) is set to true. This will do nothing unless a Simulation is being built."
@warn "store_system_in_results is set to true. This will do nothing unless a Simulation is being built."
end
try
Logging.with_logger(logger) do
Expand Down Expand Up @@ -197,7 +197,7 @@ function run!(
kwargs...,
)
if store_system_in_results
@warn "store_system_in_results for $(model) is set to true. This will do nothing unless a Simulation is being built."
@warn "store_system_in_results is set to true. This will do nothing unless a Simulation is being built."
end
build_if_not_already_built!(
model;
Expand Down
Loading