AN EXACT PENALTY FUNCTION ALGORITHM FOR TIME-LAG CONTROL PROBLEMS WITH CONTROL AND TERMINAL EQUALITY CONSTRAINTS