From 089599daf7fe81e4ea91a58ae2b5fa91a1e7ea6b Mon Sep 17 00:00:00 2001 From: Miles Lubin Date: Thu, 10 Mar 2016 12:11:58 -0500 Subject: [PATCH] fix tsp.jl, ref #699 --- examples/tsp.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/tsp.jl b/examples/tsp.jl index 88201c64596..6b85a583e76 100644 --- a/examples/tsp.jl +++ b/examples/tsp.jl @@ -109,7 +109,6 @@ function solveTSP(n, cities) end # Create a model that will use Gurobi to solve - # We need to tell Gurobi we are using lazy constraints m = Model(solver=GurobiSolver()) # x[i,j] is 1 iff we travel between i and j, 0 otherwise @@ -178,7 +177,7 @@ function solveTSP(n, cities) # Add the new subtour elimination constraint we built println("Adding subtour elimination cut") println("----") - addLazyConstraint(cb, arcs_from_subtour >= 2) + @addLazyConstraint(cb, arcs_from_subtour >= 2) end # End function subtour # Solve the problem with our cut generator