From b53b6f374165041de9b9a9e51fe4d0f1e138d66d Mon Sep 17 00:00:00 2001 From: Patric Schmitz Date: Fri, 9 Aug 2019 18:08:45 +0200 Subject: [PATCH] IPOPTSolverLean: remove hack, read acceptable tolerance from ipopt --- NSolver/IPOPTSolverLean.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NSolver/IPOPTSolverLean.cc b/NSolver/IPOPTSolverLean.cc index 8810345..65d73e0 100644 --- a/NSolver/IPOPTSolverLean.cc +++ b/NSolver/IPOPTSolverLean.cc @@ -388,7 +388,8 @@ solve int cur_pass = impl_->enbl_all_lzy_cnstr_ ? 1 : 0; const int max_passes = impl_->incr_lazy_cnstr_max_iter_nmbr_; - double acceptable_tolerance = 0.01; // hack: read out from ipopt!!! + double acceptable_tolerance = get_ipopt_option("acceptable_tol"); + // copy default constraints std::vector constraints = _constraints; std::vector lazy_added(_lazy_constraints.size(),false); -- GitLab