Finding an optimal solution that minimizes a constraint?

前端 未结 3 1256
滥情空心
滥情空心 2021-01-05 06:18

Let us call this problem the Slinger-Bird problem (actually the Slinger is analogous to a server and the bird to a request but I was having a nervous breakdown thinking abou

3条回答
  •  感动是毒
    2021-01-05 06:53

    This is not an optimal assignment problem, because slingers kill all birds in view.

    You have a two-dimensional objective function, so there can be a number of tradeoffs between shots and time. Determining the minimum number of shots for a particular time limit is exactly the set cover problem (as mhum suggests). The set cover problem is NP-hard and hard to approximate, but in practice, branch and bound using the dual of the linear programming formulation is quite effective in finding the optimum.

提交回复
热议问题