Paul
unread,Mar 4, 2013, 4:34:42 PM3/4/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to am...@googlegroups.com
I'm going to omit indices just to reduce typing. Let M be a parameter giving a valid upper bound for N1 and let z be a new binary variable. Add constraints
NB <= K, NB <= N1, NB >= N1 - M*z and NB >= K*z. (I'm assuming K, N1 and NB are all nonnegative.)
If the rest of the model pushes NB to be as large as possible, you only need the first two constraints (no M, no z).
Paul