Given that these problems have different restrictions, the cost function is penalizing with an additional extra-large cost (because they are minimization problems) if one of the restrictions is not fulfilled. This objective function increment is simple to implement and has a low computational cost [1]}.
