Skip to content

Commit 4f57810

Browse files
Cleanup #144 (#145)
1 parent 71b9665 commit 4f57810

File tree

2 files changed

+0
-39
lines changed

2 files changed

+0
-39
lines changed

src/cddp_core/ipddp_solver.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,11 +1847,6 @@ namespace cddp
18471847
mu_ = std::max(barrier_opts.mu_min_value,
18481848
barrier_opts.mu_update_factor * mu_);
18491849
resetFilter(context);
1850-
if (options.debug)
1851-
{
1852-
std::cout << "[IPDDP Barrier] Monotonic update: μ = "
1853-
<< std::scientific << std::setprecision(2) << mu_ << std::endl;
1854-
}
18551850
break;
18561851
}
18571852

@@ -1862,7 +1857,6 @@ namespace cddp
18621857
double error_k = std::max({scaled_inf_du, context.inf_pr_, context.inf_comp_});
18631858

18641859
// IPOPT uses: μ_new = max(ε_tol/10, min(κ_μ * μ, μ^θ_μ))
1865-
// where update happens when error_k ≤ κ_ε * μ
18661860
double kappa_epsilon = 10.0; // IPOPT default
18671861

18681862
if (error_k <= kappa_epsilon * mu_)
@@ -1872,13 +1866,6 @@ namespace cddp
18721866
mu_ = std::max(options.tolerance / 10.0,
18731867
std::min(new_mu_linear, new_mu_superlinear));
18741868
resetFilter(context);
1875-
if (options.debug)
1876-
{
1877-
std::cout << "[IPDDP Barrier] IPOPT update: error = "
1878-
<< std::scientific << std::setprecision(2) << error_k
1879-
<< "" << kappa_epsilon << " * μ = " << kappa_epsilon * mu_
1880-
<< " → μ = " << mu_ << std::endl;
1881-
}
18821869
}
18831870
break;
18841871
}
@@ -1929,13 +1916,6 @@ namespace cddp
19291916

19301917
// Reset filter when barrier parameter changes
19311918
resetFilter(context);
1932-
1933-
if (options.debug)
1934-
{
1935-
std::cout << "[IPDDP Barrier] Adaptive update: termination metric = "
1936-
<< std::scientific << std::setprecision(2) << termination_metric
1937-
<< " → μ = " << mu_ << std::endl;
1938-
}
19391919
}
19401920
break;
19411921
}

src/cddp_core/msipddp_solver.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2262,11 +2262,6 @@ namespace cddp
22622262
mu_ = std::max(barrier_opts.mu_min_value,
22632263
barrier_opts.mu_update_factor * mu_);
22642264
resetFilter(context);
2265-
if (options.debug)
2266-
{
2267-
std::cout << "[MSIPDDP Barrier] Monotonic update: μ = "
2268-
<< std::scientific << std::setprecision(2) << mu_ << std::endl;
2269-
}
22702265
break;
22712266
}
22722267

@@ -2286,13 +2281,6 @@ namespace cddp
22862281
mu_ = std::max(options.tolerance / 10.0,
22872282
std::min(new_mu_linear, new_mu_superlinear));
22882283
resetFilter(context);
2289-
if (options.debug)
2290-
{
2291-
std::cout << "[MSIPDDP Barrier] IPOPT update: error = "
2292-
<< std::scientific << std::setprecision(2) << error_k
2293-
<< "" << kappa_epsilon << " * μ = " << kappa_epsilon * mu_
2294-
<< " → μ = " << mu_ << std::endl;
2295-
}
22962284
}
22972285
break;
22982286
}
@@ -2367,13 +2355,6 @@ namespace cddp
23672355

23682356
// Reset filter when barrier parameter changes
23692357
resetFilter(context);
2370-
2371-
if (options.debug)
2372-
{
2373-
std::cout << "[MSIPDDP Barrier] Adaptive update: termination metric = "
2374-
<< std::scientific << std::setprecision(2) << termination_metric
2375-
<< " → μ = " << mu_ << std::endl;
2376-
}
23772358
}
23782359
break;
23792360
}

0 commit comments

Comments
 (0)