Towards automated treatment planning in radiotherap door