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!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! 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! optimization, nonlinear MATLAB Answers — New Questions