We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e36c4d commit 934d1e8Copy full SHA for 934d1e8
test/testassignment.jl
@@ -22,4 +22,28 @@
22
1 0 0
23
]
24
end
25
+
26
27
+ @testset "Relatively big Assignment Problem (100x100)" begin
28
29
+ n = 100
30
31
+ mat = rand(10:1000, n, n)
32
33
+ # Ensure that the ith row has a 1 in the ith column
34
+ for i in 1:n
35
+ mat[i, i] = 1
36
+ end
37
38
+ a = AssignmentProblem(mat)
39
+ result::AssignmentResult = solve(a)
40
41
+ @test result.problem isa AssignmentProblem
42
+ @test result.cost == n
43
44
45
+ @test result.solution[i, i] == 1
46
47
48
49
0 commit comments