Skip to content
Open
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
5 changes: 5 additions & 0 deletions cpp/src/mip/presolve/third_party_presolve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,11 @@ std::optional<third_party_presolve_result_t<i_t, f_t>> third_party_presolve_t<i_
papilo_problem.getNCols(),
papilo_problem.getConstraintMatrix().getNnz());

// Check if presolve found the optimal solution (problem fully reduced)
if (papilo_problem.getNRows() == 0 && papilo_problem.getNCols() == 0) {
CUOPT_LOG_INFO("Optimal solution found during presolve");
}

auto opt_problem =
build_optimization_problem<i_t, f_t>(papilo_problem, op_problem.get_handle_ptr());
auto col_flags = papilo_problem.getColFlags();
Expand Down
Loading