Aeq must have two columns error???
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
this is my Aeq and beq:
swtOther_Aeq = [ 1 0 1 0 0 0 1 0 0 0 ]; swtOther_beq = [ 0.22 ];
yet matlab is telling me Aeq needs two columns.
I'm confused as to why. Can someone help me out? Thanks please.
3 comentarios
Matt J
el 28 de Mayo de 2014
If the variance is a quadratic function of the weights, you should use quadprog instead of fmincon.
Respuestas (1)
Matt J
el 28 de Mayo de 2014
Editada: Matt J
el 28 de Mayo de 2014
You are passing an x0 with only 2 elements. The length of x0(:) should equal 10.
13 comentarios
Matt J
el 28 de Mayo de 2014
"inner matrix dimensions must agree"
These are the kinds of errors that you troubleshoot using the dbstop command.
Ver también
Categorías
Más información sobre Linear Programming and Mixed-Integer Linear Programming en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!