Apollo
6.0
Open source self driving car software
|
#include <distance_approach_interface.h>
Public Member Functions | |
virtual | ~DistanceApproachInterface ()=default |
virtual bool | get_nlp_info (int &n, int &m, int &nnz_jac_g, int &nnz_h_lag, IndexStyleEnum &index_style)=0 |
virtual bool | get_bounds_info (int n, double *x_l, double *x_u, int m, double *g_l, double *g_u)=0 |
virtual 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)=0 |
virtual bool | eval_f (int n, const double *x, bool new_x, double &obj_value)=0 |
virtual bool | eval_grad_f (int n, const double *x, bool new_x, double *grad_f)=0 |
virtual bool | eval_g (int n, const double *x, bool new_x, int m, double *g)=0 |
virtual bool | check_g (int n, const double *x, int m, const double *g)=0 |
virtual bool | eval_jac_g (int n, const double *x, bool new_x, int m, int nele_jac, int *iRow, int *jCol, double *values)=0 |
virtual bool | eval_jac_g_ser (int n, const double *x, bool new_x, int m, int nele_jac, int *iRow, int *jCol, double *values)=0 |
virtual 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)=0 |
Solution Methods | |
virtual 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)=0 |
virtual void | get_optimization_results (Eigen::MatrixXd *state_result, Eigen::MatrixXd *control_result, Eigen::MatrixXd *time_result, Eigen::MatrixXd *dual_l_result, Eigen::MatrixXd *dual_n_result) const =0 |
|
virtualdefault |
|
pure virtual |
Check unfeasible constraints for further study
Implemented in apollo::planning::DistanceApproachIPOPTRelaxEndSlackInterface, apollo::planning::DistanceApproachIPOPTFixedDualInterface, apollo::planning::DistanceApproachIPOPTRelaxEndInterface, apollo::planning::DistanceApproachIPOPTCUDAInterface, apollo::planning::DistanceApproachIPOPTFixedTsInterface, and apollo::planning::DistanceApproachIPOPTInterface.
|
pure virtual |
Method to return the objective value
Implemented in apollo::planning::DistanceApproachIPOPTRelaxEndSlackInterface, apollo::planning::DistanceApproachIPOPTFixedDualInterface, apollo::planning::DistanceApproachIPOPTRelaxEndInterface, apollo::planning::DistanceApproachIPOPTFixedTsInterface, apollo::planning::DistanceApproachIPOPTInterface, and apollo::planning::DistanceApproachIPOPTCUDAInterface.
|
pure virtual |
Method to return the constraint residuals
Implemented in apollo::planning::DistanceApproachIPOPTRelaxEndSlackInterface, apollo::planning::DistanceApproachIPOPTFixedDualInterface, apollo::planning::DistanceApproachIPOPTRelaxEndInterface, apollo::planning::DistanceApproachIPOPTCUDAInterface, apollo::planning::DistanceApproachIPOPTFixedTsInterface, and apollo::planning::DistanceApproachIPOPTInterface.
|
pure virtual |
Method to return the gradient of the objective
Implemented in apollo::planning::DistanceApproachIPOPTRelaxEndSlackInterface, apollo::planning::DistanceApproachIPOPTFixedDualInterface, apollo::planning::DistanceApproachIPOPTRelaxEndInterface, apollo::planning::DistanceApproachIPOPTFixedTsInterface, apollo::planning::DistanceApproachIPOPTInterface, and apollo::planning::DistanceApproachIPOPTCUDAInterface.
|
pure virtual |
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)
Implemented in apollo::planning::DistanceApproachIPOPTCUDAInterface, apollo::planning::DistanceApproachIPOPTRelaxEndSlackInterface, apollo::planning::DistanceApproachIPOPTFixedDualInterface, apollo::planning::DistanceApproachIPOPTRelaxEndInterface, apollo::planning::DistanceApproachIPOPTFixedTsInterface, and apollo::planning::DistanceApproachIPOPTInterface.
|
pure virtual |
Method to return: 1) The structure of the jacobian (if "values" is nullptr) 2) The values of the jacobian (if "values" is not nullptr)
Implemented in apollo::planning::DistanceApproachIPOPTRelaxEndSlackInterface, apollo::planning::DistanceApproachIPOPTFixedDualInterface, apollo::planning::DistanceApproachIPOPTRelaxEndInterface, apollo::planning::DistanceApproachIPOPTCUDAInterface, apollo::planning::DistanceApproachIPOPTFixedTsInterface, and apollo::planning::DistanceApproachIPOPTInterface.
|
pure virtual |
Implemented in apollo::planning::DistanceApproachIPOPTRelaxEndSlackInterface, apollo::planning::DistanceApproachIPOPTFixedDualInterface, apollo::planning::DistanceApproachIPOPTRelaxEndInterface, apollo::planning::DistanceApproachIPOPTFixedTsInterface, apollo::planning::DistanceApproachIPOPTInterface, and apollo::planning::DistanceApproachIPOPTCUDAInterface.
|
pure virtual |
This method is called when the algorithm is complete so the TNLP can store/write the solution
Implemented in apollo::planning::DistanceApproachIPOPTCUDAInterface, apollo::planning::DistanceApproachIPOPTRelaxEndSlackInterface, apollo::planning::DistanceApproachIPOPTFixedDualInterface, apollo::planning::DistanceApproachIPOPTRelaxEndInterface, apollo::planning::DistanceApproachIPOPTFixedTsInterface, and apollo::planning::DistanceApproachIPOPTInterface.
|
pure virtual |
Method to return the bounds for my problem
Implemented in apollo::planning::DistanceApproachIPOPTRelaxEndSlackInterface, apollo::planning::DistanceApproachIPOPTFixedDualInterface, apollo::planning::DistanceApproachIPOPTRelaxEndInterface, apollo::planning::DistanceApproachIPOPTFixedTsInterface, apollo::planning::DistanceApproachIPOPTInterface, and apollo::planning::DistanceApproachIPOPTCUDAInterface.
|
pure virtual |
Method to return some info about the nlp
Implemented in apollo::planning::DistanceApproachIPOPTRelaxEndSlackInterface, apollo::planning::DistanceApproachIPOPTFixedDualInterface, apollo::planning::DistanceApproachIPOPTRelaxEndInterface, apollo::planning::DistanceApproachIPOPTFixedTsInterface, apollo::planning::DistanceApproachIPOPTInterface, and apollo::planning::DistanceApproachIPOPTCUDAInterface.
|
pure virtual |
Implemented in apollo::planning::DistanceApproachIPOPTCUDAInterface, apollo::planning::DistanceApproachIPOPTRelaxEndSlackInterface, apollo::planning::DistanceApproachIPOPTFixedDualInterface, apollo::planning::DistanceApproachIPOPTRelaxEndInterface, apollo::planning::DistanceApproachIPOPTFixedTsInterface, and apollo::planning::DistanceApproachIPOPTInterface.
|
pure virtual |
Method to return the starting point for the algorithm
Implemented in apollo::planning::DistanceApproachIPOPTRelaxEndSlackInterface, apollo::planning::DistanceApproachIPOPTFixedDualInterface, apollo::planning::DistanceApproachIPOPTRelaxEndInterface, apollo::planning::DistanceApproachIPOPTFixedTsInterface, apollo::planning::DistanceApproachIPOPTInterface, and apollo::planning::DistanceApproachIPOPTCUDAInterface.