Plan optimization for stereotactic radiotherapy door