Skip to content

Commit

Permalink
Update algorithm.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Nov 14, 2024
1 parent 58a8bab commit 905ccf6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/algorithm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Unable to retrieve solution from node 1.
Termination status : INFEASIBLE
Primal status : NO_SOLUTION
Dual status : NO_SOLUTION.
Dual status : INFEASIBILITY_CERTIFICATE.
The current subproblem was written to `subproblem_1.mof.json`.
Expand Down Expand Up @@ -205,7 +205,7 @@ Unable to retrieve solution from node 1.
Termination status : INFEASIBLE
Primal status : NO_SOLUTION
Dual status : NO_SOLUTION.
Dual status : INFEASIBILITY_CERTIFICATE.
The current subproblem was written to `subproblem_1.mof.json`.
Expand Down Expand Up @@ -402,10 +402,7 @@ function test_root_node_risk_measure()
@stageobjective(sp, 100 * u_p + 300 * u_o + 50 * x.out)
end
SDDP.train(model; root_node_risk_measure = SDDP.WorstCase())
@test isapprox(
model.most_recent_training_results.log[end].bound,
107500.0,
)
@test isapprox(model.most_recent_training_results.log[end].bound, 107500.0)
@test isapprox(
SDDP.calculate_bound(model; risk_measure = SDDP.WorstCase()),
107500.0,
Expand Down

0 comments on commit 905ccf6

Please sign in to comment.