File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ using JuMP, HiGHS
1515- `objective::Float64`: Objective value.
1616- `z::Matrix`: Binary matrix of assignments. If z[i, j] = 1 then ith point is connected to the jth point.
1717- `y::Vector`: Binary vector. If y[i] is 1 then ith point is a depot.
18+
1819"""
1920struct PMedianResult
2021 centers:: Vector
Original file line number Diff line number Diff line change @@ -39,11 +39,13 @@ A structure to hold the result of the shortest path problem.
3939
4040- `path::Vector{Connection}`: The connections (edges) in the shortest path.
4141- `cost::Float64`: The total cost of the shortest path.
42+ - `model::JuMP.Model`: The JuMP model used to solve the problem.
4243
4344"""
4445struct ShortestPathResult
4546 path:: Vector{Connection}
4647 cost:: Float64
48+ model:: JuMP.Model
4749end
4850
4951
@@ -182,7 +184,7 @@ function solve(problem::ShortestPathProblem)
182184 end
183185 end
184186
185- return ShortestPathResult (solutionnodes, cost)
187+ return ShortestPathResult (solutionnodes, cost, model )
186188end
187189
188190
You can’t perform that action at this time.
0 commit comments