Commit e3a8876a authored by Konstantinos Chatzilygeroudis's avatar Konstantinos Chatzilygeroudis
Browse files

Fix for NLOpt failure

parent 59bf5cf0
......@@ -129,6 +129,10 @@ namespace limbo {
// In theory it's ok to ignore this error
std::cerr << "[NLOptGrad]: " << e.what() << std::endl;
}
catch (std::runtime_error& e) {
// In theory it's ok to ignore this error
std::cerr << "[NLOptGrad]: " << e.what() << std::endl;
}
return Eigen::VectorXd::Map(x.data(), x.size());
}
......
......@@ -146,6 +146,10 @@ namespace limbo {
// In theory it's ok to ignore this error
std::cerr << "[NLOptNoGrad]: " << e.what() << std::endl;
}
catch (std::runtime_error& e) {
// In theory it's ok to ignore this error
std::cerr << "[NLOptGrad]: " << e.what() << std::endl;
}
return Eigen::VectorXd::Map(x.data(), x.size());
}
......
Supports Markdown
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