Fmincon large contraint matrix errors
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
Hi,
To give a background I have a 2x6 matrix (using it as A), an x vector that's 1x6, and a b vector that's 2x1 and I have it iterate through about 820 time points for one trial, then another 200 times for the whole test.
What I would like to do is use fmincon to minimize x on the whole trial instead of individual time points. So my A vector would remain the same, the x vector would be 6x820, and a b vector of 2x820.
Now when I do fmincon (x=fmincon(@(x) sum(x),x,[],[],Aeq,beq,zeros(6,820),zeros(6,820),[],[]); I get an error Error using fmincon (line 282) Aeq must have 4920 column(s).
With this A*x=b, the matrix dimensions all agree but i'm still getting this error. When I multiply A*x in the command window there is no error.
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!