Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
fontanf committed Oct 29, 2024
1 parent b495bd0 commit f28a8f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ Output run(
const po::variables_map& vm)
{
std::mt19937_64 generator(vm["seed"].as<Seed>());
Solution solution(instance, vm["initial-solution"].as<std::string>());
Solution solution = (vm.count("certificate"))?
Solution(instance, vm["initial-solution"].as<std::string>()):
Solution(instance);

// Run algorithm.
std::string algorithm = vm["algorithm"].as<std::string>();
Expand Down

0 comments on commit f28a8f8

Please sign in to comment.