From efffed249bdf96ccbfaab677d72ff0e73d81903f Mon Sep 17 00:00:00 2001 From: rafaelrojasmiliani Date: Fri, 14 Jun 2024 10:46:38 +0200 Subject: [PATCH] Fist double ipop params --- src/Optimization/ipopt_solver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Optimization/ipopt_solver.cpp b/src/Optimization/ipopt_solver.cpp index 1853815..91021d5 100644 --- a/src/Optimization/ipopt_solver.cpp +++ b/src/Optimization/ipopt_solver.cpp @@ -55,11 +55,11 @@ void IpoptSolverOptions::set_option(const std::string& _option_name, void IpoptSolverOptions::set_option(const std::string& _option_name, double _option_value) { auto iter = std::find_if( - instance().int_options_.begin(), instance().int_options_.end(), + instance().double_options_.begin(), instance().double_options_.end(), [_option_name](const auto& in) { return in.first == _option_name; }); - if (iter == instance().int_options_.end()) { - instance().int_options_.emplace_back(_option_name, _option_value); + if (iter == instance().double_options_.end()) { + instance().double_options_.emplace_back(_option_name, _option_value); } else { iter->second = _option_value; }