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?

Antworten (1)

Matt J
Matt J am 8 Feb. 2016

0 Stimmen

Check that the length of f matches the number of columns of A.

5 Kommentare

Prashanna Jain
Prashanna Jain am 8 Feb. 2016
can you please elaborate?
Prashanna Jain
Prashanna Jain am 8 Feb. 2016
what exactly is the significance of f?
Matt J
Matt J am 8 Feb. 2016
Bearbeitet: Matt J am 8 Feb. 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
Prashanna Jain am 9 Feb. 2016
yes i wrote code 3. okay i will look into it
Matt J
Matt J am 9 Feb. 2016
OK.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Linear Programming and Mixed-Integer Linear Programming finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 8 Feb. 2016

Kommentiert:

am 9 Feb. 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by