提交 da3bf505 编写于 作者: S sjiang2018 提交者: Xiangquan Xiao

Planning: set relax-end-slack as default ipopt option.

上级 3edf7edc
...@@ -244,7 +244,7 @@ default_task_config: { ...@@ -244,7 +244,7 @@ default_task_config: {
enable_jacobian_ad: false enable_jacobian_ad: false
enable_hand_derivative: false enable_hand_derivative: false
enable_derivative_check: false enable_derivative_check: false
distance_approach_mode: DISTANCE_APPROACH_IPOPT distance_approach_mode: DISTANCE_APPROACH_IPOPT_RELAX_END_SLACK
enable_check_initial_state: false enable_check_initial_state: false
} }
iterative_anchoring_smoother_config { iterative_anchoring_smoother_config {
......
...@@ -1876,7 +1876,7 @@ bool DistanceApproachIPOPTInterface::check_g(int n, const double* x, int m, ...@@ -1876,7 +1876,7 @@ bool DistanceApproachIPOPTInterface::check_g(int n, const double* x, int m,
for (int idx = 0; idx < m; ++idx) { for (int idx = 0; idx < m; ++idx) {
if (g[idx] > g_u_tmp[idx] + delta_v || g[idx] < g_l_tmp[idx] - delta_v) { if (g[idx] > g_u_tmp[idx] + delta_v || g[idx] < g_l_tmp[idx] - delta_v) {
AINFO << "constratins idx unfeasible: " << idx << ", g: " << g[idx] AINFO << "constrains idx unfeasible: " << idx << ", g: " << g[idx]
<< ", lower: " << g_l_tmp[idx] << ", upper: " << g_u_tmp[idx]; << ", lower: " << g_l_tmp[idx] << ", upper: " << g_u_tmp[idx];
} }
} }
......
...@@ -149,7 +149,7 @@ bool DistanceApproachProblem::Solve( ...@@ -149,7 +149,7 @@ bool DistanceApproachProblem::Solve(
Ipopt::ApplicationReturnStatus status = app->Initialize(); Ipopt::ApplicationReturnStatus status = app->Initialize();
if (status != Ipopt::Solve_Succeeded) { if (status != Ipopt::Solve_Succeeded) {
AERROR << "*** Distiance Approach problem error during initialization!"; AERROR << "*** Distance Approach problem error during initialization!";
return false; return false;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册