Skip to content

Commit

Permalink
fix tsp.jl, ref #699
Browse files Browse the repository at this point in the history
  • Loading branch information
mlubin committed Mar 10, 2016
1 parent 20fa1d2 commit 089599d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/tsp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 089599d

Please sign in to comment.