Skip to content

Commit

Permalink
[docs] enable printing in TSP tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Oct 8, 2024
1 parent e78a3a4 commit f720fc3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/src/tutorials/algorithms/tsp_lazy_constraints.jl
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ while 1 < length(cycle) < n
global cycle = subtour(iterative_model[:x])
end

#-

objective_value(iterative_model)

#-
Expand Down Expand Up @@ -264,6 +266,9 @@ set_attribute(
subtour_elimination_callback,
)
optimize!(lazy_model)

#-

@assert is_solved_and_feasible(lazy_model)
objective_value(lazy_model)

Expand Down

0 comments on commit f720fc3

Please sign in to comment.