Matlab + Gurobi implementation of scheduling algorithm