Discrete optimization assignment 1