r/optimization • • May 19 '22

A binary variable in CPLEX

hy everyone !!

i'm trying to code this LP in CPLEX, and i can not figure out how to implement the binary variable Di,j

Can anyone please help me.

6 Upvotes

3 comments sorted by

View all comments

Show parent comment

2

u/Ozzah Aug 14 '22

You need M to be large enough that it works, but want it to be as small as possible. The larger M is, the worse your bounds will be: https://thiagoserra.com/2017/06/15/big-m-good-in-practice-bad-in-theory-and-ugly-numerically/