Replies: 4 comments
-
I didn't change other settings or data, the result is following:
problem: variables n = 671, constraints m = 1339 iter objective pri res dua res rho time status: solved Solve successfully, run time is 0.00326138 number of iterations is 140 rho_estimate is 0.00804216 rho_updates is 0 rho is 0.014 status: solved |
Beta Was this translation helpful? Give feedback.
-
My setting is:
|
Beta Was this translation helpful? Give feedback.
-
I'm confused about the second time, I have given a good initial guess for this problem. But why osqp still need 110 iterations to convergence? And in the second time, why objective is -3.5634e+06 in iter is 1? I think the objective should be 6.4706e+04. |
Beta Was this translation helpful? Give feedback.
-
So sorrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrry!!!!!!!!!!!!!!!!!!!!!!! It's my bug of construct warm_start_y, I misunderstood that warm_start_y's dimension is equal to warm_start_x. Actually, that's wrong... After correct it, my program works well. |
Beta Was this translation helpful? Give feedback.
-
I use the solved solution as warm start, my code is following:
============================my code========================================
// use result as warm start test
std::vector<c_float> warm_start_x(num_of_knots_ * num_of_variables_per_moment_);
std::vector<c_float> warm_start_y(num_of_knots_ * num_of_variables_per_moment_);
for (int32_t i = 0; i < num_of_knots_ * num_of_variables_per_moment_; ++i)
{
warm_start_x[i] = work->solution->x[i];
warm_start_y[i] = work->solution->y[i];
}
osqp_warm_start(work, CopyData(warm_start_x), CopyData(warm_start_y));
osqp_solve(work);
============================my code========================================
Beta Was this translation helpful? Give feedback.
All reactions