It is often difficult to find the optimal parameter analytically. In this case, if temporary resources allow, you can go through all the possible options, see how good they are and choose the best one.