|
Apollo 11.0
自动驾驶开放平台
|
#include <cos_theta_ipopt_interface.h>
Public 成员函数 | |
| CosThetaIpoptInterface (std::vector< std::pair< double, double > > points, std::vector< double > bounds) | |
| virtual | ~CosThetaIpoptInterface ()=default |
| void | set_weight_cos_included_angle (const double weight_cos_included_angle) |
| void | set_weight_anchor_points (const double weight_anchor_points) |
| void | set_weight_length (const double weight_length) |
| void | set_automatic_differentiation_flag (const bool use_ad) |
| void | get_optimization_results (std::vector< double > *ptr_x, std::vector< double > *ptr_y) const |
| bool | get_nlp_info (int &n, int &m, int &nnz_jac_g, int &nnz_h_lag, IndexStyleEnum &index_style) override |
| Method to return some info about the nlp | |
| bool | get_bounds_info (int n, double *x_l, double *x_u, int m, double *g_l, double *g_u) override |
| Method to return the bounds for my problem | |
| bool | get_starting_point (int n, bool init_x, double *x, bool init_z, double *z_L, double *z_U, int m, bool init_lambda, double *lambda) override |
| Method to return the starting point for the algorithm | |
| bool | eval_f (int n, const double *x, bool new_x, double &obj_value) override |
| Method to return the objective value | |
| bool | eval_grad_f (int n, const double *x, bool new_x, double *grad_f) override |
| Method to return the gradient of the objective | |
| bool | eval_g (int n, const double *x, bool new_x, int m, double *g) override |
| Method to return the constraint residuals | |
| bool | eval_jac_g (int n, const double *x, bool new_x, int m, int nele_jac, int *iRow, int *jCol, double *values) override |
| Method to return: 1) The structure of the jacobian (if "values" is nullptr) 2) The values of the jacobian (if "values" is not nullptr) | |
| bool | eval_h (int n, const double *x, bool new_x, double obj_factor, int m, const double *lambda, bool new_lambda, int nele_hess, int *iRow, int *jCol, double *values) override |
| Method to return: 1) The structure of the hessian of the lagrangian (if "values" is nullptr) 2) The values of the hessian of the lagrangian (if "values" is not nullptr) | |
Solution Methods | |
| void | finalize_solution (Ipopt::SolverReturn status, int n, const double *x, const double *z_L, const double *z_U, int m, const double *g, const double *lambda, double obj_value, const Ipopt::IpoptData *ip_data, Ipopt::IpoptCalculatedQuantities *ip_cq) override |
| This method is called when the algorithm is complete so the TNLP can store/write the solution | |
| template<class T > | |
| bool | eval_obj (int n, const T *x, T *obj_value) |
| Template to return the objective value | |
| template<class T > | |
| bool | eval_constraints (int n, const T *x, int m, T *g) |
| Template to compute contraints | |
| virtual void | generate_tapes (int n, int m, int *nnz_jac_g, int *nnz_h_lag) |
| Method to generate the required tapes | |
在文件 cos_theta_ipopt_interface.h 第 44 行定义.
| apollo::planning::CosThetaIpoptInterface::CosThetaIpoptInterface | ( | std::vector< std::pair< double, double > > | points, |
| std::vector< double > | bounds | ||
| ) |
在文件 cos_theta_ipopt_interface.cc 第 29 行定义.
|
virtualdefault |
| bool apollo::planning::CosThetaIpoptInterface::eval_constraints | ( | int | n, |
| const T * | x, | ||
| int | m, | ||
| T * | g | ||
| ) |
Template to compute contraints
在文件 cos_theta_ipopt_interface.cc 第 640 行定义.
|
override |
Method to return the objective value
在文件 cos_theta_ipopt_interface.cc 第 133 行定义.
|
override |
Method to return the constraint residuals
在文件 cos_theta_ipopt_interface.cc 第 232 行定义.
|
override |
Method to return the gradient of the objective
在文件 cos_theta_ipopt_interface.cc 第 167 行定义.
|
override |
Method to return: 1) The structure of the hessian of the lagrangian (if "values" is nullptr) 2) The values of the hessian of the lagrangian (if "values" is not nullptr)
在文件 cos_theta_ipopt_interface.cc 第 293 行定义.
|
override |
Method to return: 1) The structure of the jacobian (if "values" is nullptr) 2) The values of the jacobian (if "values" is not nullptr)
在文件 cos_theta_ipopt_interface.cc 第 250 行定义.
| bool apollo::planning::CosThetaIpoptInterface::eval_obj | ( | int | n, |
| const T * | x, | ||
| T * | obj_value | ||
| ) |
Template to return the objective value
在文件 cos_theta_ipopt_interface.cc 第 600 行定义.
|
override |
This method is called when the algorithm is complete so the TNLP can store/write the solution
在文件 cos_theta_ipopt_interface.cc 第 525 行定义.
|
virtual |
Method to generate the required tapes
在文件 cos_theta_ipopt_interface.cc 第 651 行定义.
|
override |
Method to return the bounds for my problem
在文件 cos_theta_ipopt_interface.cc 第 74 行定义.
|
override |
Method to return some info about the nlp
在文件 cos_theta_ipopt_interface.cc 第 44 行定义.
| void apollo::planning::CosThetaIpoptInterface::get_optimization_results | ( | std::vector< double > * | ptr_x, |
| std::vector< double > * | ptr_y | ||
| ) | const |
在文件 cos_theta_ipopt_interface.cc 第 38 行定义.
|
override |
Method to return the starting point for the algorithm
在文件 cos_theta_ipopt_interface.cc 第 116 行定义.
| void apollo::planning::CosThetaIpoptInterface::set_automatic_differentiation_flag | ( | const bool | use_ad | ) |
在文件 cos_theta_ipopt_interface.cc 第 547 行定义.
| void apollo::planning::CosThetaIpoptInterface::set_weight_anchor_points | ( | const double | weight_anchor_points | ) |
在文件 cos_theta_ipopt_interface.cc 第 557 行定义.
| void apollo::planning::CosThetaIpoptInterface::set_weight_cos_included_angle | ( | const double | weight_cos_included_angle | ) |
在文件 cos_theta_ipopt_interface.cc 第 552 行定义.
| void apollo::planning::CosThetaIpoptInterface::set_weight_length | ( | const double | weight_length | ) |
在文件 cos_theta_ipopt_interface.cc 第 562 行定义.