Skip to content

Commit

Permalink
pdate show and ftm options for print functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mcosovic committed Aug 18, 2024
1 parent 8832f5d commit 437defe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/print/constraint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,10 @@ function formatBusConstraint(system::PowerSystem, analysis::DCOptimalPowerFlow,
dual = analysis.method.dual

mshow = Dict(
"Active Power Balance" => true,
"Active Power Balance" => true
)
mfmt = Dict(
"Active Power Balance" => "",
"Active Power Balance" => ""
)
mshow, mfmt = printFormat(mshow, show, mfmt, fmt)

Expand All @@ -381,8 +381,8 @@ function formatBusConstraint(system::PowerSystem, analysis::DCOptimalPowerFlow,
"Active Power Balance Dual" => textwidth("[\$/$(unitList.activePowerLive)-hr]") * style,
)
_fmt = Dict(
"Active Power Balance Solution" => isempty(mfmt[""]) ? "%*.4f" : mfmt["Active Power Balance"],
"Active Power Balance Dual" => isempty(mfmt[""]) ? "%*.4f" : mfmt["Active Power Balance"],
"Active Power Balance Solution" => isempty(mfmt["Active Power Balance"]) ? "%*.4f" : mfmt["Active Power Balance"],
"Active Power Balance Dual" => isempty(mfmt["Active Power Balance"]) ? "%*.4f" : mfmt["Active Power Balance"],
)
_show = Dict(
"Active Power Balance Solution" => !isempty(constraint.balance.active) & mshow["Active Power Balance"],
Expand Down

0 comments on commit 437defe

Please sign in to comment.