A constraint generation approach for two-machine shop problems with jobs selection