File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 3838- `problem::AssignmentProblem`: The original assignment problem.
3939- `solution::Matrix`: The solution matrix of the assignment problem.
4040- `cost::Real`: The optimal cost of the assignment.
41+ - `model::JuMP.Model`: The JuMP model used to solve the problem.
4142
4243# Description
4344
@@ -48,6 +49,7 @@ struct AssignmentResult
4849 problem:: AssignmentProblem
4950 solution:: Matrix
5051 cost:: Real
52+ model:: JuMP.Model
5153end
5254
5355
@@ -162,7 +164,7 @@ function solve(a::AssignmentProblem)::AssignmentResult
162164 solution = value .(x)
163165 cost = JuMP. objective_value (model)
164166
165- result = AssignmentResult (a, solution, cost)
167+ result = AssignmentResult (a, solution, cost, model )
166168 return result
167169end
168170
You can’t perform that action at this time.
0 commit comments