  This paper proposes a method to calculate the wires distribution for
generating required electromagnetic field. Instead of solving the distribution
of wires directly, we formulate the problem into zero-one programming form. By
applying the proposed algorithm to solve the zero-one programming problem, a
practical solution can be obtained. Two practical examples are proposed to
illustrate detailed calculation steps of the novel method. The comparison
between binary particle swarm optimization searching algorithm and the
pro-posed algorithm is provided and discussed. All the design results are
validated with FEM calculation results.
