NUMERICAL TECHNIQUE FOR SOLVING TIME- AND ROBUST TIME- OPTIMAL CONTROL PROBLEMS