Integer Values in a Quadratic Optimization Problem
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sean Shugar
el 26 de Abr. de 2021
Comentada: Matt J
el 26 de Abr. de 2021
Hi everyone,
I am currently trying to solve an optimization problem with quadprog. My solution has to be an integer.
So far I have only seen options for linear programming, like the intlinprog solver.
Is it possible to set the solution to be integer values in the quadprog solver? And if not, how can I adress/sidestep this issue?
Best Regards
Sean
0 comentarios
Respuesta aceptada
Matt J
el 26 de Abr. de 2021
Editada: Matt J
el 26 de Abr. de 2021
You can use ga() instead of quadprog(), if you have the Global Optimization Toolbox.
4 comentarios
Matt J
el 26 de Abr. de 2021
It could be, except you haven't included integer constraints in the code you've shown, which was the whole point of abandoning quadprog. Note that ga() cannot directly handle both integer and equality constraints. You would have to eliminate the equality constraints for this to work, see,
Más respuestas (0)
Ver también
Categorías
Más información sobre Quadratic Programming and Cone 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!