Skip to content

Commit d2cc9d0

Browse files
committed
Update runtests.jl
1 parent cee244a commit d2cc9d0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/runtests.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2500,6 +2500,7 @@ else # run HiGHS tests
25002500
post["PV"]["max_kw"] = 0.0
25012501
post["ElectricStorage"]["max_kw"] = 0.0
25022502
post["Generator"]["min_turn_down_fraction"] = 0.0
2503+
post["Generator"]["om_cost_per_hr_per_kw_rated"] = 2.0
25032504
finalize(backend(m))
25042505
empty!(m)
25052506
GC.gc()
@@ -2518,7 +2519,9 @@ else # run HiGHS tests
25182519
@test r["Financial"]["lifecycle_capital_costs"] 100*(700+324.235442*(1-0.26)) + other_offgrid_capex_after_tax atol=0.1 # replacement in yr 10 is considered tax deductible
25192520
@test r["Financial"]["initial_capital_costs_after_incentives"] 700*100 + other_offgrid_capex_after_tax atol=0.1
25202521
@test r["Financial"]["replacements_future_cost_after_tax"] 700*100
2521-
@test r["Financial"]["replacements_present_cost_after_tax"] 100*(324.235442*(1-0.26)) atol=0.1
2522+
@test r["Financial"]["replacements_present_cost_after_tax"] 100*(324.235442*(1-0.26)) atol=0.1
2523+
generator_hours_runtime = sum(x -> x > 0, r["Generator"]["electric_to_load_series_kw"]) + sum(x -> x > 0, r["Generator"]["electric_to_storage_series_kw"])
2524+
@test r["Generator"]["year_one_variable_om_cost_before_tax"] generator_hours_runtime * r["Generator"]["size_kw"] * post["Generator"]["om_cost_per_hr_per_kw_rated"] atol=0.1
25222525

25232526
## Scenario 3: Fixed Generator that can meet load, but cannot meet load operating reserve requirement
25242527
## This test ensures the load operating reserve requirement is being enforced

0 commit comments

Comments
 (0)