how to use linprog?
Afficher commentaires plus anciens
Error using linprog (line 233)
The number of columns in A must be the same as the number of elements of f.
Error in code3 (line 283)
x=linprog(f,D,y);
i got this error while using linprog
the dimensions are A N*2N, y N*1 and i need coefficients of dimension 2N*1 via l1 minimization. Is it possible? What do i do with the variable f in the function?
Réponses (1)
Matt J
le 8 Fév 2016
0 votes
Check that the length of f matches the number of columns of A.
5 commentaires
Prashanna Jain
le 8 Fév 2016
Prashanna Jain
le 8 Fév 2016
Did you write code3? The error message says that it contains the line
x=linprog(f,D,y);
It is required that length(f) = size(D,2).
Prashanna Jain
le 9 Fév 2016
Matt J
le 9 Fév 2016
OK.
Catégories
En savoir plus sur Solver Outputs and Iterative Display dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!