Optimal regulation of lumpy investments door