Fmincon large contraint matrix errors
Informazioni
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Mostra commenti meno recenti
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.
Risposte (0)
Questa domanda è chiusa.
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!