Large scale optimization of beam weights under dose-volume restrictions