Quadratic programming with just one constraint
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
diego soler polo
el 21 de Abr. de 2021
Comentada: diego soler polo
el 22 de Abr. de 2021
Hi,
I have a quadratic programming problem which basically looks like
I am using quadprog: https://www.mathworks.com/help/optim/ug/quadprog.html#d123e128542
However, the equality restrictions there are only in the form , and the programm demands the matrix to be of full rank. The only constraint I want to impose is , but I don't know how to do this, since apparently I would need as many linear constraints as the . Is there a way around this?
2 comentarios
Matt J
el 21 de Abr. de 2021
the programm demands the matrix to be of full rank.
No idea why you think so.
Respuesta aceptada
Matt J
el 21 de Abr. de 2021
Editada: Matt J
el 21 de Abr. de 2021
We may have to be given your input matrices to reproduce the problem, but since ones(1,d) is full row rank, there shouldn't have been a problem, even if it were a requirement of quadprog. As you can see in the simple example below, no errors are thrown using Aeq=ones(1,d=4):
A=rand(4); A=A*A.'; %symmetrize
c=rand(4,1);
Aeq=ones(1,4); beq=4;
lb=c*0; ub=c*0+10;
quadprog(A,c,[],[],Aeq,beq,lb,ub)
Más respuestas (0)
Ver también
Categorías
Más información sobre Problem-Based Optimization Setup en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!