Advanced Planning and Scheduling is a state-of-art subject which has a potential value and application. Although the Mixed Integer Linear Programming(MILP) is publicly viewed as a NP hard question, we could solve it with gurobi that is an honored solver on the python bat.