how to use linprog?
이전 댓글 표시
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?
답변 (1개)
Matt J
2016년 2월 8일
0 개 추천
Check that the length of f matches the number of columns of A.
댓글 수: 5
Prashanna Jain
2016년 2월 8일
Prashanna Jain
2016년 2월 8일
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
2016년 2월 9일
Matt J
2016년 2월 9일
OK.
카테고리
도움말 센터 및 File Exchange에서 Linear Programming and Mixed-Integer Linear Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!