Optimal Technical Diagnosis