Open KailinTong opened 3 years ago
Is your soln
an empty array? You need to check the formulation of your QP to ensure feasibility.
In the cloned code, this part (line 79 to line 82) was commented. Should it be like this? Thank you!
% [~,Aeq,beq] = t2y_lin(reft,path,theta,vref,[v0;0],delta/v0); % soln = quadprog(Q,[],A,b,Aeq,beq); % soln_lin = quadprog(Q,[],A,b,L(1:5(nstep-1),:),S(1:5(nstep-1))); % soln_lin = quadprog(Q,[],A,b,L(5(nstep-1)+1:end,:),S(5(nstep-1)+1:end));
in line 77, it is solving a QP. You may want to check whether the constraint in 'Lstack' and 'Sstack' makes sense.
soln = quadprog(Q,[],Lstack,Sstack);
same problem with original codes:
temporal_opt
yaxis =
Columns 1 through 25
0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48
Columns 26 through 34
50 52 54 56 58 60 62 64 66
Solver stopped prematurely.
quadprog stopped because it exceeded the iteration limit, options.MaxIterations = 200 (the default value).
Minimum found that satisfies the constraints.
Optimization completed because the objective function is non-decreasing in feasible directions, to within the default value of the optimality tolerance, and constraints are satisfied to within the default value of the constraint tolerance.
Thank you very much for your contribution!
I got this error when I try to run CFS. I use MATLAB R2019b.
Do you have any suggestions?
Thank you very much!