Optimization of Redundant Manipulators in Worst Case Using Neural Networks, Mechanism and Machine Theory