When using 'quadprog' how do I limit certain solutions so that they can only become whole numbers?

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!

Categories

Products

Release

R2023b

Asked:

on 9 May 2024

Commented:

on 10 May 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!