Skip to content

Commit da20b35

Browse files
committed
fix compat issues
1 parent dd91b57 commit da20b35

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
- '1.9'
1414
- '1.10'
1515
- '1.11'
16+
- '1.12'
1617
os:
1718
- ubuntu-latest
1819
- macOS-latest

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1111
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1212

1313
[compat]
14-
HiGHS = "1"
14+
HiGHS = "1.4"
1515
Ipopt = "1"
1616
JuMP = "1"
1717
LinearAlgebra = "1"
18-
Statistics = "1"
18+
Statistics = "1.11"
1919
julia = "1.6"

test/testpmedian.jl

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,8 @@
1111
]
1212

1313
result = pmedian(coords, 2)
14-
y = result.y
1514

16-
@test sort(result.centers) == [2, 6]
17-
18-
@test iszero(y[1])
19-
@test isone(y[2])
20-
@test iszero(y[3])
21-
@test iszero(y[4])
22-
@test iszero(y[5])
23-
@test isone(y[6])
15+
@test isapprox(result.objective, 8.06449510224598; atol=1e-5)
2416
end
2517

2618
@testset "p-median with distances" begin

0 commit comments

Comments
 (0)