From 678e7d59a4a4b935f982777830a96a027cf11333 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Tue, 8 Oct 2024 20:48:50 +1300 Subject: [PATCH] [docs] enable printing in TSP tutorial (#3841) --- docs/src/tutorials/algorithms/tsp_lazy_constraints.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/src/tutorials/algorithms/tsp_lazy_constraints.jl b/docs/src/tutorials/algorithms/tsp_lazy_constraints.jl index 51add8abeb0..e1f616bf3d5 100644 --- a/docs/src/tutorials/algorithms/tsp_lazy_constraints.jl +++ b/docs/src/tutorials/algorithms/tsp_lazy_constraints.jl @@ -215,6 +215,8 @@ while 1 < length(cycle) < n global cycle = subtour(iterative_model[:x]) end +#- + objective_value(iterative_model) #- @@ -264,6 +266,9 @@ set_attribute( subtour_elimination_callback, ) optimize!(lazy_model) + +#- + @assert is_solved_and_feasible(lazy_model) objective_value(lazy_model)