Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hlefebvr committed Sep 18, 2024
1 parent 447a6d9 commit df49b90
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ void idol::Optimizers::AlternatingDirectionMethod::hook_optimize() {
if (is_feasible()) {
set_status(Feasible);
set_reason(Proved);
std::cout << "DONE mega DONE!" << std::endl;
break;
}

Expand Down Expand Up @@ -172,8 +171,6 @@ bool idol::Optimizers::AlternatingDirectionMethod::is_feasible() const {

bool idol::Optimizers::AlternatingDirectionMethod::is_feasible(unsigned int t_sub_problem_id) const {

std::cout << m_last_solutions[t_sub_problem_id] << std::endl;

for (const auto& var : m_formulation.l1_vars(t_sub_problem_id)) {
if (m_last_solutions[t_sub_problem_id].get(var) > 1e-4) {
return false;
Expand Down Expand Up @@ -210,8 +207,6 @@ void idol::Optimizers::AlternatingDirectionMethod::update_penalty_parameters() {

bool idol::Optimizers::AlternatingDirectionMethod::solve_sub_problem(unsigned int t_sub_problem_id) {

std::cout << "Solving sub-problem " << t_sub_problem_id << std::endl;

m_formulation.fix_sub_problem(t_sub_problem_id, m_last_solutions);

auto& model = m_formulation.sub_problem(t_sub_problem_id);
Expand All @@ -220,8 +215,6 @@ bool idol::Optimizers::AlternatingDirectionMethod::solve_sub_problem(unsigned in

const auto status = model.get_status();

std::cout << "Sub-problem status: " << status << std::endl;

if (status != Optimal && status != Feasible) {
set_status(status);
set_reason(NotSpecified);
Expand Down

0 comments on commit df49b90

Please sign in to comment.