Constrained optimisation of spatial sampling door