How to solve the elements are different between X0 and H in quadprog
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Zekun Yang
le 11 Déc 2023
Commenté : Zekun Yang
le 11 Déc 2023
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 commentaires
Réponse acceptée
Walter Roberson
le 11 Déc 2023
The initial value parameter, x_start in this context, must be a vector .
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Refinement dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!