Add stochastic tests

feature/stochastic
Alinson S. Xavier 3 years ago
parent 7f475a0914
commit 48ccf0d180
Signed by: isoron
GPG Key ID: 0DA8E4B9E1109DCA

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -66,4 +66,16 @@ function model_solve_test()
@test solution["Costs"]["Storage (\$)"] == [100.0, 75.0, 0.0] @test solution["Costs"]["Storage (\$)"] == [100.0, 75.0, 0.0]
@test solution["Costs"]["Total (\$)"] == [600.0, 75.0, 100.0] @test solution["Costs"]["Total (\$)"] == [600.0, 75.0, 100.0]
end end
@testset "solve (stochastic)" begin
# Should not crash
solutions = RELOG.solve_stochastic(
scenarios=[
fixture("instances/case3_p010_s1.00.json"),
fixture("instances/case3_p010_s1.25.json"),
],
probs=[0.5, 0.5],
optimizer=HiGHS.Optimizer,
)
end
end end
Loading…
Cancel
Save