Skip to content

Commit fdd9254

Browse files
author
trigaut
committed
[FIX] Fixed handling of errors in SDP
1 parent d021b6f commit fdd9254

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/SDPoptimize.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function compute_V_given_t(sampling_size, samples, probas, u_bounds, x_bounds,
214214
t, product_states[indx])
215215
end
216216
else
217-
warn("Information structure should be HD or DH")
217+
error("Information structure should be HD or DH")
218218
end
219219
end
220220

test/runtests.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -488,10 +488,6 @@ facts("SDP algorithm") do
488488
@fact_throws solve_DP(modelSDP, paramsSDP, false);
489489
paramsSDP.infoStructure = infoStruct
490490

491-
paramsSDP.expectation_computation = "anything"
492-
@fact_throws solve_DP(modelSDP, paramsSDP, false);
493-
paramsSDP.expectation_computation = "Exact"
494-
495491
V_sdp = solve_DP(modelSDP, paramsSDP, false);
496492

497493
@fact size(V_sdp) --> (paramsSDP.stateVariablesSizes..., TF)

0 commit comments

Comments
 (0)