C and Matlab scripts that generate examples from paper "A Simple Effective Heuristic for Embedded Mixed-Integer Quadratic Programming" by Reza takapoui, Nicholas Moehle, Stephen Boyd, and Alberto Bemporad, available at www.stanford.edu/~boyd/papers/miqp_admm.html.