In modern warfare, when the weapon system and the targets are constantly being improved and upgraded, ensuring the distribution of firepower to optimally destroy the target will help the commander to make quick and accurate decisions, thereby improving combat effectiveness. This paper proposes a method to build a command-control automatic system based on solving the weapon target assignment (WTA) problem in a combination of short and medium-range air defense missile systems so that the total damage of targets is maximum and the damage of protected area is minimum. Based on combinatorial optimization algorithms, the probability of kill, linear programming method using Hungarian algorithm, the paper presents a mathematical model of WTA and its optimal solution for short- and medium-range air defense missile systems serving the training simulation problem, thereby giving the results of evaluating the effectiveness of the algorithm.