Finally, with C++ programming and halfpenalty function method, an optimization design program is compiled for crushing mechanism of double toggle jaw crusher. Optimization is carried out for the crushing mechanism of PEJ900×1200 double toggle jaw crusher.