Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelma committed Nov 22, 2024
1 parent 8fbb3f1 commit ff5db9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/run_spineopt_benders.jl
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ function _test_benders_rolling_representative_periods()
vom_cost_alt = vom_cost_ / 2
op_cost_no_inv = ucap * vom_cost_ * (24 + look_ahead)
op_cost_inv = ucap * vom_cost_alt * (24 + look_ahead)
do_inv_cost = op_cost_no_inv - op_cost_inv # minimum cost at which investment is not profitable
do_inv_cost = op_cost_no_inv - op_cost_inv - 1 # minimum cost at which investment is not profitable
do_not_inv_cost = do_inv_cost + 1 # maximum cost at which investment is profitable
@testset for should_invest in (true, false)
u_inv_cost = should_invest ? do_inv_cost : do_not_inv_cost
Expand Down

0 comments on commit ff5db9e

Please sign in to comment.