We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent deac85a commit 8656152Copy full SHA for 8656152
1 file changed
src/assignment.jl
@@ -38,6 +38,7 @@ end
38
- `problem::AssignmentProblem`: The original assignment problem.
39
- `solution::Matrix`: The solution matrix of the assignment problem.
40
- `cost::Real`: The optimal cost of the assignment.
41
+- `model::JuMP.Model`: The JuMP model used to solve the problem.
42
43
# Description
44
@@ -48,6 +49,7 @@ struct AssignmentResult
48
49
problem::AssignmentProblem
50
solution::Matrix
51
cost::Real
52
+ model::JuMP.Model
53
end
54
55
@@ -162,7 +164,7 @@ function solve(a::AssignmentProblem)::AssignmentResult
162
164
solution = value.(x)
163
165
cost = JuMP.objective_value(model)
166
- result = AssignmentResult(a, solution, cost)
167
+ result = AssignmentResult(a, solution, cost, model)
168
return result
169
170
0 commit comments