mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 00:08:52 -06:00
Add KnuOstWat18
This commit is contained in:
@@ -61,9 +61,17 @@ function main()
|
||||
formulations = Dict(
|
||||
"ArrCon00" =>
|
||||
UnitCommitment.Formulation(ramping = UnitCommitment.ArrCon00()),
|
||||
"CarArr06" => UnitCommitment.Formulation(
|
||||
pwl_costs = UnitCommitment.CarArr06(),
|
||||
),
|
||||
"DamKucRajAta16" => UnitCommitment.Formulation(
|
||||
ramping = UnitCommitment.DamKucRajAta16(),
|
||||
),
|
||||
"Gar62" =>
|
||||
UnitCommitment.Formulation(pwl_costs = UnitCommitment.Gar62()),
|
||||
"KnuOstWat18" => UnitCommitment.Formulation(
|
||||
pwl_costs = UnitCommitment.KnuOstWat18(),
|
||||
),
|
||||
"MorLatRam13" => UnitCommitment.Formulation(
|
||||
ramping = UnitCommitment.MorLatRam13(),
|
||||
),
|
||||
|
||||
@@ -197,9 +197,10 @@ def generate_chart():
|
||||
table.loc[:, "Filename"] = f
|
||||
tables += [table]
|
||||
benchmark = pd.concat(tables, sort=True)
|
||||
benchmark = benchmark.sort_values(by="Instance")
|
||||
k = len(benchmark.groupby("Instance"))
|
||||
plt.figure(figsize=(12, k))
|
||||
benchmark = benchmark.sort_values(by=["Group", "Instance"])
|
||||
k1 = len(benchmark.groupby("Instance"))
|
||||
k2 = len(benchmark.groupby("Group"))
|
||||
plt.figure(figsize=(12, 0.25 * k1 * k2))
|
||||
sns.barplot(
|
||||
y="Instance",
|
||||
x="Total time (s)",
|
||||
|
||||
Reference in New Issue
Block a user