Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions cpp/src/dual_simplex/branch_and_bound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,10 @@ mip_status_t branch_and_bound_t<i_t, f_t>::solve(mip_solution_t<i_t, f_t>& solut
global_variables::mutex_upper.unlock();
// We should be done here
uncrush_primal_solution(original_problem, original_lp, incumbent.x, solution.x);
solution.objective = incumbent.objective;
solution.lower_bound = lower_bound;
solution.objective = incumbent.objective;
solution.lower_bound = lower_bound;
solution.nodes_explored = 0;
solution.simplex_iterations = root_relax_soln.iterations;
settings.log.printf("Optimal solution found at root node. Objective %.16e. Time %.2f.\n",
compute_user_objective(original_lp, root_objective),
toc(start_time));
Expand Down
2 changes: 2 additions & 0 deletions cpp/src/linear_programming/utilities/logger_init.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class init_logger_t {
// TODO save the defaul sink and restore it
cuopt::default_logger().sinks().push_back(
std::make_shared<rapids_logger::basic_file_sink_mt>(log_file, true));
cuopt::default_logger().set_pattern("%v");
cuopt::default_logger().flush_on(rapids_logger::level_enum::info);
}
}
~init_logger_t() { cuopt::reset_default_logger(); }
Expand Down
1 change: 1 addition & 0 deletions cpp/src/mip/presolve/trivial_presolve.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ void update_from_csr(problem_t<i_t, f_t>& pb)

// update objective_offset
pb.presolve_data.objective_offset +=
pb.presolve_data.objective_scaling_factor *
thrust::transform_reduce(handle_ptr->get_thrust_policy(),
thrust::counting_iterator<i_t>(0),
thrust::counting_iterator<i_t>(pb.n_variables),
Expand Down