Introduction - If you have any usage issues, please Google them yourself
According to the characteristics of constraints, we construct some penalty function, and then add it to the objective function to transform the constraint problem into a series of unconstrained problems. This "punishment strategy" is a punishment for those who want to violate the constraint conditions in the process of solving unconstrained problems.