@@ -304,51 +304,6 @@ void branch_and_bound_t<i_t, f_t>::report(std::string symbol,
304304 toc (exploration_stats_.start_time ));
305305}
306306
307- template <typename i_t , typename f_t >
308- void branch_and_bound_t <i_t , f_t >::report_heuristic(f_t obj)
309- {
310- if (solver_status_ == mip_exploration_status_t ::RUNNING) {
311- f_t user_obj = compute_user_objective (original_lp_, obj);
312- f_t user_lower = compute_user_objective (original_lp_, get_lower_bound ());
313- std::string user_gap = user_mip_gap<f_t >(user_obj, user_lower);
314-
315- settings_.log .printf (
316- " H %+13.6e %+10.6e %s %9.2f\n " ,
317- user_obj,
318- user_lower,
319- user_gap.c_str (),
320- toc (exploration_stats_.start_time ));
321- } else {
322- settings_.log .printf (" New solution from primal heuristics. Objective %+.6e. Time %.2f\n " ,
323- compute_user_objective (original_lp_, obj),
324- toc (exploration_stats_.start_time ));
325- }
326- }
327-
328- template <typename i_t , typename f_t >
329- void branch_and_bound_t <i_t , f_t >::report(std::string symbol,
330- f_t obj,
331- f_t lower_bound,
332- i_t node_depth)
333- {
334- i_t nodes_explored = exploration_stats_.nodes_explored ;
335- i_t nodes_unexplored = exploration_stats_.nodes_unexplored ;
336- f_t user_obj = compute_user_objective (original_lp_, obj);
337- f_t user_lower = compute_user_objective (original_lp_, lower_bound);
338- f_t iter_node = exploration_stats_.total_lp_iters / nodes_explored;
339- std::string user_gap = user_mip_gap<f_t >(user_obj, user_lower);
340- settings_.log .printf (" %s%10d %10lu %+13.6e %+10.6e %6d %7.1e %s %9.2f\n " ,
341- symbol.c_str (),
342- nodes_explored,
343- nodes_unexplored,
344- user_obj,
345- user_lower,
346- node_depth,
347- iter_node,
348- user_gap.c_str (),
349- toc (exploration_stats_.start_time ));
350- }
351-
352307template <typename i_t , typename f_t >
353308void branch_and_bound_t <i_t , f_t >::set_new_solution(const std::vector<f_t >& solution)
354309{
0 commit comments