I constructed an optimisation model which objective is to find highest return on available stocks. Now want to add a constraint that allows to buy stocks only in $2000 increments, how can I do it? i.e buy stocks only in multiples of 2000. It should be a mathematical expression.


Declare $I_i$ as an integer variable, which is the number of \$2000 increments to buy of stock $i$.

Then let $q_i = 2000 I_i$ be the dollar value purchased of stock i.

If the portfolio is long only, constrain $I_i$ to be nonnegative.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.