Commit b53b6f37 authored by Patric Schmitz's avatar Patric Schmitz

IPOPTSolverLean: remove hack, read acceptable tolerance from ipopt

parent 3379e99e
...@@ -388,7 +388,8 @@ solve ...@@ -388,7 +388,8 @@ solve
int cur_pass = impl_->enbl_all_lzy_cnstr_ ? 1 : 0; int cur_pass = impl_->enbl_all_lzy_cnstr_ ? 1 : 0;
const int max_passes = impl_->incr_lazy_cnstr_max_iter_nmbr_; 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<double>("acceptable_tol");
// copy default constraints // copy default constraints
std::vector<NConstraintInterface*> constraints = _constraints; std::vector<NConstraintInterface*> constraints = _constraints;
std::vector<bool> lazy_added(_lazy_constraints.size(),false); std::vector<bool> lazy_added(_lazy_constraints.size(),false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment