Direct matrix converter (DMC) is an AC-AC converter which supplies power flow between AC power supply and the load for changing voltage and current requirements. Its relatively small power circuits and simple control structures provide considerable advantages to itself with respect to the classical AC-AC converter topologies. In this article, the new control method based on swarm optimization is suggested and analyzed comparatively for 3-phase DMC to improve the robustness of DMC control system. The switching generator designed with this control method generates optimal switching states using swarm intelligence-based optimization algorithm and also applies them to the DMC. To compare the control performance of the method for this type of operating conditions, chaotic-based particle swarm optimization and artificial bee colony algorithms are used since their relatively short program codes and superior optimization performances. The results of this study show that the proposed control method can be applied to the DMC control system successfully as a new control technique.