When using 'quadprog' how do I limit certain solutions so that they can only become whole numbers?
Show older comments
As stated above, I am trying to minimize a quadratic function where some of the solutions have to be whole numbers for the function to work.
I have done a similar problem to this one but with a linear function, however in that case I only had to set the desired solutions as integers and then use 'intlinprog'. Unfortunately there is no such option (to my knowledge) for 'quadprog' so I'm interested to know if someone has a possible workaround.
Thank You!
Answers (1)
1 Comment
Walter Roberson
on 10 May 2024
To be explicit: quadprog() does not have any way of restricting to integer solutions.
Categories
Find more on Quadratic Programming and Cone Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!