提交 f8c4b558 编写于 作者: J JasonZhou404 提交者: Jiangtao Hu

Planning: OpenSpace: move variable bounds to constraints

上级 2dd0ed7c
......@@ -60,7 +60,7 @@ bool DistanceApproachProblem::Solve(
// app->Options()->SetStringValue("derivative_test", "first-order");
// app->Options()->SetNumericValue("derivative_test_tol", 1.0e-3);
// TODO(QiL) : Change IPOPT settings to flag or configs
app->Options()->SetIntegerValue("print_level", 5);
app->Options()->SetIntegerValue("print_level", 0);
app->Options()->SetIntegerValue("mumps_mem_percent", 6000);
app->Options()->SetNumericValue("mumps_pivtol", 1e-6);
app->Options()->SetIntegerValue("max_iter", 1000);
......
......@@ -112,7 +112,7 @@ class DualVariableWarmStartIPOPTInterface : public Ipopt::TNLP {
bool eval_constraints(int n, const T* x, int m, T* g);
/** Method to generate the required tapes */
void generate_tapes(int n, int m, int* nnz_jac_g, int* nnz_h_lag);
void generate_tapes(int n, int m, int* nnz_h_lag);
//*************** end ADOL-C part ***********************************
private:
......@@ -121,6 +121,9 @@ class DualVariableWarmStartIPOPTInterface : public Ipopt::TNLP {
int horizon_;
float ts_;
Eigen::MatrixXd ego_;
int lambda_horizon_ = 0;
int miu_horizon_ = 0;
int dual_formulation_horizon_ = 0;
Eigen::MatrixXd l_warm_up_;
Eigen::MatrixXd n_warm_up_;
......@@ -156,13 +159,9 @@ class DualVariableWarmStartIPOPTInterface : public Ipopt::TNLP {
//*************** start ADOL-C part ***********************************
double* obj_lam;
unsigned int* rind_g; /* row indices */
unsigned int* cind_g; /* column indices */
double* jacval; /* values */
unsigned int* rind_L; /* row indices */
unsigned int* cind_L; /* column indices */
double* hessval; /* values */
int nnz_jac;
int nnz_L;
int options_g[4];
int options_L[4];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册