As long as a group of d, a group of h / d can see the total cost
D scope, discrete
H / d also has a range, and is determined by D, continuous (can also be considered 0.001 [or 0.0001] level)
Simplification: If H / D takes only the maximum value, then the problem is converted into a combination optimization of each range (note: Note: Scope is different) to achieve the minimum cost!
Ideal: Of course, you can include the range of GA optimization!
It seems that you should first look at the combination optimization articles!