Skip to content

Commit

Permalink
Add start solution provided by the user as incumbent.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendrych committed Apr 20, 2023
1 parent 83e87db commit d5d29c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ function solve(
node = tree.nodes[1]
sol = FrankWolfeSolution(f(start_solution), start_solution, node, :start)
push!(tree.solutions, sol)
if tree.incumbent_solution === nothing || sol.objective < tree.incumbent_solution.objective
tree.incumbent_solution = sol
tree.incumbent = sol.objective
end
end

# build callbacks
Expand Down

0 comments on commit d5d29c9

Please sign in to comment.