How to solve the elements are different between X0 and H in quadprog
조회 수: 4 (최근 30일)
이전 댓글 표시
In my Simulink model, the H[10x10],x_start[10x10], but
'The number of rows and columns in H must be the same as the number of elements of X0.'
"[X,~,exitflag]=quadprog(H,f,A_cons,b_cons,[],[],lb,ub,x_start,options)"
댓글 수: 0
채택된 답변
Walter Roberson
2023년 12월 11일
The initial value parameter, x_start in this context, must be a vector .
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Partial Differential Equation Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!