A kind of approach to solve the workshop production capability optimization allocation problem is put forward in this paper. The approach is based on the artificial fish-swarm algorithm (AFSA). In the approach, the normal artificial fish is extended to be two-dimension artificial fish. In the two-dimension artificial fish, each vector could be expressed with a group of tasks. By designing the behavior of two dimensions, the production capability allocation approach based on two dimension artificial swarm algorithm is put forward, which demonstrates the efficiency of the algorithm in handling with complex mathematical problems as well as non-convex production capability resource management problems. The application case study shows that the AFSA is not complicated to use and does not require much mathematical sophistication to understand its mechanisms. The approach can be considered as an optimal tool to provide production capability optimization allocation.