Skip to content

Commit 9c3d81f

Browse files
authored
Merge pull request #157 from JuliaOpt/correct-unit-test-risk
[COR] correct unit test AVAR polyhedral
2 parents e64dac0 + c8af347 commit 9c3d81f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/changeprob.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ end
8888
# We check equality between polyhedral formulation and AVaR formulation
8989
@testset "Equality AVaR Polyhedral" begin
9090
n = 10
91-
X = rand(-10:10,10)
92-
beta = (n-1)/n+rand()*(1-(n-1)/n)
91+
X = shuffle(collect(linspace(1,100,n)))
92+
beta = 0.999
9393
prob = 1/n*ones(n)
9494

9595
polyset = repmat(1/beta*prob',n)

0 commit comments

Comments
 (0)